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

Wolfgang Denk wd at denx.de
Fri Jan 21 09:00:39 CET 2011


Dear =?UTF-8?q?Lo=C3=AFc=20Minier?=,

In message <1295439390-16238-2-git-send-email-loic.minier at 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

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Substitute "damn" every time you're inclined to write "very"; your
editor will delete it and the writing will be just as it should be.
                - Mark Twain


More information about the U-Boot mailing list