Patchwork [U-Boot,V2,2/2] Cleanup .boards.depend when using an objtree

login
register
mail settings
Submitter Loïc Minier
Date Jan. 19, 2011, 12:16 p.m.
Message ID <1295439390-16238-2-git-send-email-loic.minier@linaro.org>
Download mbox | patch
Permalink /patch/79451/
State Accepted
Headers show

Comments

Loïc Minier - Jan. 19, 2011, 12:16 p.m.
.boards.depend was created in the source tree even when calling make
with O=objtree, and distclean O=objtree wouldn't clean it.  Create
.boards.depend in objtree instead as to clean it up properly.
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Wolfgang Denk - Jan. 21, 2011, 8 a.m.
Dear =?UTF-8?q?Lo=C3=AFc=20Minier?=,

In message <1295439390-16238-2-git-send-email-loic.minier@linaro.org> you wrote:
> .boards.depend was created in the source tree even when calling make
> with O=objtree, and distclean O=objtree wouldn't clean it.  Create
> .boards.depend in objtree instead as to clean it up properly.
> ---
>  Makefile |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)


Signed-off-by: missing

> diff --git a/Makefile b/Makefile
> index 7c02096..e819e56 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -526,7 +526,7 @@ unconfig:
>  	@$(MKCONFIG) -A $(@:_config=)
>  
>  sinclude .boards.depend
> -.boards.depend:	boards.cfg
> +$(obj).boards.depend:	boards.cfg
>  	awk '(NF && $$1 !~ /^#/) { print $$1 ": " $$1 "_config; $$(MAKE)" }' $< > $@

We should also use

	sinclude $(obj).boards.depend

then.

Applied with this additional change. Thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/Makefile b/Makefile
index 7c02096..e819e56 100644
--- a/Makefile
+++ b/Makefile
@@ -526,7 +526,7 @@  unconfig:
 	@$(MKCONFIG) -A $(@:_config=)
 
 sinclude .boards.depend
-.boards.depend:	boards.cfg
+$(obj).boards.depend:	boards.cfg
 	awk '(NF && $$1 !~ /^#/) { print $$1 ": " $$1 "_config; $$(MAKE)" }' $< > $@
 
 #