diff options
author | Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> | 2023-02-02 15:30:10 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-02-06 10:44:47 -0600 |
commit | b0580329adc907c2fd78382cf5f862cb593f8dbc (patch) | |
tree | f5c0f0da7b3888ac86103d440cbf5e2c85b0cb1d /meta-xilinx-core/recipes-bsp/bootbin | |
parent | 8f1c8a8e367f319b5bd961df19c00c8ebf15a8d0 (diff) | |
download | meta-xilinx-b0580329adc907c2fd78382cf5f862cb593f8dbc.tar.gz |
xilinx-bootbin: Enable versalnet arch command option
1. Enable versalnet -arch command option for versal-net devices.
2. Add COMPATIBLE_MACHINE for SOC and don't allow building for
Microblaze.
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/recipes-bsp/bootbin')
-rw-r--r-- | meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb b/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb index 0cab4867..5133fbd8 100644 --- a/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb +++ b/meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb | |||
@@ -9,6 +9,12 @@ include machine-xilinx-${SOC_FAMILY}.inc | |||
9 | 9 | ||
10 | inherit deploy | 10 | inherit deploy |
11 | 11 | ||
12 | # Don't allow building for microblaze MACHINE | ||
13 | COMPATIBLE_MACHINE ?= "^$" | ||
14 | COMPATIBLE_MACHINE:zynq = ".*" | ||
15 | COMPATIBLE_MACHINE:zynqmp = ".*" | ||
16 | COMPATIBLE_MACHINE:versal = ".*" | ||
17 | |||
12 | PROVIDES = "virtual/boot-bin" | 18 | PROVIDES = "virtual/boot-bin" |
13 | 19 | ||
14 | DEPENDS += "bootgen-native" | 20 | DEPENDS += "bootgen-native" |
@@ -25,6 +31,14 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda | |||
25 | 31 | ||
26 | SRC_URI += "${@('file://' + d.getVar("BIF_FILE_PATH")) if d.getVar("BIF_FILE_PATH") != (d.getVar('B') + '/bootgen.bif') else ''}" | 32 | SRC_URI += "${@('file://' + d.getVar("BIF_FILE_PATH")) if d.getVar("BIF_FILE_PATH") != (d.getVar('B') + '/bootgen.bif') else ''}" |
27 | 33 | ||
34 | # bootgen command -arch option for different SOC architectures | ||
35 | # zynq7000 : zynq | ||
36 | # zynqmp : zynqmp | ||
37 | # versal : versal | ||
38 | # versal-net : versalnet | ||
39 | BOOTGEN_ARCH_DEFAULT = "${SOC_FAMILY}" | ||
40 | BOOTGEN_ARCH_DEFAULT:versal-net = "${SOC_FAMILY}${SOC_VARIANT}" | ||
41 | BOOTGEN_ARCH ?= "${BOOTGEN_ARCH_DEFAULT}" | ||
28 | BOOTGEN_EXTRA_ARGS ?= "" | 42 | BOOTGEN_EXTRA_ARGS ?= "" |
29 | 43 | ||
30 | do_patch[noexec] = "1" | 44 | do_patch[noexec] = "1" |
@@ -136,7 +150,7 @@ do_compile() { | |||
136 | if [ "${BIF_FILE_PATH}" != "${B}/bootgen.bif" ];then | 150 | if [ "${BIF_FILE_PATH}" != "${B}/bootgen.bif" ];then |
137 | BIF_FILE_PATH="${WORKDIR}${BIF_FILE_PATH}" | 151 | BIF_FILE_PATH="${WORKDIR}${BIF_FILE_PATH}" |
138 | fi | 152 | fi |
139 | bootgen -image ${BIF_FILE_PATH} -arch ${SOC_FAMILY} ${BOOTGEN_EXTRA_ARGS} -w -o ${B}/BOOT.bin | 153 | bootgen -image ${BIF_FILE_PATH} -arch ${BOOTGEN_ARCH} ${BOOTGEN_EXTRA_ARGS} -w -o ${B}/BOOT.bin |
140 | if [ ! -e ${B}/BOOT.bin ]; then | 154 | if [ ! -e ${B}/BOOT.bin ]; then |
141 | bbfatal "bootgen failed. See log" | 155 | bbfatal "bootgen failed. See log" |
142 | fi | 156 | fi |