patches/linux/2.4.26/150-linux-2.4.26-mkdep-xargs.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Feb 17 22:08:06 2008 +0000 (2008-02-17)
changeset 431 8bde4c6ea47a
permissions -rw-r--r--
Robert P. J. DAY says:

apparently, the patchset for gcc 4.2.1 applies properly to the
source for gcc 4.2.2 and gcc 4.2.3. so, if you want, you can simply
add support for those last two just by augmenting menuconfig and
adding a couple symlinks for those two directories. seems like a
cheap way to add a couple new versions.
yann@402
     1
About ten times, various people have noticed that 'make dep' uses
yann@402
     2
really, really long commandlines.  This breaks sh even on linux sometimes.
yann@402
     3
yann@402
     4
For 2.4, see e.g.
yann@402
     5
http://marc.theaimsgroup.com/?l=linux-kernel&m=96589814004919&w=2
yann@402
     6
http://marc.theaimsgroup.com/?l=linux-kernel&m=96589814004919&q=p3
yann@402
     7
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/cygwin-to-linux-cross-howto.txt
yann@402
     8
http://www.uclinux.org/pub/uClinux/archive/1728.html
yann@402
     9
yann@402
    10
Fixes error when building linux kernel for some default arm configurations:
yann@402
    11
yann@402
    12
scripts/mkdep -- `find /home/dank/wk/crosstool-0.28-rc36/build/arm-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/linux-2.4.26/include/asm /home/dank/wk/crosstool-0.28-rc36/build/arm-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/linux-2.4.26/include/linux /home/dank/wk/crosstool-0.28-rc36/build/arm-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/linux-2.4.26/include/scsi /home/dank/wk/crosstool-0.28-rc36/build/arm-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/linux-2.4.26/include/net /home/dank/wk/crosstool-0.28-rc36/build/arm-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/linux-2.4.26/include/math-emu \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
yann@402
    13
/bin/sh: line 1: scripts/mkdep: Argument list too long
yann@402
    14
make: *** [dep-files] Error 126
yann@402
    15
yann@402
    16
[ For linux-2.4.26 ]
yann@402
    17
yann@402
    18
--- linux-2.4.26/Makefile.old	2004-04-14 06:05:41.000000000 -0700
yann@402
    19
+++ linux-2.4.26/Makefile	2004-09-13 21:27:39.000000000 -0700
yann@402
    20
@@ -500,7 +500,7 @@
yann@402
    21
 ifdef CONFIG_MODVERSIONS
yann@402
    22
 	$(MAKE) update-modverfile
yann@402
    23
 endif
yann@402
    24
-	scripts/mkdep -- `find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
yann@402
    25
+	find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print | xargs scripts/mkdep | cat > .hdepend
yann@402
    26
 	scripts/mkdep -- init/*.c > .depend
yann@402
    27
 
yann@402
    28
 ifdef CONFIG_MODVERSIONS