kbuild: clean Module.markers and modules.order for out-of-tree modules
authorFrédéric Brière <fbriere@fbriere.net>
Sun, 19 Apr 2009 16:58:40 +0000 (12:58 -0400)
committerSam Ravnborg <sam@ravnborg.org>
Fri, 1 May 2009 08:54:01 +0000 (10:54 +0200)
Signed-off-by: Frédéric Brière <fbriere@fbriere.net>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Makefile

index eb38c83992611b76ec21a90d16dcd7a0766a677a..b309fca4b94419231d1b66b3b14e1caaf962a7b4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1421,7 +1421,9 @@ $(clean-dirs):
        $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
 
 clean: rm-dirs := $(MODVERDIR)
-clean: rm-files := $(KBUILD_EXTMOD)/Module.symvers
+clean: rm-files := $(KBUILD_EXTMOD)/Module.symvers \
+                   $(KBUILD_EXTMOD)/Module.markers \
+                   $(KBUILD_EXTMOD)/modules.order
 clean: $(clean-dirs)
        $(call cmd,rmdirs)
        $(call cmd,rmfiles)