diff options
| author | Nathan Rossi <nathan@nathanrossi.com> | 2017-08-21 18:57:53 +1000 |
|---|---|---|
| committer | Nathan Rossi <nathan@nathanrossi.com> | 2017-08-28 23:51:58 +1000 |
| commit | 74a0d90e52cca346d05a69bbd628c6ec9e49fbcb (patch) | |
| tree | ef7014313ed8897ec27e3c3d11b794d01f6bbe8f /recipes-bsp | |
| parent | 19bfffd1a993eefb8991dc788154636b06ce37db (diff) | |
| download | meta-xilinx-74a0d90e52cca346d05a69bbd628c6ec9e49fbcb.tar.gz | |
pmu-rom_2017.1.bb: Recipe that deploys pmu-rom.elf from ZCU102 BSP
Add a recipe that extracts the pmu-rom.elf from the PetaLinux ZCU102
BSP. This recipe cannot fetch the BSP, but uses the
xilinx-fetch-restricted class to handle error cases and providing
information on how to manually fetch.
This recipe is marked with the 'xilinx' license flag due to its use of
content that has licensing/legal requirements.
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Tested-by: Alistair Francis <alistair.francis@xilinx.com>
Acked-by: Alistair Francis <alistair.francis@xilinx.com>
Acked-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Diffstat (limited to 'recipes-bsp')
| -rw-r--r-- | recipes-bsp/pmu-firmware/pmu-rom_2017.1.bb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-bsp/pmu-firmware/pmu-rom_2017.1.bb b/recipes-bsp/pmu-firmware/pmu-rom_2017.1.bb new file mode 100644 index 00000000..d75dc05d --- /dev/null +++ b/recipes-bsp/pmu-firmware/pmu-rom_2017.1.bb | |||
| @@ -0,0 +1,41 @@ | |||
| 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] = "b39c5de323cf43a44da2f6eaa7e44d43" | ||
| 20 | SRC_URI[sha256sum] = "12bd85350cad01ab646cb983c9fcbbe06c2014a7c1a61fe8c4a74fab518aa45d" | ||
| 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 | |||
