[U-Boot] [PATCH] [build] Automatically build the device tree if DEV_TREE_SEPARATE is set
Gabe Black
gabeblack at chromium.org
Tue Nov 8 10:15:32 CET 2011
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.
Signed-off-by: Gabe Black <gabeblack at chromium.org>
---
Makefile | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index 294c762..654e07e 100644
--- a/Makefile
+++ b/Makefile
@@ -371,6 +371,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-dtb.bin: $(obj)u-boot.bin $(obj)u-boot.dtb
cat $^ >$@
--
1.7.3.1
More information about the U-Boot
mailing list