summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaju Kumar Pothuraju <rajukumar.pothuraju@amd.com>2025-01-21 13:13:47 +0530
committerMark Hatle <mark.hatle@amd.com>2025-03-30 14:16:15 -0600
commitce47e346b229598a7fb5559677a3250128daa27a (patch)
tree7dc14d5dd6db99eef42d3f5c1b9c698cf67b966b
parent52dd74131d13902df60480b6d6f9cf36a55760e2 (diff)
downloadmeta-xilinx-ce47e346b229598a7fb5559677a3250128daa27a.tar.gz
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 <rajukumar.pothuraju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/recipes-bsp/cdo/cdo-deploy_1.0.bb33
1 files changed, 33 insertions, 0 deletions
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 @@
1DESCRIPTION = "Recipe to deploy cdo files from System Device Tree Directory"
2
3LICENSE = "CLOSED"
4
5inherit deploy
6
7DEPENDS += "${SYSTEM_DTFILE_DEPENDS}"
8
9COMPATIBLE_MACHINE = "^$"
10COMPATIBLE_MACHINE:versal = "versal"
11COMPATIBLE_MACHINE:versal-net = "versal-net"
12
13# Since we're just copying, we can run any config
14COMPATIBLE_HOST = ".*"
15
16PACKAGE_ARCH ?= "${MACHINE_ARCH}"
17
18do_compile[noexec] = '1'
19do_install[noexec] = '1'
20
21do_deploy() {
22 install -d ${DEPLOYDIR}/CDO
23 pmc_data_cdo=$(find ${SYSTEM_DTFILE_DIR}/extracted/*/pdi_files/gen_files/ -name pmc_data.cdo | head -1)
24 if [ -e $pmc_data_cdo ]; then
25 install -m 0644 ${pmc_data_cdo} ${DEPLOYDIR}/CDO/pmc_data.cdo
26 fi
27
28 lpd_data_cdo=$(find ${SYSTEM_DTFILE_DIR}/extracted/*/pdi_files/gen_files/ -name lpd_data.cdo | head -1)
29 if [ -e $lpd_data_cdo ]; then
30 install -m 0644 $lpd_data_cdo ${DEPLOYDIR}/CDO/lpd_data.cdo
31 fi
32}
33addtask deploy before do_build after do_install