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

Loïc Minier loic.minier at linaro.org
Wed Jan 19 13:16:30 CET 2011


.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(-)

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



More information about the U-Boot mailing list