diff options
Diffstat (limited to 'meta-xilinx-standalone-experimental')
6 files changed, 56 insertions, 94 deletions
diff --git a/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/plm-firmware_git.bb b/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/plm-firmware_git.bb deleted file mode 100644 index 25988eb9..00000000 --- a/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/plm-firmware_git.bb +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | inherit esw deploy | ||
| 2 | |||
| 3 | ESW_COMPONENT_SRC = "/lib/sw_apps/versal_plm/src/" | ||
| 4 | |||
| 5 | DEPENDS += "xilstandalone xiltimer xilffs xilpdi xilplmi xilloader xilpm xilsecure xilsem" | ||
| 6 | |||
| 7 | do_install() { | ||
| 8 | install -d ${D}/${base_libdir}/firmware | ||
| 9 | # Note that we have to make the ELF executable for it to be stripped | ||
| 10 | install -m 0755 ${B}/versal_plm* ${D}/${base_libdir}/firmware | ||
| 11 | } | ||
| 12 | |||
| 13 | PLM_FIRMWARE_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | ||
| 14 | PLM_FIRMWARE_BASE_NAME[vardepsexclude] = "DATETIME" | ||
| 15 | |||
| 16 | do_deploy() { | ||
| 17 | |||
| 18 | # Not a huge fan of deploying from package but we want the stripped elf to be deployed. | ||
| 19 | # We could, technically create another task that runs after do_install that strips it but it | ||
| 20 | # seems unnecessarily convoluted, unless there's an objection on performing do_install we | ||
| 21 | # should do it this way since it easier to keep up with changes in oe-core. | ||
| 22 | |||
| 23 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/versal_plm.elf ${DEPLOYDIR}/${PLM_FIRMWARE_BASE_NAME}.elf | ||
| 24 | ln -sf ${PLM_FIRMWARE_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf | ||
| 25 | ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/versal_plm.elf ${WORKDIR}/package/${base_libdir}/firmware/versal_plm.bin | ||
| 26 | install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/versal_plm.bin ${DEPLOYDIR}/${PLM_FIRMWARE_BASE_NAME}.bin | ||
| 27 | ln -sf ${PLM_FIRMWARE_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin | ||
| 28 | } | ||
| 29 | |||
| 30 | addtask deploy before do_build after do_package | ||
| 31 | |||
| 32 | FILES_${PN} = "${base_libdir}/firmware/plm*" | ||
diff --git a/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/plm-firmware_git.bbappend b/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/plm-firmware_git.bbappend new file mode 100644 index 00000000..3d0ad6dd --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/plm-firmware_git.bbappend | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | # Reset this | ||
| 2 | SRC_URI = "${EMBEDDEDSW_SRCURI}" | ||
| 3 | |||
| 4 | inherit esw | ||
| 5 | |||
| 6 | ESW_COMPONENT_SRC = "/lib/sw_apps/versal_plm/src/" | ||
| 7 | |||
| 8 | ESW_COMPONENT = "versal_plm.elf" | ||
| 9 | |||
| 10 | do_compile_append() { | ||
| 11 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/plm.bin | ||
| 12 | } | ||
| 13 | |||
| 14 | do_install() { | ||
| 15 | : | ||
| 16 | } | ||
| 17 | |||
| 18 | DEPENDS += "xilstandalone xiltimer xilffs xilpdi xilplmi xilloader xilpm xilsecure xilsem" | ||
diff --git a/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/pmu-firmware_git.bb b/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/pmu-firmware_git.bb deleted file mode 100644 index 19238f97..00000000 --- a/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/pmu-firmware_git.bb +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | inherit esw deploy | ||
| 2 | |||
| 3 | COMPATIBLE_MACHINE = "microblaze-pmu" | ||
| 4 | |||
| 5 | ESW_COMPONENT_SRC = "/lib/sw_apps/zynqmp_pmufw/src" | ||
| 6 | |||
| 7 | DEPENDS += "xilstandalone xiltimer xilfpga xilskey" | ||
| 8 | |||
| 9 | do_install() { | ||
| 10 | install -d ${D}/${base_libdir}/firmware | ||
| 11 | # Note that we have to make the ELF executable for it to be stripped | ||
| 12 | install -m 0755 ${B}/pmufw* ${D}/${base_libdir}/firmware | ||
| 13 | } | ||
| 14 | |||
| 15 | PMU_FIRMWARE_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | ||
| 16 | PMU_FIRMWARE_BASE_NAME[vardepsexclude] = "DATETIME" | ||
| 17 | |||
| 18 | do_deploy() { | ||
| 19 | |||
| 20 | # We need to deploy the stripped elf, hence why not doing it from ${D} | ||
| 21 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/pmufw.elf ${DEPLOYDIR}/${PMU_FIRMWARE_BASE_NAME}.elf | ||
| 22 | ln -sf ${PMU_FIRMWARE_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf | ||
| 23 | ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/pmufw.elf ${WORKDIR}/package/${base_libdir}/firmware/pmufw.bin | ||
| 24 | install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/pmufw.bin ${DEPLOYDIR}/${PMU_FIRMWARE_BASE_NAME}.bin | ||
| 25 | ln -sf ${PMU_FIRMWARE_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin | ||
| 26 | } | ||
| 27 | |||
| 28 | addtask deploy before do_build after do_package | ||
| 29 | |||
| 30 | FILES_${PN} = "${base_libdir}/firmware/pmufw*" | ||
diff --git a/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/pmu-firmware_git.bbappend b/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/pmu-firmware_git.bbappend new file mode 100644 index 00000000..086689f0 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/pmu-firmware_git.bbappend | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # Reset this | ||
| 2 | SRC_URI = "${EMBEDDEDSW_SRCURI}" | ||
| 3 | SRC_URI += "file://0001-zynqmp_pmufw-Fix-reset-ops-for-assert.patch" | ||
| 4 | SRC_URI += "file://0001-zynqmp_pmufw-Correct-structure-header-of-PmResetOps.patch" | ||
| 5 | |||
| 6 | inherit esw | ||
| 7 | |||
| 8 | ESW_COMPONENT_SRC = "/lib/sw_apps/zynqmp_pmufw/src" | ||
| 9 | |||
| 10 | ESW_COMPONENT = "pmufw.elf" | ||
| 11 | |||
| 12 | do_compile() { | ||
| 13 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/executable.bin | ||
| 14 | } | ||
| 15 | |||
| 16 | do_install() { | ||
| 17 | : | ||
| 18 | } | ||
| 19 | |||
| 20 | DEPENDS += "xilstandalone xiltimer xilfpga xilskey" | ||
diff --git a/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/psm-firmware_git.bb b/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/psm-firmware_git.bb deleted file mode 100644 index df8797ca..00000000 --- a/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/psm-firmware_git.bb +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | inherit esw deploy | ||
| 2 | |||
| 3 | ESW_COMPONENT_SRC = "/lib/sw_apps/versal_psmfw/src/" | ||
| 4 | |||
| 5 | DEPENDS += "xilstandalone libxil xiltimer" | ||
| 6 | |||
| 7 | do_install() { | ||
| 8 | install -d ${D}/${base_libdir}/firmware | ||
| 9 | # Note that we have to make the ELF executable for it to be stripped | ||
| 10 | install -m 0755 ${B}/versal_psmfw* ${D}/${base_libdir}/firmware | ||
| 11 | } | ||
| 12 | |||
| 13 | PSM_FIRMWARE_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | ||
| 14 | PSM_FIRMWARE_BASE_NAME[vardepsexclude] = "DATETIME" | ||
| 15 | |||
| 16 | do_deploy() { | ||
| 17 | |||
| 18 | # Not a huge fan of deploying from package but we want the stripped elf to be deployed. | ||
| 19 | # We could, technically create another task that runs after do_install that strips it but it | ||
| 20 | # seems unnecessarily convoluted, unless there's an objection on performing do_install we | ||
| 21 | # should do it this way since it easier to keep up with changes in oe-core. | ||
| 22 | |||
| 23 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/versal_psmfw.elf ${DEPLOYDIR}/${PSM_FIRMWARE_BASE_NAME}.elf | ||
| 24 | ln -sf ${PSM_FIRMWARE_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf | ||
| 25 | ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/versal_psmfw.elf ${WORKDIR}/package/${base_libdir}/firmware/versal_psmfw.bin | ||
| 26 | install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/versal_psmfw.bin ${DEPLOYDIR}/${PSM_FIRMWARE_BASE_NAME}.bin | ||
| 27 | ln -sf ${PSM_FIRMWARE_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin | ||
| 28 | } | ||
| 29 | |||
| 30 | addtask deploy before do_build after do_package | ||
| 31 | |||
| 32 | FILES_${PN} = "${base_libdir}/firmware/psmfw*" | ||
diff --git a/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/psm-firmware_git.bbappend b/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/psm-firmware_git.bbappend new file mode 100644 index 00000000..8108862e --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/psm-firmware_git.bbappend | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | # Reset this | ||
| 2 | SRC_URI = "${EMBEDDEDSW_SRCURI}" | ||
| 3 | |||
| 4 | inherit esw | ||
| 5 | |||
| 6 | ESW_COMPONENT_SRC = "/lib/sw_apps/versal_psmfw/src/" | ||
| 7 | |||
| 8 | ESW_COMPONENT = "versal_psmfw.elf" | ||
| 9 | |||
| 10 | do_compile_append() { | ||
| 11 | ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/psmfw.bin | ||
| 12 | } | ||
| 13 | |||
| 14 | do_install() { | ||
| 15 | : | ||
| 16 | } | ||
| 17 | |||
| 18 | DEPENDS += "xilstandalone libxil xiltimer" | ||
