From 2081558f0be9cd20c64224eb1f329c7b89893e50 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Fri, 25 Mar 2016 22:12:59 +1000 Subject: machine-xilinx-default.inc: Handle 'u-boot-dtb.img' for Zynq Handle the case where mainline u-boot does not default to having the target device tree embedded into the u-boot ELF via OF_EMBED, which is default for the u-boot-xlnx source tree. Select the UBOOT_BINARY value based on the currently configured virtual/bootloader provider. Signed-off-by: Nathan Rossi --- conf/machine/include/machine-xilinx-default.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/conf/machine/include/machine-xilinx-default.inc b/conf/machine/include/machine-xilinx-default.inc index ec581c06..f8dc362a 100644 --- a/conf/machine/include/machine-xilinx-default.inc +++ b/conf/machine/include/machine-xilinx-default.inc @@ -22,7 +22,12 @@ PREFERRED_PROVIDER_virtual/bootloader ??= "${XILINX_DEFAULT_UBOOT}" UBOOT_SUFFIX ?= "img" UBOOT_SUFFIX_zynqmp ?= "bin" -UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}" + +# u-boot-xlnx setups up all zynq configs to have embedded device trees (OF_EMBED=y) +UBOOT_OFEMBED ?= "" +UBOOT_OFEMBED_zynq ?= "${@bb.utils.contains('PREFERRED_PROVIDER_virtual/bootloader', 'u-boot-xlnx', '', '-dtb', d)}" + +UBOOT_BINARY ?= "u-boot${UBOOT_OFEMBED}.${UBOOT_SUFFIX}" UBOOT_ELF ?= "u-boot" UBOOT_ELF_aarch64 ?= "u-boot.elf" -- cgit v1.2.3-54-g00ecf