diff options
| author | Mark Hatle <mark.hatle@xilinx.com> | 2022-01-04 12:25:27 -0800 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@xilinx.com> | 2022-01-14 15:37:05 -0800 |
| commit | fbdedd0301e9756c9adf3526fc550624d91c1e53 (patch) | |
| tree | f751279b4ff1a9c5a216e423f71ef9bc6e12c52b | |
| parent | 11a7f2042021f08a5a489b81d6d1c0faccd47271 (diff) | |
| download | meta-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>
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: |
| 25 | MACHINE_FEATURES += " usbgadget wifi bluetooth" | 25 | MACHINE_FEATURES += " usbgadget wifi bluetooth" |
| 26 | 26 | ||
| 27 | EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native" | 27 | EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native pmu-rom-native" |
| 28 | 28 | ||
| 29 | UBOOT_MACHINE ?= "xilinx_zynqmp_virt_defconfig" | 29 | UBOOT_MACHINE ?= "xilinx_zynqmp_virt_defconfig" |
| 30 | SPL_BINARY ?= "spl/boot.bin" | 30 | SPL_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 @@ | |||
| 1 | SUMMARY = "PMU ROM for QEMU" | ||
| 2 | DESCRIPTION = "The ZynqMP PMU ROM for QEMU emulation" | ||
| 3 | HOMEPAGE = "http://www.xilinx.com" | ||
| 4 | SECTION = "bsp" | ||
| 5 | |||
| 6 | LICENSE = "Proprietary" | ||
| 7 | LICENSE_FLAGS = "xilinx" | ||
| 8 | LIC_FILES_CHKSUM = "file://PMU_ROM-LICENSE.txt;md5=d43d49bc1eb1c907fc6f4ea75abafdfc" | ||
| 9 | |||
| 10 | SRC_URI = "https://www.xilinx.com/bin/public/openDownload?filename=PMU_ROM.tar.gz" | ||
| 11 | SRC_URI[sha256sum] = "f9a450ef960979463ea0a87a35fafb4a5b62d3a741de30cbcef04c8edc22a7cf" | ||
| 12 | |||
| 13 | S = "${WORKDIR}/PMU_ROM" | ||
| 14 | |||
| 15 | inherit deploy native | ||
| 16 | |||
| 17 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 18 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 19 | |||
| 20 | do_compile[noexec] = "1" | ||
| 21 | do_install[noexec] = "1" | ||
| 22 | |||
| 23 | do_deploy () { | ||
| 24 | install -D ${S}/pmu-rom.elf ${DEPLOYDIR}/pmu-rom.elf | ||
| 25 | } | ||
| 26 | |||
| 27 | addtask 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 @@ | |||
| 1 | SUMMARY = "PMU ROM for QEMU" | ||
| 2 | DESCRIPTION = "The ZynqMP PMU ROM for QEMU emulation" | ||
| 3 | HOMEPAGE = "http://www.xilinx.com" | ||
| 4 | SECTION = "bsp" | ||
| 5 | |||
| 6 | # The BSP package does not include any license information. | ||
| 7 | LICENSE = "Proprietary" | ||
| 8 | LICENSE_FLAGS = "xilinx" | ||
| 9 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28" | ||
| 10 | |||
| 11 | COMPATIBLE_MACHINE = "zcu102-zynqmp" | ||
| 12 | |||
| 13 | inherit deploy | ||
| 14 | inherit xilinx-fetch-restricted | ||
| 15 | |||
| 16 | BSP_NAME = "xilinx-zcu102" | ||
| 17 | BSP_FILE = "${BSP_NAME}-v${PV}-final.bsp" | ||
| 18 | SRC_URI = "https://www.xilinx.com/member/forms/download/xef.html?filename=${BSP_FILE};downloadfilename=${BSP_FILE}" | ||
| 19 | SRC_URI[md5sum] = "cea5f11761e7f38cbfcf0a07a19094e0" | ||
| 20 | SRC_URI[sha256sum] = "7ac0ac3a5fb7dd162c0a922c66edb33b5737955ef6570a1a1d3b15b4344f7cc1" | ||
| 21 | |||
| 22 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 23 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 24 | |||
| 25 | do_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 | |||
| 32 | do_install() { | ||
| 33 | : | ||
| 34 | } | ||
| 35 | |||
| 36 | do_deploy () { | ||
| 37 | install -D ${S}/pmu-rom.elf ${DEPLOYDIR}/pmu-rom.elf | ||
| 38 | } | ||
| 39 | |||
| 40 | addtask deploy before do_build after do_install | ||
| 41 | |||
