diff options
| -rw-r--r-- | meta-xilinx-bsp/recipes-bsp/embeddedsw/fsbl-firmware_%.bbappend | 12 | ||||
| -rw-r--r-- | meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware.inc | 2 |
2 files changed, 9 insertions, 5 deletions
diff --git a/meta-xilinx-bsp/recipes-bsp/embeddedsw/fsbl-firmware_%.bbappend b/meta-xilinx-bsp/recipes-bsp/embeddedsw/fsbl-firmware_%.bbappend index 509a0dbb..6a23dc47 100644 --- a/meta-xilinx-bsp/recipes-bsp/embeddedsw/fsbl-firmware_%.bbappend +++ b/meta-xilinx-bsp/recipes-bsp/embeddedsw/fsbl-firmware_%.bbappend | |||
| @@ -1,16 +1,20 @@ | |||
| 1 | # QEMU for the Kria SOM requires a section from the FSBL to be extracted | 1 | # QEMU for the Kria SOM requires a section from the FSBL to be extracted |
| 2 | 2 | ||
| 3 | FSBL_DEFAULT_NAME = "executable.elf" | 3 | PMU_CONF_NAME ?= "pmu-conf" |
| 4 | PMU_CONF_NAME = "pmu-conf.bin" | 4 | PMU_CONF_BASE_NAME ?= "${PMU_CONF_NAME}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" |
| 5 | |||
| 6 | # Required so we can run objcopy in do_compile | ||
| 7 | DEPENDS:append:zynqmp = " virtual/${TARGET_PREFIX}binutils" | ||
| 5 | 8 | ||
| 6 | do_compile:append:zynqmp () { | 9 | do_compile:append:zynqmp () { |
| 7 | if [ -z "${SYSTEM_DTFILE}" ]; then | 10 | if [ -z "${SYSTEM_DTFILE}" ]; then |
| 8 | aarch64-none-elf-objcopy --dump-section .sys_cfg_data=../${PMU_CONF_NAME} ${FSBL_DEFAULT_NAME} | 11 | ${OBJCOPY} --dump-section .sys_cfg_data=${B}/${PMU_CONF_NAME}.bin ${B}/${ESW_COMPONENT} |
| 9 | fi | 12 | fi |
| 10 | } | 13 | } |
| 11 | 14 | ||
| 12 | do_deploy:append:zynqmp () { | 15 | do_deploy:append:zynqmp () { |
| 13 | if [ -z "${SYSTEM_DTFILE}" ]; then | 16 | if [ -z "${SYSTEM_DTFILE}" ]; then |
| 14 | install -Dm 0644 ${B}/${PMU_CONF_NAME} ${DEPLOYDIR}/${PMU_CONF_NAME} | 17 | install -Dm 0644 ${B}/${PMU_CONF_NAME}.bin ${DEPLOYDIR}/${PMU_CONF_BASE_NAME}.bin |
| 18 | ln -s ${PMU_CONF_BASE_NAME}.bin ${DEPLOYDIR}/${PMU_CONF_NAME}.bin | ||
| 15 | fi | 19 | fi |
| 16 | } | 20 | } |
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware.inc index 0e855eef..34051bfa 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware.inc +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware.inc | |||
| @@ -2,7 +2,7 @@ DESCRIPTION = "First Stage Bootloader" | |||
| 2 | 2 | ||
| 3 | inherit xlnx-embeddedsw deploy | 3 | inherit xlnx-embeddedsw deploy |
| 4 | 4 | ||
| 5 | COMPATIBLE_HOST = ".*-(elf|eabi)" | 5 | COMPATIBLE_HOST = ".*-(elf|.*eabi)" |
| 6 | COMPATIBLE_MACHINE = "none" | 6 | COMPATIBLE_MACHINE = "none" |
| 7 | COMPATIBLE_MACHINE:zynq = ".*" | 7 | COMPATIBLE_MACHINE:zynq = ".*" |
| 8 | COMPATIBLE_MACHINE:zynqmp = ".*" | 8 | COMPATIBLE_MACHINE:zynqmp = ".*" |
