From f679ad77dfbfe0a04ff27171a14a61c09cfb9da8 Mon Sep 17 00:00:00 2001 From: Raju Kumar Pothuraju Date: Sat, 7 Dec 2024 14:29:39 +0530 Subject: vek280-pl-aie-vdu-fw: Add vek280-pl-aie-vdu-fw recipe Add vek280-pl-aie-vdu-fw recipe. Signed-off-by: Raju Kumar Pothuraju Signed-off-by: Mark Hatle --- .../vek280-pl-aie-vdu-fw_1.0-2024.2.bb | 29 ++++++++++++++++++++++ meta-xilinx-demos/scripts/generate-machines-sdt.sh | 1 + 2 files changed, 30 insertions(+) create mode 100644 meta-xilinx-demos/recipes-firmware/vek280-pl-aie-vdu-fw/vek280-pl-aie-vdu-fw_1.0-2024.2.bb diff --git a/meta-xilinx-demos/recipes-firmware/vek280-pl-aie-vdu-fw/vek280-pl-aie-vdu-fw_1.0-2024.2.bb b/meta-xilinx-demos/recipes-firmware/vek280-pl-aie-vdu-fw/vek280-pl-aie-vdu-fw_1.0-2024.2.bb new file mode 100644 index 00000000..c52699ad --- /dev/null +++ b/meta-xilinx-demos/recipes-firmware/vek280-pl-aie-vdu-fw/vek280-pl-aie-vdu-fw_1.0-2024.2.bb @@ -0,0 +1,29 @@ +SUMMARY = "VEK280 Segemented Configuration(DFx Full) firmware using dfx_user_dts bbclass" +DESCRIPTION = "VEK280 Segemented Configuration(DFx Full) PL AIE and VDU firmware application" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +inherit dfx_user_dts + + +SRC_URI = "https://petalinux.xilinx.com/sswreleases/rel-v2024.2/sdt/2024.2/2024.2_1111_1_12050425/external/vek280-pl-aie-vdu-fw/vek280-pl-aie-vdu-fw_2024.2_1111_1.tar.gz" + +SRC_URI[sha256sum] = "4e85aa16c067b3b4eb8ad174c8789426b260d80dd155290f04ef4f89f50b2d04" + +COMPATIBLE_MACHINE:versal-vek280-sdt-seg = "${MACHINE}" + +# When do_upack is exectuted it will extract tar file with original directory +# name so set the FW_DIR pointing to pdi and dtsi files. +FW_DIR = "vek280-pl-aie-vdu-fw" + +# fw files doesn't install on rootfs using dfx_user_dts bbclass using artifactory +# method. To workaround this issue we are using copy_fw_files pre-functions. +# copy_fw_files prefuncs needs to be called before find_firmware_file to update +# the firmware-name to ${PN}. +do_configure[prefuncs] =+ "copy_fw_files" +python copy_fw_files () { + import shutil + fw_file_src = d.getVar('WORKDIR') + '/' + d.getVar("FW_DIR") + fw_file_dest = d.getVar('S') + shutil.copytree(fw_file_src, fw_file_dest, dirs_exist_ok=True) +} diff --git a/meta-xilinx-demos/scripts/generate-machines-sdt.sh b/meta-xilinx-demos/scripts/generate-machines-sdt.sh index aaeef385..44c77a88 100755 --- a/meta-xilinx-demos/scripts/generate-machines-sdt.sh +++ b/meta-xilinx-demos/scripts/generate-machines-sdt.sh @@ -3,6 +3,7 @@ ### The following table controls the automatic generated of the firmware demos ### Machine Recipe #M# vek280-pl-bram-gpio-fw recipes-firmware/vek280-pl-bram-uart-gpio-fw/vek280-pl-bram-uart-gpio-fw_1.0-2024.2.bb +#M# vek280-pl-aie-vdu-fw recipes-firmware/vek280-pl-aie-vdu-fw/vek280-pl-aie-vdu-fw_1.0-2024.2.bb #M# zcu104-pl-vcu-fw recipes-firmware/zcu104-pl-vcu-fw/zcu104-pl-vcu-fw_1.0-2024.2.bb this=$(realpath $0) -- cgit v1.2.3-54-g00ecf