Skip to content

Commit

Permalink
kbuild: avoid stale modules in $(MODVERDIR) for external modules
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sam Ravnborg committed Feb 19, 2006
1 parent 8999257 commit fb3cbd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb3cbd2

Please sign in to comment.