aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2003-03-05 08:09:49 -0600
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2003-03-05 08:09:49 -0600
commitcc12a29a0d13985d8caf937e90d772258a441c99 (patch)
tree53788be24c4f93146af90508b12edfce0ded64f7 /scripts
parent28d6bf36c47b66b8b1d353fac6560649b45a6a57 (diff)
downloadhistory-cc12a29a0d13985d8caf937e90d772258a441c99.tar.gz
[PATCH] kbuild: touch-module after successfull creation only
On Mon, Mar 03, 2003 at 05:11:10PM -0500, Bill Davidsen wrote: > scripts/Makefile.modinst:16: *** Uh-oh, you have stale module entries. You messed with SUBDIRS, do not complain if something goes wrong. This happens if you have encountered a compile error in a module. In this case you did not succeed the compilation of fs/binfmt_aout, and therefore no .o file can be located. kbuild assumes this is because you have messed with SUBDIRS, which is wrong.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index b43681c769fcd..7f5fbbd1111cc 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -163,12 +163,12 @@ endif
# Single-part modules are special since we need to mark them in $(MODVERDIR)
$(single-used-m): %.o: %.c FORCE
- $(touch-module)
ifdef CONFIG_MODVERSIONS
$(call if_changed_rule,vcc_o_c)
else
$(call if_changed_dep,cc_o_c)
endif
+ $(touch-module)
quiet_cmd_cc_lst_c = MKLST $@
cmd_cc_lst_c = $(CC) $(c_flags) -g -c -o $*.o $< && \
@@ -262,8 +262,8 @@ $(multi-used-y) : %.o: $(multi-objs-y) FORCE
$(call if_changed,link_multi-y)
$(multi-used-m) : %.o: $(multi-objs-m) FORCE
- $(touch-module)
$(call if_changed,link_multi-m)
+ $(touch-module)
targets += $(multi-used-y) $(multi-used-m)