summaryrefslogtreecommitdiff
path: root/dts
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-06-02 22:04:50 -0600
committerTom Rini <trini@ti.com>2014-06-11 16:25:46 -0400
commit63b4b5bae52e48528876e13e858ef934ac2e4a3b (patch)
treee0143f2b83f7bbba3d30f97785dad6f2624eb932 /dts
parent31890ae299bca739c58b311dfced0bb199a5f520 (diff)
downloadu-boot-imx-63b4b5bae52e48528876e13e858ef934ac2e4a3b.zip
u-boot-imx-63b4b5bae52e48528876e13e858ef934ac2e4a3b.tar.gz
u-boot-imx-63b4b5bae52e48528876e13e858ef934ac2e4a3b.tar.bz2
fdt: Add DEV_TREE_BIN option to specify a device tree binary file
In some cases, an externally-built device tree binary is required to be attached to U-Boot. An example is when using image signing, since in that case the .dtb file must include the public keys. Add a DEV_TREE_BIN option to the Makefile, and update the documentation. Usage is something like: make DEV_TREE_BIN=boot/am335x-boneblack-pubkey.dtb Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'dts')
-rw-r--r--dts/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/dts/Makefile b/dts/Makefile
index 3fca5f5..f344efe 100644
--- a/dts/Makefile
+++ b/dts/Makefile
@@ -12,7 +12,11 @@ ifeq ($(DEVICE_TREE),)
DEVICE_TREE := unset
endif
+ifneq ($(DEV_TREE_BIN),)
+DTB := $(DEV_TREE_BIN)
+else
DTB := arch/$(ARCH)/dts/$(DEVICE_TREE).dtb
+endif
$(obj)/dt.dtb: $(DTB) FORCE
$(call if_changed,shipped)