]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
kbuild: avoid stale modules in $(MODVERDIR) for external modules
authorSam Ravnborg <sam@mars.ravnborg.org>
Sat, 28 Jan 2006 22:08:40 +0000 (23:08 +0100)
committerSam Ravnborg <sam@mars.ravnborg.org>
Sun, 19 Feb 2006 08:51:19 +0000 (09:51 +0100)
To avoid stale modules located in $(MODVERDIR) aka .tmp_versions/
always delete the directory when building an external module.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Makefile

index 1db819ef0daca3675e10eebf2c8d266516473d0c..fdb3dac3e70f8a2e57eca2f547e48c7c0a24e00a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1126,6 +1126,7 @@ else # KBUILD_EXTMOD
 KBUILD_MODULES := 1
 .PHONY: crmodverdir
 crmodverdir:
+       $(Q)rm -rf $(MODVERDIR)
        $(Q)mkdir -p $(MODVERDIR)
 
 .PHONY: $(objtree)/Module.symvers