[meta-xilinx] [PATCH v3 3/12] u-boot-spl-zynq-init.inc: Add ZynqMP PMU binary input support
Nathan Rossi
nathan at nathanrossi.com
Tue Nov 14 05:15:23 PST 2017
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 <nathan at nathanrossi.com>
---
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 be92de5c47..2123e27168 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))
}
--
2.15.0
More information about the meta-xilinx
mailing list