summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Minier <loic.minier@linaro.org>2011-01-19 13:16:30 +0100
committerWolfgang Denk <wd@denx.de>2011-01-21 08:56:50 +0100
commitd6a5e6d531e357dd8016141f73d370d02886a7eb (patch)
treed066fc854e583d665f2c04d07dbdf225750f1b0e
parenta9d8bc98061c2c4bce312ce4d63cb4c61889fb6d (diff)
downloadu-boot-imx-d6a5e6d531e357dd8016141f73d370d02886a7eb.zip
u-boot-imx-d6a5e6d531e357dd8016141f73d370d02886a7eb.tar.gz
u-boot-imx-d6a5e6d531e357dd8016141f73d370d02886a7eb.tar.bz2
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 <loic.minier@linaro.org> Signed-off-by: Wolfgang Denk <wd@denx.de>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7c02096..fd21ef3 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)" }' $< > $@
#