summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2017-11-14 23:15:23 +1000
committerManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>2017-11-21 11:19:00 -0800
commit06d3a9509ed38ae39ee4bfaa698e625011576318 (patch)
tree0ad008d0b07f05b422f8a980e6ed76ba41d6af82
parentb302f65c8ab5bd030d2aa21896e8028e584d19dc (diff)
downloadmeta-xilinx-06d3a9509ed38ae39ee4bfaa698e625011576318.tar.gz
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 <nathan@nathanrossi.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
-rw-r--r--recipes-bsp/u-boot/u-boot-spl-zynq-init.inc8
1 files changed, 8 insertions, 0 deletions
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 () {
45 d.appendVar("DEPENDS", " virtual/xilinx-platform-init") 45 d.appendVar("DEPENDS", " virtual/xilinx-platform-init")
46 # setup task to modify platform init after unpack and before configure 46 # setup task to modify platform init after unpack and before configure
47 bb.build.addtask("do_zynq_platform_init", "do_configure", "do_prepare_recipe_sysroot", d) 47 bb.build.addtask("do_zynq_platform_init", "do_configure", "do_prepare_recipe_sysroot", d)
48
49 if "boot.bin" in d.getVar("SPL_BINARY") and d.getVar("SOC_FAMILY") in ["zynqmp"]:
50 # depend on the pmu-firmware build
51 d.appendVar("DEPENDS", " virtual/pmu-firmware")
52 # determine the path relative to the source tree
53 relpath = os.path.relpath(d.expand("${DEPLOY_DIR_IMAGE}/pmu-${MACHINE}.bin"), d.getVar("S"))
54 # setup PMU Firmware path via MAKEFLAGS
55 d.appendVar("EXTRA_OEMAKE", " CONFIG_PMUFW_INIT_FILE=\"{0}\"".format(relpath))
48} 56}
49 57