From 06d3a9509ed38ae39ee4bfaa698e625011576318 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Tue, 14 Nov 2017 23:15:23 +1000 Subject: u-boot-spl-zynq-init.inc: Add ZynqMP PMU binary input support Add support to provide the path of the PMU firmware to the U-Boot build via the CONFIG_PMUFW_INIT_FILE config so that the binary can be embedded into the boot.bin output where support is available (e.g. u-boot-xlnx). Signed-off-by: Nathan Rossi Signed-off-by: Manjukumar Matha --- recipes-bsp/u-boot/u-boot-spl-zynq-init.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/recipes-bsp/u-boot/u-boot-spl-zynq-init.inc b/recipes-bsp/u-boot/u-boot-spl-zynq-init.inc index be92de5c..2123e271 100644 --- a/recipes-bsp/u-boot/u-boot-spl-zynq-init.inc +++ b/recipes-bsp/u-boot/u-boot-spl-zynq-init.inc @@ -45,5 +45,13 @@ python () { d.appendVar("DEPENDS", " virtual/xilinx-platform-init") # setup task to modify platform init after unpack and before configure bb.build.addtask("do_zynq_platform_init", "do_configure", "do_prepare_recipe_sysroot", d) + + if "boot.bin" in d.getVar("SPL_BINARY") and d.getVar("SOC_FAMILY") in ["zynqmp"]: + # depend on the pmu-firmware build + d.appendVar("DEPENDS", " virtual/pmu-firmware") + # determine the path relative to the source tree + relpath = os.path.relpath(d.expand("${DEPLOY_DIR_IMAGE}/pmu-${MACHINE}.bin"), d.getVar("S")) + # setup PMU Firmware path via MAKEFLAGS + d.appendVar("EXTRA_OEMAKE", " CONFIG_PMUFW_INIT_FILE=\"{0}\"".format(relpath)) } -- cgit v1.2.3-54-g00ecf