patches/linux/2.4.26/linux-2.4.26-mkdep-xargs.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 08 17:48:32 2007 +0000 (2007-05-08)
changeset 78 c3868084d81a
permissions -rw-r--r--
Huge fixes to glibc build, so that we can build at least (and at last):
- use ports addon even when installing headers,
- use optimisation (-O) when installing headers, to avoid unnecessary warnings (thanks Robert P. J. DAY for pointing this out!),
- lowest kernel version to use is only X.Y.Z, not X.Y.Z.T,
- a bit of preparations for NPTL (RSN I hope),
- fix fixing the linker scripts (changing the backup file is kind of useless and stupid);

Shut uClibc finish step: there really is nothing to do;

Add a patch for glibc-2.3.6 weak aliases handling on some archs (ARM and ALPHA at least);

Did not catch the make errors: fixed the pattern matching in scripts/functions;

Introduce a new log level, ALL:
- send components' build messages there,
- DEBUG log level is destined only for crosstool-NG debug messages,
- migrate sub-actions to use appropriate log levels;

Update the armeb-unknown-linux-gnu sample:
- it builds!
- uses gcc-4.0.4 and glibc-2.3.6,
- updated to latest config options set.
     1 About ten times, various people have noticed that 'make dep' uses
     2 really, really long commandlines.  This breaks sh even on linux sometimes.
     3 
     4 For 2.4, see e.g.
     5 http://marc.theaimsgroup.com/?l=linux-kernel&m=96589814004919&w=2
     6 http://marc.theaimsgroup.com/?l=linux-kernel&m=96589814004919&q=p3
     7 http://www.xraylith.wisc.edu/~khan/software/gnu-win32/cygwin-to-linux-cross-howto.txt
     8 http://www.uclinux.org/pub/uClinux/archive/1728.html
     9 
    10 Fixes error when building linux kernel for some default arm configurations:
    11 
    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
    13 /bin/sh: line 1: scripts/mkdep: Argument list too long
    14 make: *** [dep-files] Error 126
    15 
    16 [ For linux-2.4.26 ]
    17 
    18 --- linux-2.4.26/Makefile.old	2004-04-14 06:05:41.000000000 -0700
    19 +++ linux-2.4.26/Makefile	2004-09-13 21:27:39.000000000 -0700
    20 @@ -500,7 +500,7 @@
    21  ifdef CONFIG_MODVERSIONS
    22  	$(MAKE) update-modverfile
    23  endif
    24 -	scripts/mkdep -- `find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
    25 +	find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print | xargs scripts/mkdep | cat > .hdepend
    26  	scripts/mkdep -- init/*.c > .depend
    27  
    28  ifdef CONFIG_MODVERSIONS