Dash:
[t2.git] / package / arm / linux24-psionw / 99-mkdep-arglist-too-long.patch
blob1f3ebe118220326aae68982d137a5037f056b977
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../linux24-psionw/99-mkdep-arglist-too-long.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
7 #
8 # More information can be found in the files COPYING and README.
9 #
10 # This patch file is dual-licensed. It is available under the license the
11 # patched project is licensed under, as long as it is an OpenSource license
12 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
13 # of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
15 # version.
16 # --- T2-COPYRIGHT-NOTE-END ---
18 Depending on the working directory where the kernel is build, the file
19 list can grow to produce an "argument to long" error on mkdep line.
20 This patch only slits the process to have shorter lines.
22 - Alejandro
24 --- ./Makefile.orig 2003-09-23 22:19:55.000000000 -0400
25 +++ ./Makefile 2003-09-23 22:28:29.000000000 -0400
26 @@ -518,7 +518,9 @@
27 ifdef CONFIG_MODVERSIONS
28 $(MAKE) update-modverfile
29 endif
30 - scripts/mkdep -- `find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
31 + for x in $(FINDHPATH); do \
32 + scripts/mkdep -- `find $$x \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` >> .hdepend ; \
33 + done
34 scripts/mkdep -- init/*.c > .depend
36 ifdef CONFIG_MODVERSIONS