From: Mike Frysinger Date: Tue, 31 Jul 2007 23:45:34 +0000 (-0400) Subject: kbuild: clean Modules.symvers in external module dirs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c34114f4acbc89a217148ebe166b2a68f973a7b9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git kbuild: clean Modules.symvers in external module dirs At the moment, running `make clean` in an external module directory does a nice job of cleaning up with one exception: it leaves behind Modules.symvers. Attached patch adds this file to the clean list for external modules. Signed-off-by: Mike Frysinger Signed-off-by: Sam Ravnborg --- diff --git a/Makefile b/Makefile index 1274084c9090..2738966e1d37 100644 --- a/Makefile +++ b/Makefile @@ -1255,8 +1255,10 @@ $(clean-dirs): $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@) clean: rm-dirs := $(MODVERDIR) +clean: rm-files := $(KBUILD_EXTMOD)/Module.symvers clean: $(clean-dirs) $(call cmd,rmdirs) + $(call cmd,rmfiles) @find $(KBUILD_EXTMOD) $(RCS_FIND_IGNORE) \ \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \) \