diff mbox

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

Message ID 1295439390-16238-2-git-send-email-loic.minier@linaro.org
State Accepted
Headers show

Commit Message

Loïc Minier Jan. 19, 2011, 12:16 p.m. UTC
.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(-)

Comments

Wolfgang Denk Jan. 21, 2011, 8 a.m. UTC | #1
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
diff mbox

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)" }' $< > $@
 
 #