summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2003-04-02 02:12:51 -0600
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2003-04-02 02:12:51 -0600
commit46cfe05fd5004269d9e138c6299b021db613f9a2 (patch)
treef2e6a330cc8796044d7772e10584accf8ce20fba /scripts
parent494c779a0cd1f63eeca35eaaa4a4038eca0b4b84 (diff)
kbuild: Fix dependencies for generated .mod.o files
For some reason which I cannot remember, we didn't use the automatic dependency generation for the generated .mod.[co] files. However, we do of course need dependency information for those, too, they need to be updated when e.g. the kernel version number changes.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.modpost5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost
index 5cf5fdf22482..9416ae154422 100644
--- a/scripts/Makefile.modpost
+++ b/scripts/Makefile.modpost
@@ -35,10 +35,11 @@ targets += $(modules)
# Compile version info for unresolved symbols
quiet_cmd_cc_o_c = CC $@
- cmd_cc_o_c = $(CC) $(CFLAGS) $(CFLAGS_MODULE) -c -o $@ $<
+ cmd_cc_o_c = $(CC) -Wp,-MD,$(depfile) $(CFLAGS) $(CFLAGS_MODULE) \
+ -c -o $@ $<
$(modules:.ko=.mod.o): %.mod.o: %.mod.c FORCE
- $(call if_changed,cc_o_c)
+ $(call if_changed_dep,cc_o_c)
targets += $(modules:.ko=.mod.o)