mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
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>
This commit is contained in:
parent
8999257c29
commit
fb3cbd2e57
1
Makefile
1
Makefile
@ -1126,6 +1126,7 @@ else # KBUILD_EXTMOD
|
|||||||
KBUILD_MODULES := 1
|
KBUILD_MODULES := 1
|
||||||
.PHONY: crmodverdir
|
.PHONY: crmodverdir
|
||||||
crmodverdir:
|
crmodverdir:
|
||||||
|
$(Q)rm -rf $(MODVERDIR)
|
||||||
$(Q)mkdir -p $(MODVERDIR)
|
$(Q)mkdir -p $(MODVERDIR)
|
||||||
|
|
||||||
.PHONY: $(objtree)/Module.symvers
|
.PHONY: $(objtree)/Module.symvers
|
||||||
|
Loading…
Reference in New Issue
Block a user