diff options
| author | Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> | 2024-12-23 15:33:25 -0700 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2025-03-30 14:16:15 -0600 |
| commit | 819b2bea1592c7dfa7295fc9211b3dd003d989e7 (patch) | |
| tree | 3bc28175c6d13d81982595b09504c238621f63af | |
| parent | 8319b84f83a7ba037c1339ead76c90afb9f63557 (diff) | |
| download | meta-xilinx-819b2bea1592c7dfa7295fc9211b3dd003d989e7.tar.gz | |
extract-cdo: Adjusted to use an intermediate default
Adjusted to use an intermediate default BOOTGEN_ARCH, so that no
override is required.
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
| -rw-r--r-- | meta-xilinx-core/recipes-bsp/cdo/extract-cdo_1.0.bb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta-xilinx-core/recipes-bsp/cdo/extract-cdo_1.0.bb b/meta-xilinx-core/recipes-bsp/cdo/extract-cdo_1.0.bb index fb0ac66b..6e734e36 100644 --- a/meta-xilinx-core/recipes-bsp/cdo/extract-cdo_1.0.bb +++ b/meta-xilinx-core/recipes-bsp/cdo/extract-cdo_1.0.bb | |||
| @@ -19,14 +19,17 @@ PACKAGE_ARCH ?= "${MACHINE_ARCH}" | |||
| 19 | B = "${WORKDIR}/build" | 19 | B = "${WORKDIR}/build" |
| 20 | 20 | ||
| 21 | BOOTGEN_CMD ?= "bootgen" | 21 | BOOTGEN_CMD ?= "bootgen" |
| 22 | BOOTGEN_ARGS ?= "-arch versal" | 22 | BOOTGEN_ARCH_DEFAULT = "undefined" |
| 23 | BOOTGEN_ARCH_DEFAULT:versal = "versal" | ||
| 24 | BOOTGEN_ARCH_DEFAULT:versal-net = "versalnet" | ||
| 25 | BOOTGEN_ARCH ?= "${BOOTGEN_ARCH_DEFAULT}" | ||
| 23 | BOOTGEN_OUTFILE ?= "${DEPLOY_DIR_IMAGE}/boot.bin" | 26 | BOOTGEN_OUTFILE ?= "${DEPLOY_DIR_IMAGE}/boot.bin" |
| 24 | 27 | ||
| 25 | # bootgen extracts the pmc_cdo file from the boot.bin. By default this | 28 | # bootgen extracts the pmc_cdo file from the boot.bin. By default this |
| 26 | # happens in the same directory as the boot.bin. We need to move it to | 29 | # happens in the same directory as the boot.bin. We need to move it to |
| 27 | # this directory, as do_compile should never write into a deploy dir | 30 | # this directory, as do_compile should never write into a deploy dir |
| 28 | do_compile() { | 31 | do_compile() { |
| 29 | ${BOOTGEN_CMD} ${BOOTGEN_ARGS} -dump_dir ${B} -dump ${BOOTGEN_OUTFILE} pmc_cdo | 32 | ${BOOTGEN_CMD} -arch ${BOOTGEN_ARCH} -dump_dir ${B} -dump ${BOOTGEN_OUTFILE} pmc_cdo |
| 30 | } | 33 | } |
| 31 | 34 | ||
| 32 | do_install[noexec] = '1' | 35 | do_install[noexec] = '1' |
