summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@xilinx.com>2022-01-04 12:25:27 -0800
committerMark Hatle <mark.hatle@xilinx.com>2022-01-14 15:37:05 -0800
commitfbdedd0301e9756c9adf3526fc550624d91c1e53 (patch)
treef751279b4ff1a9c5a216e423f71ef9bc6e12c52b
parent11a7f2042021f08a5a489b81d6d1c0faccd47271 (diff)
downloadmeta-xilinx-fbdedd0301e9756c9adf3526fc550624d91c1e53.tar.gz
pmu-rom-native: Automatically download from public site for QEMU usage
Move the pmu-rom to pmu-rom-native recipe. The ROM is only deployed in the standard directory for qemu-xilinx usage when required by a zynqmp-generic system. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
-rw-r--r--meta-xilinx-core/conf/machine/zynqmp-generic.conf2
-rw-r--r--meta-xilinx-core/recipes-bsp/pmu-firmware/pmu-rom-native_2022.1.bb27
-rw-r--r--meta-xilinx-core/recipes-bsp/pmu-firmware/pmu-rom_2018.1.bb41
3 files changed, 28 insertions, 42 deletions
diff --git a/meta-xilinx-core/conf/machine/zynqmp-generic.conf b/meta-xilinx-core/conf/machine/zynqmp-generic.conf
index 7f89b958..e36e98aa 100644
--- a/meta-xilinx-core/conf/machine/zynqmp-generic.conf
+++ b/meta-xilinx-core/conf/machine/zynqmp-generic.conf
@@ -24,7 +24,7 @@ MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost"
24# Ultra96 features: 24# Ultra96 features:
25MACHINE_FEATURES += " usbgadget wifi bluetooth" 25MACHINE_FEATURES += " usbgadget wifi bluetooth"
26 26
27EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native" 27EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native pmu-rom-native"
28 28
29UBOOT_MACHINE ?= "xilinx_zynqmp_virt_defconfig" 29UBOOT_MACHINE ?= "xilinx_zynqmp_virt_defconfig"
30SPL_BINARY ?= "spl/boot.bin" 30SPL_BINARY ?= "spl/boot.bin"
diff --git a/meta-xilinx-core/recipes-bsp/pmu-firmware/pmu-rom-native_2022.1.bb b/meta-xilinx-core/recipes-bsp/pmu-firmware/pmu-rom-native_2022.1.bb
new file mode 100644
index 00000000..d38b3da0
--- /dev/null
+++ b/meta-xilinx-core/recipes-bsp/pmu-firmware/pmu-rom-native_2022.1.bb
@@ -0,0 +1,27 @@
1SUMMARY = "PMU ROM for QEMU"
2DESCRIPTION = "The ZynqMP PMU ROM for QEMU emulation"
3HOMEPAGE = "http://www.xilinx.com"
4SECTION = "bsp"
5
6LICENSE = "Proprietary"
7LICENSE_FLAGS = "xilinx"
8LIC_FILES_CHKSUM = "file://PMU_ROM-LICENSE.txt;md5=d43d49bc1eb1c907fc6f4ea75abafdfc"
9
10SRC_URI = "https://www.xilinx.com/bin/public/openDownload?filename=PMU_ROM.tar.gz"
11SRC_URI[sha256sum] = "f9a450ef960979463ea0a87a35fafb4a5b62d3a741de30cbcef04c8edc22a7cf"
12
13S = "${WORKDIR}/PMU_ROM"
14
15inherit deploy native
16
17INHIBIT_DEFAULT_DEPS = "1"
18PACKAGE_ARCH = "${MACHINE_ARCH}"
19
20do_compile[noexec] = "1"
21do_install[noexec] = "1"
22
23do_deploy () {
24 install -D ${S}/pmu-rom.elf ${DEPLOYDIR}/pmu-rom.elf
25}
26
27addtask deploy before do_build after do_install
diff --git a/meta-xilinx-core/recipes-bsp/pmu-firmware/pmu-rom_2018.1.bb b/meta-xilinx-core/recipes-bsp/pmu-firmware/pmu-rom_2018.1.bb
deleted file mode 100644
index 195c6309..00000000
--- a/meta-xilinx-core/recipes-bsp/pmu-firmware/pmu-rom_2018.1.bb
+++ /dev/null
@@ -1,41 +0,0 @@
1SUMMARY = "PMU ROM for QEMU"
2DESCRIPTION = "The ZynqMP PMU ROM for QEMU emulation"
3HOMEPAGE = "http://www.xilinx.com"
4SECTION = "bsp"
5
6# The BSP package does not include any license information.
7LICENSE = "Proprietary"
8LICENSE_FLAGS = "xilinx"
9LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28"
10
11COMPATIBLE_MACHINE = "zcu102-zynqmp"
12
13inherit deploy
14inherit xilinx-fetch-restricted
15
16BSP_NAME = "xilinx-zcu102"
17BSP_FILE = "${BSP_NAME}-v${PV}-final.bsp"
18SRC_URI = "https://www.xilinx.com/member/forms/download/xef.html?filename=${BSP_FILE};downloadfilename=${BSP_FILE}"
19SRC_URI[md5sum] = "cea5f11761e7f38cbfcf0a07a19094e0"
20SRC_URI[sha256sum] = "7ac0ac3a5fb7dd162c0a922c66edb33b5737955ef6570a1a1d3b15b4344f7cc1"
21
22INHIBIT_DEFAULT_DEPS = "1"
23PACKAGE_ARCH = "${MACHINE_ARCH}"
24
25do_compile() {
26 # Extract the rom into workdir
27 tar -xf ${WORKDIR}/${BSP_FILE} ${BSP_NAME}-${PV}/pre-built/linux/images/pmu_rom_qemu_sha3.elf -C ${S}
28 # tar preserves the tree, so use find to get the full path and move to to the root
29 for i in $(find ${S} -type f -name *.elf); do mv $i ${S}/pmu-rom.elf; done
30}
31
32do_install() {
33 :
34}
35
36do_deploy () {
37 install -D ${S}/pmu-rom.elf ${DEPLOYDIR}/pmu-rom.elf
38}
39
40addtask deploy before do_build after do_install
41