diff options
author | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-01-28 17:08:40 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-02-19 03:51:19 -0500 |
commit | fb3cbd2e575f9ac0700bfa1e7cb9f4119fbd0abd (patch) | |
tree | f807a53038fb6eac8bd06f066614c7a8fa21255a | |
parent | 8999257c292cb757828ae3def9f5e9d894a24741 (diff) |
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>
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1126,6 +1126,7 @@ else # KBUILD_EXTMOD | |||
1126 | KBUILD_MODULES := 1 | 1126 | KBUILD_MODULES := 1 |
1127 | .PHONY: crmodverdir | 1127 | .PHONY: crmodverdir |
1128 | crmodverdir: | 1128 | crmodverdir: |
1129 | $(Q)rm -rf $(MODVERDIR) | ||
1129 | $(Q)mkdir -p $(MODVERDIR) | 1130 | $(Q)mkdir -p $(MODVERDIR) |
1130 | 1131 | ||
1131 | .PHONY: $(objtree)/Module.symvers | 1132 | .PHONY: $(objtree)/Module.symvers |