1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
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
8 # More information can be found in the files COPYING and README.
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
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.
24 --- ./Makefile.orig 2003-09-23 22:19:55.000000000 -0400
25 +++ ./Makefile 2003-09-23 22:28:29.000000000 -0400
27 ifdef CONFIG_MODVERSIONS
28 $(MAKE) update-modverfile
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 ; \
34 scripts/mkdep -- init/*.c > .depend
36 ifdef CONFIG_MODVERSIONS