diff options
author | Swagath Gadde <swagath.gadde@amd.com> | 2022-10-04 16:34:02 +0530 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2022-10-21 15:20:05 -0500 |
commit | 6c2034f6fd1b603c3a6ae39eed40b63fbf360f98 (patch) | |
tree | 38594e0994b58cd4432cdddd58860f5bef85bb0d /meta-xilinx-bsp | |
parent | 853a4c7036e7df02180b2590fa3759ba3c4d261d (diff) | |
download | meta-xilinx-6c2034f6fd1b603c3a6ae39eed40b63fbf360f98.tar.gz |
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 <swagath.gadde@amd.com>
Signed-off-by: Shubhangi Mahalle <shubhangi.shrikrushna-mahalle@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-bsp')
-rw-r--r-- | meta-xilinx-bsp/recipes-bsp/embeddedsw/fsbl-firmware_%.bbappend | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ | |||
1 | # QEMU for the Kria SOM requires a section from the FSBL to be extracted | ||
2 | |||
3 | FSBL_DEFAULT_NAME = "executable.elf" | ||
4 | PMU_CONF_NAME = "pmu-conf.bin" | ||
5 | |||
6 | do_compile:append:zynqmp () { | ||
7 | aarch64-none-elf-objcopy --dump-section .sys_cfg_data=../${PMU_CONF_NAME} ${FSBL_DEFAULT_NAME} | ||
8 | } | ||
9 | |||
10 | do_deploy:append:zynqmp () { | ||
11 | install -Dm 0644 ${B}/${PMU_CONF_NAME} ${DEPLOYDIR}/${PMU_CONF_NAME} | ||
12 | } | ||