diff options
author | Gabe Black <gabeblack@chromium.org> | 2011-08-22 17:10:40 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 12:28:31 -0700 |
commit | 16730e39f46a2ea157bff180f44fe8cc9ce5dc40 (patch) | |
tree | 4c6a5214ddccb82edaab44732e97c9856d822105 /Makefile | |
parent | c2f925d1a5fadbfd91d4ab50228b3a06a801c89c (diff) |
Automatically build the device tree if DEV_TREE_SEPARATE is set
Part 3 of 3 of a change to make u-boot build the device tree instead of a
separate ebuild.
This change makes the u-boot "all" target build the separate device tree if
DEV_TREE_SEPARATE is set. This use of DEV_TREE_SEPARATE is consistent with the
one other use in the u-boot build system. It's at least expedient and perhaps
necessary to build the device tree this way since it's difficult to know the
value of $(obj) when invoking make.
TEST=Built and booted on x86-alex, ran vboot_twostop.
BUG=chrome-os-partner:5664
Change-Id: Icdcda86421e6f3cde59439b2be001ff522d6a6e9
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: http://gerrit.chromium.org/gerrit/6460
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -388,6 +388,10 @@ $(obj)u-boot.dtb: $(obj)u-boot $(MAKE) -C dts binary mv $(obj)dts/dt.dtb $@ +ifdef DEV_TREE_SEPARATE +all: $(obj)u-boot.dtb +endif + $(obj)u-boot.hex: $(obj)u-boot $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ |