From: Sam Ravnborg Date: Sat, 28 Jan 2006 22:08:40 +0000 (+0100) Subject: kbuild: avoid stale modules in $(MODVERDIR) for external modules X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fb3cbd2e575f9ac0700bfa1e7cb9f4119fbd0abd;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 --- 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