From d6a5e6d531e357dd8016141f73d370d02886a7eb Mon Sep 17 00:00:00 2001
From: =?utf8?q?Lo=C3=AFc=20Minier?= <loic.minier@linaro.org>
Date: Wed, 19 Jan 2011 13:16:30 +0100
Subject: [PATCH] Cleanup .boards.depend when using an objtree
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

.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>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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