summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@xilinx.com>2021-06-22 13:41:22 -0700
committerSai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>2021-09-27 21:34:01 -0700
commit29054a5dc307d7f90878ae5ccc039c67ee37bbc4 (patch)
tree3234292939b799edf8251181625868d6429686f4
parent2bb2224aa7446f64b9843752c41cab3fc8ded6fa (diff)
downloadmeta-xilinx-29054a5dc307d7f90878ae5ccc039c67ee37bbc4.tar.gz
extract-cdo: Move from meta-xilinx-tools
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
-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