summaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2017-08-21 18:57:53 +1000
committerNathan Rossi <nathan@nathanrossi.com>2017-08-28 23:51:58 +1000
commit74a0d90e52cca346d05a69bbd628c6ec9e49fbcb (patch)
treeef7014313ed8897ec27e3c3d11b794d01f6bbe8f /recipes-bsp
parent19bfffd1a993eefb8991dc788154636b06ce37db (diff)
downloadmeta-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.bb41
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 @@
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] = "b39c5de323cf43a44da2f6eaa7e44d43"
20SRC_URI[sha256sum] = "12bd85350cad01ab646cb983c9fcbbe06c2014a7c1a61fe8c4a74fab518aa45d"
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