diff options
Diffstat (limited to 'meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware.inc')
-rw-r--r-- | meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware.inc | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware.inc index 05b9a9b5..11e8981b 100644 --- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware.inc +++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware.inc | |||
@@ -1,8 +1,6 @@ | |||
1 | ESCRIPTION = "PSM Firmware" | 1 | ESCRIPTION = "PSM Firmware" |
2 | SUMMARY = "PSM firmware for versal devices" | 2 | SUMMARY = "PSM firmware for versal devices" |
3 | 3 | ||
4 | PROVIDES = "virtual/psm-firmware" | ||
5 | |||
6 | inherit xlnx-embeddedsw deploy | 4 | inherit xlnx-embeddedsw deploy |
7 | 5 | ||
8 | COMPATIBLE_HOST = "microblaze.*-elf" | 6 | COMPATIBLE_HOST = "microblaze.*-elf" |
@@ -50,19 +48,28 @@ do_compile() { | |||
50 | oe_runmake CC_FLAGS="-MMD -MP -Wl,--build-id=none -I${STAGING_DIR_TARGET}/usr/include" | 48 | oe_runmake CC_FLAGS="-MMD -MP -Wl,--build-id=none -I${STAGING_DIR_TARGET}/usr/include" |
51 | } | 49 | } |
52 | 50 | ||
51 | # All do compiles need this, even if the base is overriden | ||
52 | do_compile_append() { | ||
53 | ${OBJCOPY} -O binary ${B}/psmfw.elf ${B}/psmfw.bin | ||
54 | } | ||
55 | |||
53 | do_install() { | 56 | do_install() { |
54 | : | 57 | : |
55 | } | 58 | } |
56 | 59 | ||
57 | PSM_FIRMWARE_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | 60 | PACKAGES = "" |
61 | |||
62 | # This is the default in most BSPs. A MACHINE.conf can override this! | ||
63 | PSM_FIRMWARE_IMAGE_NAME ??= "psm-firmware-versal-mb" | ||
64 | |||
65 | PSM_FIRMWARE_BASE_NAME ?= "${PSM_FIRMWARE_IMAGE_NAME}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | ||
58 | PSM_FIRMWARE_BASE_NAME[vardepsexclude] = "DATETIME" | 66 | PSM_FIRMWARE_BASE_NAME[vardepsexclude] = "DATETIME" |
59 | 67 | ||
60 | do_deploy() { | 68 | do_deploy() { |
61 | install -Dm 0644 ${B}/psmfw.elf ${DEPLOYDIR}/${PSM_FIRMWARE_BASE_NAME}.elf | 69 | install -Dm 0644 ${B}/psmfw.elf ${DEPLOYDIR}/${PSM_FIRMWARE_BASE_NAME}.elf |
62 | ln -sf ${PSM_FIRMWARE_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf | 70 | ln -sf ${PSM_FIRMWARE_BASE_NAME}.elf ${DEPLOYDIR}/${PSM_FIRMWARE_IMAGE_NAME}.elf |
63 | ${OBJCOPY} -O binary ${B}/psmfw.elf ${B}/psmfw.bin | ||
64 | install -m 0644 ${B}/psmfw.bin ${DEPLOYDIR}/${PSM_FIRMWARE_BASE_NAME}.bin | 71 | install -m 0644 ${B}/psmfw.bin ${DEPLOYDIR}/${PSM_FIRMWARE_BASE_NAME}.bin |
65 | ln -sf ${PSM_FIRMWARE_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin | 72 | ln -sf ${PSM_FIRMWARE_BASE_NAME}.bin ${DEPLOYDIR}/${PSM_FIRMWARE_IMAGE_NAME}.bin |
66 | } | 73 | } |
67 | 74 | ||
68 | addtask deploy before do_build after do_install | 75 | addtask deploy before do_build after do_install |