summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@xilinx.com>2022-02-01 14:49:23 -0800
committerMark Hatle <mark.hatle@xilinx.com>2022-02-04 13:28:20 -0800
commita32c040885f065c94be257a7dd92daefe76b3435 (patch)
tree534e3fdf634be332ded57acb3fd794f7f4cdfa19
parent9ce05df5d436c65549f49d0bfa35cf06b170cc08 (diff)
downloadmeta-xilinx-a32c040885f065c94be257a7dd92daefe76b3435.tar.gz
xilinx-bootbin: Sync versal and ensure items can be defined in local.conf
Use ??= to define the default values. This ensures a ?= (or =) can be used in a .bbappend, or a user can define a default value in the local.conf or machine.conf file. Also add a default config for versal that matches zynqmp and zynq. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
-rw-r--r--meta-xilinx-core/recipes-bsp/bootbin/machine-xilinx-versal.inc8
-rw-r--r--meta-xilinx-core/recipes-bsp/bootbin/machine-xilinx-zynq.inc10
-rw-r--r--meta-xilinx-core/recipes-bsp/bootbin/machine-xilinx-zynqmp.inc12
3 files changed, 17 insertions, 13 deletions
diff --git a/meta-xilinx-core/recipes-bsp/bootbin/machine-xilinx-versal.inc b/meta-xilinx-core/recipes-bsp/bootbin/machine-xilinx-versal.inc
index a9c58aa2..fff2c7a3 100644
--- a/meta-xilinx-core/recipes-bsp/bootbin/machine-xilinx-versal.inc
+++ b/meta-xilinx-core/recipes-bsp/bootbin/machine-xilinx-versal.inc
@@ -4,8 +4,12 @@ BOOTGEN_EXTRA_ARGS += "-dump bh"
4# specify BIF common attribute for FSBL 4# specify BIF common attribute for FSBL
5BIF_COMMON_ATTR ?= "" 5BIF_COMMON_ATTR ?= ""
6 6
7# specify BIF partition attributes required for BOOT.bin 7#specify BIF partition attributes required for BOOT.bin
8BIF_PARTITION_ATTR ?= "base-pdi plmfw psmfw device-tree arm-trusted-firmware u-boot-xlnx" 8BIF_FSBL_ATTR ??= "base-pdi plmfw psmfw"
9BIF_ATF_ATTR ??= "arm-trusted-firmware"
10BIF_DEVICETREE_ATTR ??= "device-tree"
11BIF_SSBL_ATTR ??= "u-boot-xlnx"
12BIF_PARTITION_ATTR ??= "${BIF_FSBL_ATTR} ${BIF_DEVICETREE_ATTR} ${BIF_ATF_ATTR} ${BIF_SSBL_ATTR}"
9 13
10# specify BIF partition attributes for base-pdi 14# specify BIF partition attributes for base-pdi
11BIF_PARTITION_ATTR[base-pdi] ?= "type=bootimage" 15BIF_PARTITION_ATTR[base-pdi] ?= "type=bootimage"
diff --git a/meta-xilinx-core/recipes-bsp/bootbin/machine-xilinx-zynq.inc b/meta-xilinx-core/recipes-bsp/bootbin/machine-xilinx-zynq.inc
index 89fa1b5b..a9428d5c 100644
--- a/meta-xilinx-core/recipes-bsp/bootbin/machine-xilinx-zynq.inc
+++ b/meta-xilinx-core/recipes-bsp/bootbin/machine-xilinx-zynq.inc
@@ -1,9 +1,9 @@
1#specify BIF partition attributes required for BOOT.bin 1#specify BIF partition attributes required for BOOT.bin
2BIF_FSBL_ATTR ?= "fsbl" 2BIF_FSBL_ATTR ??= "fsbl"
3BIF_BITSTREAM_ATTR ?= "" 3BIF_BITSTREAM_ATTR ??= ""
4BIF_DEVICETREE_ATTR ?= "device-tree" 4BIF_DEVICETREE_ATTR ??= "device-tree"
5BIF_SSBL_ATTR ?= "u-boot-xlnx" 5BIF_SSBL_ATTR ??= "u-boot-xlnx"
6BIF_PARTITION_ATTR ?= "${BIF_FSBL_ATTR} ${BIF_BITSTREAM_ATTR} ${BIF_SSBL_ATTR} ${BIF_DEVICETREE_ATTR}" 6BIF_PARTITION_ATTR ??= "${BIF_FSBL_ATTR} ${BIF_BITSTREAM_ATTR} ${BIF_SSBL_ATTR} ${BIF_DEVICETREE_ATTR}"
7 7
8#specify BIF partition attributes for FSBL 8#specify BIF partition attributes for FSBL
9#bootloader is FSBL. Location where FSBL binary is present and dependency to build FSBL 9#bootloader is FSBL. Location where FSBL binary is present and dependency to build FSBL
diff --git a/meta-xilinx-core/recipes-bsp/bootbin/machine-xilinx-zynqmp.inc b/meta-xilinx-core/recipes-bsp/bootbin/machine-xilinx-zynqmp.inc
index 91497658..ab2ee1d7 100644
--- a/meta-xilinx-core/recipes-bsp/bootbin/machine-xilinx-zynqmp.inc
+++ b/meta-xilinx-core/recipes-bsp/bootbin/machine-xilinx-zynqmp.inc
@@ -15,12 +15,12 @@ BIF_COMMON_ATTR ?= ""
15# This combination restricts the boot order to be: 15# This combination restricts the boot order to be:
16# FSBL & PMUFW -> Bitstream (if available) -> ATF -> Device Tree (if available) -> Second Stage Bootloader 16# FSBL & PMUFW -> Bitstream (if available) -> ATF -> Device Tree (if available) -> Second Stage Bootloader
17# 17#
18BIF_FSBL_ATTR ?= "fsbl pmufw" 18BIF_FSBL_ATTR ??= "fsbl pmufw"
19BIF_BITSTREAM_ATTR ?= "" 19BIF_BITSTREAM_ATTR ??= ""
20BIF_ATF_ATTR ?= "arm-trusted-firmware" 20BIF_ATF_ATTR ??= "arm-trusted-firmware"
21BIF_DEVICETREE_ATTR ?= "device-tree" 21BIF_DEVICETREE_ATTR ??= "device-tree"
22BIF_SSBL_ATTR ?= "u-boot-xlnx" 22BIF_SSBL_ATTR ??= "u-boot-xlnx"
23BIF_PARTITION_ATTR ?= "${BIF_FSBL_ATTR} ${BIF_BITSTREAM_ATTR} ${BIF_ATF_ATTR} ${BIF_DEVICETREE_ATTR} ${BIF_SSBL_ATTR}" 23BIF_PARTITION_ATTR ??= "${BIF_FSBL_ATTR} ${BIF_BITSTREAM_ATTR} ${BIF_ATF_ATTR} ${BIF_DEVICETREE_ATTR} ${BIF_SSBL_ATTR}"
24 24
25# specify BIF partition attributes for FSBL 25# specify BIF partition attributes for FSBL
26# bootloader is FSBL. Location where FSBL binary is present and dependency to build FSBL 26# bootloader is FSBL. Location where FSBL binary is present and dependency to build FSBL