diff options
| author | Mark Hatle <mark.hatle@xilinx.com> | 2022-02-01 14:49:23 -0800 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@xilinx.com> | 2022-02-04 13:28:20 -0800 |
| commit | a32c040885f065c94be257a7dd92daefe76b3435 (patch) | |
| tree | 534e3fdf634be332ded57acb3fd794f7f4cdfa19 | |
| parent | 9ce05df5d436c65549f49d0bfa35cf06b170cc08 (diff) | |
| download | meta-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>
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 |
| 5 | BIF_COMMON_ATTR ?= "" | 5 | BIF_COMMON_ATTR ?= "" |
| 6 | 6 | ||
| 7 | # specify BIF partition attributes required for BOOT.bin | 7 | #specify BIF partition attributes required for BOOT.bin |
| 8 | BIF_PARTITION_ATTR ?= "base-pdi plmfw psmfw device-tree arm-trusted-firmware u-boot-xlnx" | 8 | BIF_FSBL_ATTR ??= "base-pdi plmfw psmfw" |
| 9 | BIF_ATF_ATTR ??= "arm-trusted-firmware" | ||
| 10 | BIF_DEVICETREE_ATTR ??= "device-tree" | ||
| 11 | BIF_SSBL_ATTR ??= "u-boot-xlnx" | ||
| 12 | BIF_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 |
| 11 | BIF_PARTITION_ATTR[base-pdi] ?= "type=bootimage" | 15 | BIF_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 |
| 2 | BIF_FSBL_ATTR ?= "fsbl" | 2 | BIF_FSBL_ATTR ??= "fsbl" |
| 3 | BIF_BITSTREAM_ATTR ?= "" | 3 | BIF_BITSTREAM_ATTR ??= "" |
| 4 | BIF_DEVICETREE_ATTR ?= "device-tree" | 4 | BIF_DEVICETREE_ATTR ??= "device-tree" |
| 5 | BIF_SSBL_ATTR ?= "u-boot-xlnx" | 5 | BIF_SSBL_ATTR ??= "u-boot-xlnx" |
| 6 | BIF_PARTITION_ATTR ?= "${BIF_FSBL_ATTR} ${BIF_BITSTREAM_ATTR} ${BIF_SSBL_ATTR} ${BIF_DEVICETREE_ATTR}" | 6 | BIF_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 | # |
| 18 | BIF_FSBL_ATTR ?= "fsbl pmufw" | 18 | BIF_FSBL_ATTR ??= "fsbl pmufw" |
| 19 | BIF_BITSTREAM_ATTR ?= "" | 19 | BIF_BITSTREAM_ATTR ??= "" |
| 20 | BIF_ATF_ATTR ?= "arm-trusted-firmware" | 20 | BIF_ATF_ATTR ??= "arm-trusted-firmware" |
| 21 | BIF_DEVICETREE_ATTR ?= "device-tree" | 21 | BIF_DEVICETREE_ATTR ??= "device-tree" |
| 22 | BIF_SSBL_ATTR ?= "u-boot-xlnx" | 22 | BIF_SSBL_ATTR ??= "u-boot-xlnx" |
| 23 | BIF_PARTITION_ATTR ?= "${BIF_FSBL_ATTR} ${BIF_BITSTREAM_ATTR} ${BIF_ATF_ATTR} ${BIF_DEVICETREE_ATTR} ${BIF_SSBL_ATTR}" | 23 | BIF_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 |
