2.4.19-pre8-ac2 kbuild 2.4 tmp_include_depends
PATCH 1/1 2.4.19-pre8-ac2 kbuild 2.4 tmp_include_depends
make clean dep works, make dep clean deletes the .tmp file created by make dep and complains 'no rule to make .tmp_include_depends'. Change the filenames to avoid make clean and add them to mrproper.
Makefile +11 -10
@@ -226,6 +226,7 @@ # files removed with 'make mrproper' MRPROPER_FILES = \ include/linux/autoconf.h include/linux/version.h \ + tmp* \ drivers/net/hamradio/soundmodem/sm_tbl_{afsk1200,afsk2666,fsk9600}.h \ drivers/net/hamradio/soundmodem/sm_tbl_{hapn4800,psk4800}.h \ drivers/net/hamradio/soundmodem/sm_tbl_{afsk2400_7,afsk2400_8}.h \
@@ -353,13 +354,13 @@ comma := , -init/version.o: init/version.c include/linux/compile.h .tmp_include_depends +init/version.o: init/version.c include/linux/compile.h tmp_include_depends $(CC) $(CFLAGS) $(CFLAGS_KERNEL) -DUTS_MACHINE='"$(ARCH)"' -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) -c -o init/version.o init/version.c -init/main.o: init/main.c .tmp_include_depends +init/main.o: init/main.c tmp_include_depends $(CC) $(CFLAGS) $(CFLAGS_KERNEL) $(PROFILING) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) -c -o $*.o $< -init/do_mounts.o: init/do_mounts.c .tmp_include_depends +init/do_mounts.o: init/do_mounts.c tmp_include_depends $(CC) $(CFLAGS) $(CFLAGS_KERNEL) $(PROFILING) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) -c -o $*.o $< fs lib mm ipc kernel drivers net: dummy
@@ -386,7 +387,7 @@ modules: $(patsubst %, _mod_%, $(SUBDIRS)) .PHONY: $(patsubst %, _mod_%, $(SUBDIRS)) -$(patsubst %, _mod_%, $(SUBDIRS)) : include/linux/version.h .tmp_include_depends +$(patsubst %, _mod_%, $(SUBDIRS)) : include/linux/version.h tmp_include_depends $(MAKE) -C $(patsubst _mod_%, %, $@) CFLAGS="$(CFLAGS) $(MODFLAGS)" MAKING_MODULES=1 modules .PHONY: modules_install
@@ -491,13 +492,13 @@ ifdef CONFIG_MODVERSIONS $(MAKE) update-modverfile endif - (find $(TOPDIR) \( -name .depend -o -name .hdepend \) -print | xargs $(AWK) -f scripts/include_deps) > .tmp_include_depends - sed -ne 's/^\([^ ].*\):.*/ \1 \\/p' .tmp_include_depends > .tmp_include_depends_1 - (echo ""; echo "all: \\"; cat .tmp_include_depends_1; echo "") >> .tmp_include_depends - rm .tmp_include_depends_1 + (find $(TOPDIR) \( -name .depend -o -name .hdepend \) -print | xargs $(AWK) -f scripts/include_deps) > tmp_include_depends + sed -ne 's/^\([^ ].*\):.*/ \1 \\/p' tmp_include_depends > tmp_include_depends_1 + (echo ""; echo "all: \\"; cat tmp_include_depends_1; echo "") >> tmp_include_depends + rm tmp_include_depends_1 -.tmp_include_depends: include/config/MARKER dummy - $(MAKE) -r -f .tmp_include_depends all +tmp_include_depends: include/config/MARKER dummy + $(MAKE) -r -f tmp_include_depends all ifdef CONFIG_MODVERSIONS MODVERFILE := $(TOPDIR)/include/linux/modversions.h
Hi !
Applied your patch but it still fails.
I did
make mrproper
cp ../.config .
make oldconfig dep clean bzImage
init/do_mounts.c:351: warning: ount_nfs_root' defined but not used init/do_mounts.c:382: warning: hange_floppy' defined but not used init/do_mounts.c:972: warning: rd_load' defined but not used
make: *** No rule to make target .tmp_include_depends', needed by dir_kernel'. Stop.
Regards,
Axel Siebenwirth
Quoted 67 lines · Keith Owens
make clean dep works, make dep clean deletes the .tmp file created by make dep and complains 'no rule to make .tmp_include_depends'. Change the filenames to avoid make clean and add them to mrproper.
diff -urN 2.4.19-pre8-ac2/Makefile 2.4.19-pre8-ac2-test/Makefile
Makefile +11
-11@@ -226,6 +226,7 @@ # files removed with 'make mrproper' MRPROPER_FILES = \ include/linux/autoconf.h include/linux/version.h \ + tmp* \ drivers/net/hamradio/soundmodem/sm_tbl_{afsk1200,afsk2666,fsk9600}.h \ drivers/net/hamradio/soundmodem/sm_tbl_{hapn4800,psk4800}.h \ drivers/net/hamradio/soundmodem/sm_tbl_{afsk2400_7,afsk2400_8}.h \@@ -353,13 +354,13 @@ comma := , -init/version.o: init/version.c include/linux/compile.h .tmp_include_depends +init/version.o: init/version.c include/linux/compile.h tmp_include_depends $(CC) $(CFLAGS) $(CFLAGS_KERNEL) -DUTS_MACHINE='"$(ARCH)"' -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) -c -o init/version.o init/version.c -init/main.o: init/main.c .tmp_include_depends +init/main.o: init/main.c tmp_include_depends $(CC) $(CFLAGS) $(CFLAGS_KERNEL) $(PROFILING) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) -c -o $*.o $< -init/do_mounts.o: init/do_mounts.c .tmp_include_depends +init/do_mounts.o: init/do_mounts.c tmp_include_depends $(CC) $(CFLAGS) $(CFLAGS_KERNEL) $(PROFILING) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) -c -o $*.o $< fs lib mm ipc kernel drivers net: dummy@@ -386,7 +387,7 @@ modules: $(patsubst %, _mod_%, $(SUBDIRS)) .PHONY: $(patsubst %, _mod_%, $(SUBDIRS)) -$(patsubst %, _mod_%, $(SUBDIRS)) : include/linux/version.h .tmp_include_depends +$(patsubst %, _mod_%, $(SUBDIRS)) : include/linux/version.h tmp_include_depends $(MAKE) -C $(patsubst _mod_%, %, $@) CFLAGS="$(CFLAGS) $(MODFLAGS)" MAKING_MODULES=1 modules .PHONY: modules_install@@ -491,13 +492,13 @@ ifdef CONFIG_MODVERSIONS $(MAKE) update-modverfile endif - (find $(TOPDIR) \( -name .depend -o -name .hdepend \) -print | xargs $(AWK) -f scripts/include_deps) > .tmp_include_depends - sed -ne 's/^\([^ ].*\):.*/ \1 \\/p' .tmp_include_depends > .tmp_include_depends_1 - (echo ""; echo "all: \\"; cat .tmp_include_depends_1; echo "") >> .tmp_include_depends - rm .tmp_include_depends_1 + (find $(TOPDIR) \( -name .depend -o -name .hdepend \) -print | xargs $(AWK) -f scripts/include_deps) > tmp_include_depends + sed -ne 's/^\([^ ].*\):.*/ \1 \\/p' tmp_include_depends > tmp_include_depends_1 + (echo ""; echo "all: \\"; cat tmp_include_depends_1; echo "") >> tmp_include_depends + rm tmp_include_depends_1 -.tmp_include_depends: include/config/MARKER dummy - $(MAKE) -r -f .tmp_include_depends all +tmp_include_depends: include/config/MARKER dummy + $(MAKE) -r -f tmp_include_depends all ifdef CONFIG_MODVERSIONS MODVERFILE := $(TOPDIR)/include/linux/modversions.h -To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Quoted 2 lines · Axel H. Siebenwirth
make: *** No rule to make target .tmp_include_depends', needed by =1Fdir_kernel'. Stop.
Missed one occurrence of .tmp_include_depends. Edit Makefile, find $(patsubst %, _dir_%, $(SUBDIRS)) and change .tmp_include_depends to tmp_include_depends (no '.' at start).
Corrected patch against 2.4.19-pre8-ac2.
Makefile +12 -11
@@ -226,6 +226,7 @@ # files removed with 'make mrproper' MRPROPER_FILES = \ include/linux/autoconf.h include/linux/version.h \ + tmp* \ drivers/net/hamradio/soundmodem/sm_tbl_{afsk1200,afsk2666,fsk9600}.h \ drivers/net/hamradio/soundmodem/sm_tbl_{hapn4800,psk4800}.h \ drivers/net/hamradio/soundmodem/sm_tbl_{afsk2400_7,afsk2400_8}.h \
@@ -317,7 +318,7 @@ linuxsubdirs: $(patsubst %, _dir_%, $(SUBDIRS)) -$(patsubst %, _dir_%, $(SUBDIRS)) : dummy include/linux/version.h .tmp_include_depends +$(patsubst %, _dir_%, $(SUBDIRS)) : dummy include/linux/version.h tmp_include_depends $(MAKE) CFLAGS="$(CFLAGS) $(CFLAGS_KERNEL)" -C $(patsubst _dir_%, %, $@) $(TOPDIR)/include/linux/version.h: include/linux/version.h
@@ -353,13 +354,13 @@ comma := , -init/version.o: init/version.c include/linux/compile.h .tmp_include_depends +init/version.o: init/version.c include/linux/compile.h tmp_include_depends $(CC) $(CFLAGS) $(CFLAGS_KERNEL) -DUTS_MACHINE='"$(ARCH)"' -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) -c -o init/version.o init/version.c -init/main.o: init/main.c .tmp_include_depends +init/main.o: init/main.c tmp_include_depends $(CC) $(CFLAGS) $(CFLAGS_KERNEL) $(PROFILING) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) -c -o $*.o $< -init/do_mounts.o: init/do_mounts.c .tmp_include_depends +init/do_mounts.o: init/do_mounts.c tmp_include_depends $(CC) $(CFLAGS) $(CFLAGS_KERNEL) $(PROFILING) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) -c -o $*.o $< fs lib mm ipc kernel drivers net: dummy
@@ -386,7 +387,7 @@ modules: $(patsubst %, _mod_%, $(SUBDIRS)) .PHONY: $(patsubst %, _mod_%, $(SUBDIRS)) -$(patsubst %, _mod_%, $(SUBDIRS)) : include/linux/version.h .tmp_include_depends +$(patsubst %, _mod_%, $(SUBDIRS)) : include/linux/version.h tmp_include_depends $(MAKE) -C $(patsubst _mod_%, %, $@) CFLAGS="$(CFLAGS) $(MODFLAGS)" MAKING_MODULES=1 modules .PHONY: modules_install
@@ -491,13 +492,13 @@ ifdef CONFIG_MODVERSIONS $(MAKE) update-modverfile endif - (find $(TOPDIR) \( -name .depend -o -name .hdepend \) -print | xargs $(AWK) -f scripts/include_deps) > .tmp_include_depends - sed -ne 's/^\([^ ].*\):.*/ \1 \\/p' .tmp_include_depends > .tmp_include_depends_1 - (echo ""; echo "all: \\"; cat .tmp_include_depends_1; echo "") >> .tmp_include_depends - rm .tmp_include_depends_1 + (find $(TOPDIR) \( -name .depend -o -name .hdepend \) -print | xargs $(AWK) -f scripts/include_deps) > tmp_include_depends + sed -ne 's/^\([^ ].*\):.*/ \1 \\/p' tmp_include_depends > tmp_include_depends_1 + (echo ""; echo "all: \\"; cat tmp_include_depends_1; echo "") >> tmp_include_depends + rm tmp_include_depends_1 -.tmp_include_depends: include/config/MARKER dummy - $(MAKE) -r -f .tmp_include_depends all +tmp_include_depends: include/config/MARKER dummy + $(MAKE) -r -f tmp_include_depends all ifdef CONFIG_MODVERSIONS MODVERFILE := $(TOPDIR)/include/linux/modversions.h
Quoted 11 lines
[Keith Owens <[email protected]>, May-12 2002, Sun, 20:11 +1000]
Quoted 2 lines · Axel H. Siebenwirth
make: *** No rule to make target .tmp_include_depends', needed by =1Fdir_kernel'. Stop.
Missed one occurrence of .tmp_include_depends. Edit
Makefile, find $(patsubst %, _dir_%, $(SUBDIRS)) and change .tmp_include_depends totmp_include_depends(no '.' at start).Corrected patch against 2.4.19-pre8-ac2.
Great work, Keith!
"make modules_install" takes like 2 seconds w/ -ac now!
T.
Quoted 9 lines · Tomas Szepe
Quoted 6 lines
[Keith Owens <[email protected]>, May-12 2002, Sun, 20:11 +1000] Missed one occurrence of .tmp_include_depends. Edit
Makefile, find $(patsubst %, _dir_%, $(SUBDIRS)) and change .tmp_include_depends totmp_include_depends(no '.' at start).Corrected patch against 2.4.19-pre8-ac2.
Great work, Keith!
"makemodules_install" takes like 2 seconds w/ -ac now!
That was not the aim (although I will accept the praise :). The patch ensures that cross directory header dependencies are done correctly on kbuild 2.4. Any speed up as a side effect of removing .hdepend from Rules.make is a bonus.
kbuild mantra - correctness first, speed second.
Quoted 10 lines
[Keith Owens <[email protected]>, May-12 2002, Sun, 22:22 +1000]
Quoted 7 lines · Tomas Szepe
Quoted 6 lines
[Keith Owens <[email protected]>, May-12 2002, Sun, 20:11 +1000] Missed one occurrence of .tmp_include_depends. Edit
Makefile, find $(patsubst %, _dir_%, $(SUBDIRS)) and change .tmp_include_depends totmp_include_depends(no '.' at start).Corrected patch against 2.4.19-pre8-ac2.
Quoted 7 lines
Quoted 2 lines
Great work, Keith!
"makemodules_install" takes like 2 seconds w/ -ac now!That was not the aim (although I will accept the praise :). The patch ensures that cross directory header dependencies are done correctly on kbuild 2.4. Any speed up as a side effect of removing .hdepend from Rules.make is a bonus.
Now these are some side effects I like!
<cut>
2.4.19-pre8-ac1:
$ time make dep clean bzImage modules ... real 6m22.176s
$ time su -c 'make modules_install' ... real 0m6.963s
----
2.4.19-pre8-ac2 + patch-2.4.19-pre8-ac2-kbuildfix2:
$ time make dep clean bzImage modules ... real 5m57.509s
$ time su -c 'make modules_install' ... real 0m2.255s <cut>
Quoted 1 line
kbuild mantra - correctness first, speed second.
Thumbs up!
T.
After applying the patch pre8-ac2 still doesn't compile.
make dep
[no errors]
make bzImage
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
make: *** No rule to make target include/linux/autoconf.h', needed by include/config/MARKER'. Stop.
Quoted 9 lines · On Sun, 12 May 2002 22:10:34 -0400, [email protected] (khromy) wrote:
After applying the patch pre8-ac2 still doesn't compile.
make dep
[no errors]
make bzImage
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -oscripts/split-includescripts/split-include.c
make: *** No rule to make targetinclude/linux/autoconf.h', needed byinclude/config/MARKER'. Stop.
You forgot make *config.