2009-04-19 17:10:36

by Frédéric Brière

[permalink] [raw]
Subject: [PATCH] kbuild: clean Module.markers and modules.order for out-of-tree modules


Signed-off-by: Frédéric Brière <[email protected]>
---
Makefile | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index bfdef56..afbef69 100644
--- 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)
--
1.6.2.1


2009-04-25 07:24:25

by Sam Ravnborg

[permalink] [raw]
Subject: Re: [PATCH] kbuild: clean Module.markers and modules.order for out-of-tree modules

On Sun, Apr 19, 2009 at 12:58:40PM -0400, Fr?d?ric Bri?re wrote:
>
> Signed-off-by: Fr?d?ric Bri?re <[email protected]>
> ---
> Makefile | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index bfdef56..afbef69 100644
> --- 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)

Applied,
Sam