diff options
| -rw-r--r-- | meta-xilinx-bsp/recipes-bsp/cdo/extract-cdo_1.0.bb | 34 |
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 @@ | |||
| 1 | DESCRIPTION = "Recipe to copy external cdos" | ||
| 2 | |||
| 3 | LICENSE = "CLOSED" | ||
| 4 | |||
| 5 | inherit deploy | ||
| 6 | |||
| 7 | PROVIDES = "virtual/cdo" | ||
| 8 | |||
| 9 | DEPENDS += "bootgen-native" | ||
| 10 | |||
| 11 | do_compile[depends] += "virtual/boot-bin:do_deploy" | ||
| 12 | |||
| 13 | COMPATIBLE_MACHINE = "^$" | ||
| 14 | COMPATIBLE_MACHINE_versal = "versal" | ||
| 15 | |||
| 16 | PACKAGE_ARCH ?= "${MACHINE_ARCH}" | ||
| 17 | |||
| 18 | B = "${WORKDIR}/build" | ||
| 19 | |||
| 20 | BOOTGEN_CMD ?= "bootgen" | ||
| 21 | BOOTGEN_ARGS ?= "-arch versal" | ||
| 22 | BOOTGEN_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 | ||
| 25 | do_compile() { | ||
| 26 | ${BOOTGEN_CMD} ${BOOTGEN_ARGS} -dump ${BOOTGEN_OUTFILE} pmc_cdo | ||
| 27 | } | ||
| 28 | |||
| 29 | do_deploy() { | ||
| 30 | install -d ${DEPLOYDIR}/CDO | ||
| 31 | install -m 0644 ${DEPLOY_DIR_IMAGE}/pmc_cdo.bin ${DEPLOYDIR}/CDO/pmc_cdo.bin | ||
| 32 | } | ||
| 33 | |||
| 34 | addtask do_deploy after do_install | ||
