From 454b3597a61812218e7721d5af54102472ef308d Mon Sep 17 00:00:00 2001 From: Adrian Mangeac Date: Thu, 20 Jun 2019 12:06:00 +0200 Subject: Fix u-boot build Add pmu firmare binary needed by the u-boot build stage. Change-Id: Ic81e516df0096a0b8ecb25cb110f46e2911f4925 Signed-off-by: Adrian Mangeac --- recipes-bsp/u-boot/files/pmu-firmware.bin | Bin 0 -> 129760 bytes recipes-bsp/u-boot/u-boot-%.bbappend | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 recipes-bsp/u-boot/files/pmu-firmware.bin create mode 100644 recipes-bsp/u-boot/u-boot-%.bbappend diff --git a/recipes-bsp/u-boot/files/pmu-firmware.bin b/recipes-bsp/u-boot/files/pmu-firmware.bin new file mode 100755 index 0000000..e7efb52 Binary files /dev/null and b/recipes-bsp/u-boot/files/pmu-firmware.bin differ diff --git a/recipes-bsp/u-boot/u-boot-%.bbappend b/recipes-bsp/u-boot/u-boot-%.bbappend new file mode 100644 index 0000000..91ec5d0 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-%.bbappend @@ -0,0 +1,18 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + + +PMU_FIRMWARE_IMAGE = "pmu-firmware.bin" + +SRC_URI += " \ + file://${PMU_FIRMWARE_IMAGE} \ + " + + +do_deploy_pmu_firmware () { + install -D ${WORKDIR}/${PMU_FIRMWARE_IMAGE} ${BASE_WORKDIR}/../../pmutmp/deploy/images/zynqmp-pmu/pmu-firmware-zynqmp-pmu.bin + install -D ${WORKDIR}/${PMU_FIRMWARE_IMAGE} ${BASE_WORKDIR}/../../pmutmp/deploy/images/zynqmp-pmu/pmu-fw.bin +} + +addtask deploy_pmu_firmware before do_compile after do_patch + + -- cgit v1.2.3-54-g00ecf