[meta-xilinx] [PATCH 4/4] pmu-rom_2017.1.bb: Recipe that deploys pmu-rom.elf from ZCU102 BSP

Alistair Francis alistair23 at gmail.com
Fri Aug 25 11:26:23 PDT 2017


On Mon, Aug 21, 2017 at 5:43 AM, Nathan Rossi <nathan at nathanrossi.com> wrote:
> 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 at nathanrossi.com>

I did some testing on this (and the rest of the series) and it looks
pretty good to me.

Tested-by: Alistair Francis <alistair.francis at xilinx.com>
Acked-by: Alistair Francis <alistair.francis at xilinx.com>

Thanks,
Alistair


> ---
>  recipes-bsp/pmu-firmware/pmu-rom_2017.1.bb | 41 ++++++++++++++++++++++++++++++
>  1 file changed, 41 insertions(+)
>  create mode 100644 recipes-bsp/pmu-firmware/pmu-rom_2017.1.bb
>
> 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 0000000000..d75dc05dbb
> --- /dev/null
> +++ b/recipes-bsp/pmu-firmware/pmu-rom_2017.1.bb
> @@ -0,0 +1,41 @@
> +SUMMARY = "PMU ROM for QEMU"
> +DESCRIPTION = "The ZynqMP PMU ROM for QEMU emulation"
> +HOMEPAGE = "http://www.xilinx.com"
> +SECTION = "bsp"
> +
> +# The BSP package does not include any license information.
> +LICENSE = "Proprietary"
> +LICENSE_FLAGS = "xilinx"
> +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28"
> +
> +COMPATIBLE_MACHINE = "zcu102-zynqmp"
> +
> +inherit deploy
> +inherit xilinx-fetch-restricted
> +
> +BSP_NAME = "xilinx-zcu102"
> +BSP_FILE = "${BSP_NAME}-v${PV}-final.bsp"
> +SRC_URI = "https://www.xilinx.com/member/forms/download/xef.html?filename=${BSP_FILE};downloadfilename=${BSP_FILE}"
> +SRC_URI[md5sum] = "b39c5de323cf43a44da2f6eaa7e44d43"
> +SRC_URI[sha256sum] = "12bd85350cad01ab646cb983c9fcbbe06c2014a7c1a61fe8c4a74fab518aa45d"
> +
> +INHIBIT_DEFAULT_DEPS = "1"
> +PACKAGE_ARCH = "${MACHINE_ARCH}"
> +
> +do_compile() {
> +       # Extract the rom into workdir
> +       tar -xf ${WORKDIR}/${BSP_FILE} ${BSP_NAME}-${PV}/pre-built/linux/images/pmu_rom_qemu_sha3.elf -C ${S}
> +       # tar preserves the tree, so use find to get the full path and move to to the root
> +       for i in $(find ${S} -type f -name *.elf); do mv $i ${S}/pmu-rom.elf; done
> +}
> +
> +do_install() {
> +       :
> +}
> +
> +do_deploy () {
> +       install -D ${S}/pmu-rom.elf ${DEPLOYDIR}/pmu-rom.elf
> +}
> +
> +addtask deploy before do_build after do_install
> +
> --
> 2.14.1
>
> --
> _______________________________________________
> meta-xilinx mailing list
> meta-xilinx at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-xilinx



More information about the meta-xilinx mailing list