From: Loïc Minier Date: Wed, 19 Jan 2011 12:16:30 +0000 (+0100) Subject: Cleanup .boards.depend when using an objtree X-Git-Tag: v2011.03-rc1~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d6a5e6d531e357dd8016141f73d370d02886a7eb;p=u-boot Cleanup .boards.depend when using an objtree .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. Reported-by: Loïc Minier Signed-off-by: Wolfgang Denk --- diff --git a/Makefile b/Makefile index 7c02096f0a..fd21ef3cff 100644 --- a/Makefile +++ b/Makefile @@ -525,8 +525,8 @@ unconfig: %_config:: unconfig @$(MKCONFIG) -A $(@:_config=) -sinclude .boards.depend -.boards.depend: boards.cfg +sinclude $(obj).boards.depend +$(obj).boards.depend: boards.cfg awk '(NF && $$1 !~ /^#/) { print $$1 ": " $$1 "_config; $$(MAKE)" }' $< > $@ #