aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/linux-2.4/patches/generic/209-mkdep_fix.patch
blob: a43d1d2fe4ce3fa85bb5cab0be68b90302e9f71b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- linux.old/Rules.make	2005-08-31 00:37:34.363109288 +0200
+++ linux.dev/Rules.make	2005-08-31 13:59:20.140676296 +0200
@@ -126,7 +126,7 @@
 # This make dependencies quickly
 #
 fastdep: dummy
-	$(TOPDIR)/scripts/mkdep $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -- $(wildcard *.[chS]) > .depend
+	find -name '*.[chS]' | xargs $(TOPDIR)/scripts/mkdep $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -- > .depend
 ifdef ALL_SUB_DIRS
 	$(MAKE) $(patsubst %,_sfdep_%,$(ALL_SUB_DIRS)) _FASTDEP_ALL_SUB_DIRS="$(ALL_SUB_DIRS)"
 endif
--- linux-2.4.30/Makefile.old	2005-11-11 14:27:55.878482250 +0100
+++ linux-2.4.30/Makefile	2005-11-11 14:28:57.926360000 +0100
@@ -509,7 +509,7 @@
 ifdef CONFIG_MODVERSIONS
 	$(MAKE) update-modverfile
 endif
-	scripts/mkdep -- `find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
+	find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print | xargs scripts/mkdep -- > .hdepend
 	scripts/mkdep -- init/*.c > .depend
 
 ifdef CONFIG_MODVERSIONS