summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2006-01-28 23:08:40 +0100
committerSam Ravnborg <sam@mars.ravnborg.org>2006-02-19 09:51:19 +0100
commitfb3cbd2e575f9ac0700bfa1e7cb9f4119fbd0abd (patch)
treef807a53038fb6eac8bd06f066614c7a8fa21255a /Makefile
parent8999257c292cb757828ae3def9f5e9d894a24741 (diff)
downloadlinux-stable-fb3cbd2e575f9ac0700bfa1e7cb9f4119fbd0abd.tar.gz
linux-stable-fb3cbd2e575f9ac0700bfa1e7cb9f4119fbd0abd.tar.bz2
linux-stable-fb3cbd2e575f9ac0700bfa1e7cb9f4119fbd0abd.zip
kbuild: avoid stale modules in $(MODVERDIR) for external modules
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1db819ef0dac..fdb3dac3e70f 100644
--- 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