From ce47e346b229598a7fb5559677a3250128daa27a Mon Sep 17 00:00:00 2001 From: Raju Kumar Pothuraju Date: Tue, 21 Jan 2025 13:13:47 +0530 Subject: cdo-deploy: Create separate recipe to deploy cdo files Create recipe to deploy cdo files from system-device-tree dir to deploy dir. bootgen will fail if the image path in the bif is larger, this will fix that issue by using images from deploy dir. Signed-off-by: Raju Kumar Pothuraju Signed-off-by: Mark Hatle --- meta-xilinx-core/recipes-bsp/cdo/cdo-deploy_1.0.bb | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 meta-xilinx-core/recipes-bsp/cdo/cdo-deploy_1.0.bb diff --git a/meta-xilinx-core/recipes-bsp/cdo/cdo-deploy_1.0.bb b/meta-xilinx-core/recipes-bsp/cdo/cdo-deploy_1.0.bb new file mode 100644 index 00000000..46a03320 --- /dev/null +++ b/meta-xilinx-core/recipes-bsp/cdo/cdo-deploy_1.0.bb @@ -0,0 +1,33 @@ +DESCRIPTION = "Recipe to deploy cdo files from System Device Tree Directory" + +LICENSE = "CLOSED" + +inherit deploy + +DEPENDS += "${SYSTEM_DTFILE_DEPENDS}" + +COMPATIBLE_MACHINE = "^$" +COMPATIBLE_MACHINE:versal = "versal" +COMPATIBLE_MACHINE:versal-net = "versal-net" + +# Since we're just copying, we can run any config +COMPATIBLE_HOST = ".*" + +PACKAGE_ARCH ?= "${MACHINE_ARCH}" + +do_compile[noexec] = '1' +do_install[noexec] = '1' + +do_deploy() { + install -d ${DEPLOYDIR}/CDO + pmc_data_cdo=$(find ${SYSTEM_DTFILE_DIR}/extracted/*/pdi_files/gen_files/ -name pmc_data.cdo | head -1) + if [ -e $pmc_data_cdo ]; then + install -m 0644 ${pmc_data_cdo} ${DEPLOYDIR}/CDO/pmc_data.cdo + fi + + lpd_data_cdo=$(find ${SYSTEM_DTFILE_DIR}/extracted/*/pdi_files/gen_files/ -name lpd_data.cdo | head -1) + if [ -e $lpd_data_cdo ]; then + install -m 0644 $lpd_data_cdo ${DEPLOYDIR}/CDO/lpd_data.cdo + fi +} +addtask deploy before do_build after do_install -- cgit v1.2.3-54-g00ecf