summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/recipes-bsp/bootbin
diff options
context:
space:
mode:
authorSandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>2023-02-02 15:30:10 -0700
committerMark Hatle <mark.hatle@amd.com>2023-02-06 10:44:47 -0600
commitb0580329adc907c2fd78382cf5f862cb593f8dbc (patch)
treef5c0f0da7b3888ac86103d440cbf5e2c85b0cb1d /meta-xilinx-core/recipes-bsp/bootbin
parent8f1c8a8e367f319b5bd961df19c00c8ebf15a8d0 (diff)
downloadmeta-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.bb16
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
10inherit deploy 10inherit deploy
11 11
12# Don't allow building for microblaze MACHINE
13COMPATIBLE_MACHINE ?= "^$"
14COMPATIBLE_MACHINE:zynq = ".*"
15COMPATIBLE_MACHINE:zynqmp = ".*"
16COMPATIBLE_MACHINE:versal = ".*"
17
12PROVIDES = "virtual/boot-bin" 18PROVIDES = "virtual/boot-bin"
13 19
14DEPENDS += "bootgen-native" 20DEPENDS += "bootgen-native"
@@ -25,6 +31,14 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
25 31
26SRC_URI += "${@('file://' + d.getVar("BIF_FILE_PATH")) if d.getVar("BIF_FILE_PATH") != (d.getVar('B') + '/bootgen.bif') else ''}" 32SRC_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
39BOOTGEN_ARCH_DEFAULT = "${SOC_FAMILY}"
40BOOTGEN_ARCH_DEFAULT:versal-net = "${SOC_FAMILY}${SOC_VARIANT}"
41BOOTGEN_ARCH ?= "${BOOTGEN_ARCH_DEFAULT}"
28BOOTGEN_EXTRA_ARGS ?= "" 42BOOTGEN_EXTRA_ARGS ?= ""
29 43
30do_patch[noexec] = "1" 44do_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