diff options
author | Raju Kumar Pothuraju <rajukumar.pothuraju@amd.com> | 2025-01-21 13:13:47 +0530 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2025-03-30 14:16:15 -0600 |
commit | ce47e346b229598a7fb5559677a3250128daa27a (patch) | |
tree | 7dc14d5dd6db99eef42d3f5c1b9c698cf67b966b | |
parent | 52dd74131d13902df60480b6d6f9cf36a55760e2 (diff) | |
download | meta-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.bb | 33 |
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 @@ | |||
1 | DESCRIPTION = "Recipe to deploy cdo files from System Device Tree Directory" | ||
2 | |||
3 | LICENSE = "CLOSED" | ||
4 | |||
5 | inherit deploy | ||
6 | |||
7 | DEPENDS += "${SYSTEM_DTFILE_DEPENDS}" | ||
8 | |||
9 | COMPATIBLE_MACHINE = "^$" | ||
10 | COMPATIBLE_MACHINE:versal = "versal" | ||
11 | COMPATIBLE_MACHINE:versal-net = "versal-net" | ||
12 | |||
13 | # Since we're just copying, we can run any config | ||
14 | COMPATIBLE_HOST = ".*" | ||
15 | |||
16 | PACKAGE_ARCH ?= "${MACHINE_ARCH}" | ||
17 | |||
18 | do_compile[noexec] = '1' | ||
19 | do_install[noexec] = '1' | ||
20 | |||
21 | do_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 | } | ||
33 | addtask deploy before do_build after do_install | ||