From 6c2034f6fd1b603c3a6ae39eed40b63fbf360f98 Mon Sep 17 00:00:00 2001 From: Swagath Gadde Date: Tue, 4 Oct 2022 16:34:02 +0530 Subject: embeddedsw:add the pmu-conf extraction from fsbl QEMU for all zynqmp platforms requires pmu-conf from fsbl binary section. Signed-off-by: Swagath Gadde Signed-off-by: Shubhangi Mahalle Signed-off-by: Mark Hatle --- .../recipes-bsp/embeddedsw/fsbl-firmware_%.bbappend | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 meta-xilinx-bsp/recipes-bsp/embeddedsw/fsbl-firmware_%.bbappend (limited to 'meta-xilinx-bsp') diff --git a/meta-xilinx-bsp/recipes-bsp/embeddedsw/fsbl-firmware_%.bbappend b/meta-xilinx-bsp/recipes-bsp/embeddedsw/fsbl-firmware_%.bbappend new file mode 100644 index 00000000..6ed358f2 --- /dev/null +++ b/meta-xilinx-bsp/recipes-bsp/embeddedsw/fsbl-firmware_%.bbappend @@ -0,0 +1,12 @@ +# QEMU for the Kria SOM requires a section from the FSBL to be extracted + +FSBL_DEFAULT_NAME = "executable.elf" +PMU_CONF_NAME = "pmu-conf.bin" + +do_compile:append:zynqmp () { + aarch64-none-elf-objcopy --dump-section .sys_cfg_data=../${PMU_CONF_NAME} ${FSBL_DEFAULT_NAME} +} + +do_deploy:append:zynqmp () { + install -Dm 0644 ${B}/${PMU_CONF_NAME} ${DEPLOYDIR}/${PMU_CONF_NAME} +} -- cgit v1.2.3-54-g00ecf