summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-xilinx-bsp/recipes-bsp/cdo/extract-cdo_1.0.bb34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/recipes-bsp/cdo/extract-cdo_1.0.bb b/meta-xilinx-bsp/recipes-bsp/cdo/extract-cdo_1.0.bb
new file mode 100644
index 00000000..dedb3559
--- /dev/null
+++ b/meta-xilinx-bsp/recipes-bsp/cdo/extract-cdo_1.0.bb
@@ -0,0 +1,34 @@
1DESCRIPTION = "Recipe to copy external cdos"
2
3LICENSE = "CLOSED"
4
5inherit deploy
6
7PROVIDES = "virtual/cdo"
8
9DEPENDS += "bootgen-native"
10
11do_compile[depends] += "virtual/boot-bin:do_deploy"
12
13COMPATIBLE_MACHINE = "^$"
14COMPATIBLE_MACHINE_versal = "versal"
15
16PACKAGE_ARCH ?= "${MACHINE_ARCH}"
17
18B = "${WORKDIR}/build"
19
20BOOTGEN_CMD ?= "bootgen"
21BOOTGEN_ARGS ?= "-arch versal"
22BOOTGEN_OUTFILE ?= "${DEPLOY_DIR_IMAGE}/boot.bin"
23
24#The following line creates the pmc_cdo.bin file at the same dir as the boot.bin which is DEPLOY_DIR_IMAGE
25do_compile() {
26 ${BOOTGEN_CMD} ${BOOTGEN_ARGS} -dump ${BOOTGEN_OUTFILE} pmc_cdo
27}
28
29do_deploy() {
30 install -d ${DEPLOYDIR}/CDO
31 install -m 0644 ${DEPLOY_DIR_IMAGE}/pmc_cdo.bin ${DEPLOYDIR}/CDO/pmc_cdo.bin
32}
33
34addtask do_deploy after do_install