summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone-experimental
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-standalone-experimental')
-rw-r--r--meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/plm-firmware_git.bb32
-rw-r--r--meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/plm-firmware_git.bbappend18
-rw-r--r--meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/pmu-firmware_git.bb30
-rw-r--r--meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/pmu-firmware_git.bbappend20
-rw-r--r--meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/psm-firmware_git.bb32
-rw-r--r--meta-xilinx-standalone-experimental/recipes-bsp/embeddedsw/psm-firmware_git.bbappend18
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 @@
1inherit esw deploy
2
3ESW_COMPONENT_SRC = "/lib/sw_apps/versal_plm/src/"
4
5DEPENDS += "xilstandalone xiltimer xilffs xilpdi xilplmi xilloader xilpm xilsecure xilsem"
6
7do_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
13PLM_FIRMWARE_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
14PLM_FIRMWARE_BASE_NAME[vardepsexclude] = "DATETIME"
15
16do_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
30addtask deploy before do_build after do_package
31
32FILES_${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
2SRC_URI = "${EMBEDDEDSW_SRCURI}"
3
4inherit esw
5
6ESW_COMPONENT_SRC = "/lib/sw_apps/versal_plm/src/"
7
8ESW_COMPONENT = "versal_plm.elf"
9
10do_compile_append() {
11 ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/plm.bin
12}
13
14do_install() {
15 :
16}
17
18DEPENDS += "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 @@
1inherit esw deploy
2
3COMPATIBLE_MACHINE = "microblaze-pmu"
4
5ESW_COMPONENT_SRC = "/lib/sw_apps/zynqmp_pmufw/src"
6
7DEPENDS += "xilstandalone xiltimer xilfpga xilskey"
8
9do_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
15PMU_FIRMWARE_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
16PMU_FIRMWARE_BASE_NAME[vardepsexclude] = "DATETIME"
17
18do_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
28addtask deploy before do_build after do_package
29
30FILES_${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
2SRC_URI = "${EMBEDDEDSW_SRCURI}"
3SRC_URI += "file://0001-zynqmp_pmufw-Fix-reset-ops-for-assert.patch"
4SRC_URI += "file://0001-zynqmp_pmufw-Correct-structure-header-of-PmResetOps.patch"
5
6inherit esw
7
8ESW_COMPONENT_SRC = "/lib/sw_apps/zynqmp_pmufw/src"
9
10ESW_COMPONENT = "pmufw.elf"
11
12do_compile() {
13 ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/executable.bin
14}
15
16do_install() {
17 :
18}
19
20DEPENDS += "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 @@
1inherit esw deploy
2
3ESW_COMPONENT_SRC = "/lib/sw_apps/versal_psmfw/src/"
4
5DEPENDS += "xilstandalone libxil xiltimer"
6
7do_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
13PSM_FIRMWARE_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
14PSM_FIRMWARE_BASE_NAME[vardepsexclude] = "DATETIME"
15
16do_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
30addtask deploy before do_build after do_package
31
32FILES_${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
2SRC_URI = "${EMBEDDEDSW_SRCURI}"
3
4inherit esw
5
6ESW_COMPONENT_SRC = "/lib/sw_apps/versal_psmfw/src/"
7
8ESW_COMPONENT = "versal_psmfw.elf"
9
10do_compile_append() {
11 ${MB_OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/psmfw.bin
12}
13
14do_install() {
15 :
16}
17
18DEPENDS += "xilstandalone libxil xiltimer"