diff options
| author | Mark Hatle <mark.hatle@xilinx.com> | 2021-12-18 20:26:09 -0800 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@xilinx.com> | 2022-01-14 15:37:05 -0800 |
| commit | f9cec6e733c53eac14ad2f9d6c10c8fad9862a8c (patch) | |
| tree | 4aef0a1d06966fd26b4f8c746bf80942381cac3b /meta-xilinx-core | |
| parent | 81a6bfd7943bafb4b26db650ad2af453868d60f0 (diff) | |
| download | meta-xilinx-f9cec6e733c53eac14ad2f9d6c10c8fad9862a8c.tar.gz | |
Move away from PACKAGE_ARCH = "BOARD_ARCH" or "BOARDVARIANT_ARCH"
PACKAGE_ARCH should not be MACHINE_ARCH, unless a specific override is
being used for compatibility.
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-core')
10 files changed, 11 insertions, 38 deletions
diff --git a/meta-xilinx-core/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc b/meta-xilinx-core/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc index 9c2e0e08..b90295ff 100644 --- a/meta-xilinx-core/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc +++ b/meta-xilinx-core/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc | |||
| @@ -28,14 +28,12 @@ inherit image-artifact-names | |||
| 28 | 28 | ||
| 29 | ATF_BASE_NAME ?= "${PN}-${PKGE}-${PKGV}-${PKGR}${IMAGE_VERSION_SUFFIX}" | 29 | ATF_BASE_NAME ?= "${PN}-${PKGE}-${PKGV}-${PKGR}${IMAGE_VERSION_SUFFIX}" |
| 30 | 30 | ||
| 31 | # Specify a default in case boardvariant isn't available | ||
| 32 | BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}" | ||
| 33 | PACKAGE_ARCH = "${BOARDVARIANT_ARCH}" | ||
| 34 | |||
| 35 | COMPATIBLE_MACHINE ?= "^$" | 31 | COMPATIBLE_MACHINE ?= "^$" |
| 36 | COMPATIBLE_MACHINE:zynqmp = ".*" | 32 | COMPATIBLE_MACHINE:zynqmp = ".*" |
| 37 | COMPATIBLE_MACHINE:versal = ".*" | 33 | COMPATIBLE_MACHINE:versal = ".*" |
| 38 | 34 | ||
| 35 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 36 | |||
| 39 | PLATFORM:zynqmp = "zynqmp" | 37 | PLATFORM:zynqmp = "zynqmp" |
| 40 | PLATFORM:versal = "versal" | 38 | PLATFORM:versal = "versal" |
| 41 | 39 | ||
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 532da106..2595f2c4 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 | |||
| @@ -16,9 +16,7 @@ DEPENDS += "bootgen-native" | |||
| 16 | # There is no bitstream recipe, so really depend on virtual/bitstream | 16 | # There is no bitstream recipe, so really depend on virtual/bitstream |
| 17 | DEPENDS += "${@(d.getVar('BIF_PARTITION_ATTR') or "").replace('bitstream', 'virtual/bitstream')}" | 17 | DEPENDS += "${@(d.getVar('BIF_PARTITION_ATTR') or "").replace('bitstream', 'virtual/bitstream')}" |
| 18 | 18 | ||
| 19 | # Specify a default in case boardvariant isn't available | 19 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 20 | BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}" | ||
| 21 | PACKAGE_ARCH = "${BOARDVARIANT_ARCH}" | ||
| 22 | 20 | ||
| 23 | BIF_FILE_PATH ?= "${B}/bootgen.bif" | 21 | BIF_FILE_PATH ?= "${B}/bootgen.bif" |
| 24 | 22 | ||
diff --git a/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb b/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb index 27f008f8..626a9cb1 100644 --- a/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb +++ b/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb | |||
| @@ -20,10 +20,6 @@ DT_FILES_PATH = "${@os.path.dirname(d.getVar('SYSTEM_DTFILE')) if d.getVar('SYST | |||
| 20 | COMPATIBLE_MACHINE:zynqmp = ".*" | 20 | COMPATIBLE_MACHINE:zynqmp = ".*" |
| 21 | COMPATIBLE_MACHINE:versal = ".*" | 21 | COMPATIBLE_MACHINE:versal = ".*" |
| 22 | 22 | ||
| 23 | # Device-trees are inherently board specific | ||
| 24 | BOARD_ARCH ??= "${MACHINE_ARCH}" | ||
| 25 | PACKAGE_ARCH = "${BOARD_ARCH}" | ||
| 26 | |||
| 27 | DEPENDS += "python3-dtc-native" | 23 | DEPENDS += "python3-dtc-native" |
| 28 | 24 | ||
| 29 | PROVIDES = "virtual/dtb" | 25 | PROVIDES = "virtual/dtb" |
diff --git a/meta-xilinx-core/recipes-bsp/embeddedsw/fsbl.bb b/meta-xilinx-core/recipes-bsp/embeddedsw/fsbl.bb index 2fa71309..ae2123e7 100644 --- a/meta-xilinx-core/recipes-bsp/embeddedsw/fsbl.bb +++ b/meta-xilinx-core/recipes-bsp/embeddedsw/fsbl.bb | |||
| @@ -10,9 +10,7 @@ COMPATIBLE_MACHINE = "^$" | |||
| 10 | COMPATIBLE_MACHINE:zynq = "zynq" | 10 | COMPATIBLE_MACHINE:zynq = "zynq" |
| 11 | COMPATIBLE_MACHINE:zynqmp = "zynqmp" | 11 | COMPATIBLE_MACHINE:zynqmp = "zynqmp" |
| 12 | 12 | ||
| 13 | # Specify a default in case boardvariant isn't available | 13 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 14 | BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}" | ||
| 15 | PACKAGE_ARCH = "${BOARDVARIANT_ARCH}" | ||
| 16 | 14 | ||
| 17 | # Default would be a multiconfig (versal) build | 15 | # Default would be a multiconfig (versal) build |
| 18 | # For this to work, BBMULTICONFIG += "fsbl-fw" must be in the user's local.conf! | 16 | # For this to work, BBMULTICONFIG += "fsbl-fw" must be in the user's local.conf! |
diff --git a/meta-xilinx-core/recipes-bsp/embeddedsw/plmfw.bb b/meta-xilinx-core/recipes-bsp/embeddedsw/plmfw.bb index 70d234c9..6a2a5172 100644 --- a/meta-xilinx-core/recipes-bsp/embeddedsw/plmfw.bb +++ b/meta-xilinx-core/recipes-bsp/embeddedsw/plmfw.bb | |||
| @@ -10,9 +10,7 @@ INHERIT_DEFAULT_DEPENDS = "1" | |||
| 10 | COMPATIBLE_MACHINE = "^$" | 10 | COMPATIBLE_MACHINE = "^$" |
| 11 | COMPATIBLE_MACHINE:versal = "versal" | 11 | COMPATIBLE_MACHINE:versal = "versal" |
| 12 | 12 | ||
| 13 | # Specify a default in case boardvariant isn't available | 13 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 14 | BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}" | ||
| 15 | PACKAGE_ARCH = "${BOARDVARIANT_ARCH}" | ||
| 16 | 14 | ||
| 17 | # Default would be a multiconfig (versal) build | 15 | # Default would be a multiconfig (versal) build |
| 18 | # For this to work, BBMULTICONFIG += "versal-fw" must be in the user's local.conf! | 16 | # For this to work, BBMULTICONFIG += "versal-fw" must be in the user's local.conf! |
diff --git a/meta-xilinx-core/recipes-bsp/embeddedsw/pmufw.bb b/meta-xilinx-core/recipes-bsp/embeddedsw/pmufw.bb index 7371127c..ea0eb5a6 100644 --- a/meta-xilinx-core/recipes-bsp/embeddedsw/pmufw.bb +++ b/meta-xilinx-core/recipes-bsp/embeddedsw/pmufw.bb | |||
| @@ -9,9 +9,7 @@ INHERIT_DEFAULT_DEPENDS = "1" | |||
| 9 | COMPATIBLE_MACHINE = "^$" | 9 | COMPATIBLE_MACHINE = "^$" |
| 10 | COMPATIBLE_MACHINE:zynqmp = "zynqmp" | 10 | COMPATIBLE_MACHINE:zynqmp = "zynqmp" |
| 11 | 11 | ||
| 12 | # Specify a default in case boardvariant isn't available | 12 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 13 | BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}" | ||
| 14 | PACKAGE_ARCH = "${BOARDVARIANT_ARCH}" | ||
| 15 | 13 | ||
| 16 | # Default would be a multiconfig (zynqmp-pmufw) build | 14 | # Default would be a multiconfig (zynqmp-pmufw) build |
| 17 | # For this to work, BBMULTICONFIG += "zynqmp-pmufw" must be in the user's local.conf! | 15 | # For this to work, BBMULTICONFIG += "zynqmp-pmufw" must be in the user's local.conf! |
diff --git a/meta-xilinx-core/recipes-bsp/embeddedsw/psmfw.bb b/meta-xilinx-core/recipes-bsp/embeddedsw/psmfw.bb index 5a885b3b..89a9e93f 100644 --- a/meta-xilinx-core/recipes-bsp/embeddedsw/psmfw.bb +++ b/meta-xilinx-core/recipes-bsp/embeddedsw/psmfw.bb | |||
| @@ -10,9 +10,7 @@ INHERIT_DEFAULT_DEPENDS = "1" | |||
| 10 | COMPATIBLE_MACHINE = "^$" | 10 | COMPATIBLE_MACHINE = "^$" |
| 11 | COMPATIBLE_MACHINE:versal = "versal" | 11 | COMPATIBLE_MACHINE:versal = "versal" |
| 12 | 12 | ||
| 13 | # Specify a default in case boardvariant isn't available | 13 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 14 | BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}" | ||
| 15 | PACKAGE_ARCH = "${BOARDVARIANT_ARCH}" | ||
| 16 | 14 | ||
| 17 | # Default would be a multiconfig (versal) build | 15 | # Default would be a multiconfig (versal) build |
| 18 | # For this to work, BBMULTICONFIG += "versal-fw" must be in the user's local.conf! | 16 | # For this to work, BBMULTICONFIG += "versal-fw" must be in the user's local.conf! |
diff --git a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc index 893b8f6c..c41a4bad 100644 --- a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc +++ b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc | |||
| @@ -18,7 +18,3 @@ B = "${WORKDIR}/build" | |||
| 18 | FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot:" | 18 | FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot:" |
| 19 | 19 | ||
| 20 | SYSROOT_DIRS += "/boot" | 20 | SYSROOT_DIRS += "/boot" |
| 21 | |||
| 22 | # Specify a default in case boardvariant isn't available | ||
| 23 | BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}" | ||
| 24 | PACKAGE_ARCH = "${BOARDVARIANT_ARCH}" | ||
diff --git a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-zynq-scr.bb b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-zynq-scr.bb index a75484a8..766b2b81 100644 --- a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-zynq-scr.bb +++ b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-zynq-scr.bb | |||
| @@ -47,14 +47,8 @@ SRC_URI = " \ | |||
| 47 | file://pxeboot.pxe \ | 47 | file://pxeboot.pxe \ |
| 48 | " | 48 | " |
| 49 | 49 | ||
| 50 | # Specify a default in case boardvariant isn't available | 50 | # Even thought we don't create a package, make sure this is unique to the machine |
| 51 | BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}" | 51 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 52 | PACKAGE_ARCH = "${BOARDVARIANT_ARCH}" | ||
| 53 | |||
| 54 | # On zynqmp-dr, we know we're different so if BOARD is not defined, fall back | ||
| 55 | # to the SOC_VARIANT_ARCH instead | ||
| 56 | SOC_VARIANT_ARCH ??= "${MACHINE_ARCH}" | ||
| 57 | PACKAGE_ARCH:zynqmp-dr = "${@['${BOARDVARIANT_ARCH}', '${SOC_VARIANT_ARCH}'][d.getVar('BOARDVARIANT_ARCH')==d.getVar('MACHINE_ARCH')]}" | ||
| 58 | 52 | ||
| 59 | inherit image-artifact-names | 53 | inherit image-artifact-names |
| 60 | UENV_TEXTFILE ?= "uEnv.txt" | 54 | UENV_TEXTFILE ?= "uEnv.txt" |
diff --git a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-zynq-uenv.bb b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-zynq-uenv.bb index 52ae09f0..e35c0e30 100644 --- a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-zynq-uenv.bb +++ b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-zynq-uenv.bb | |||
| @@ -4,9 +4,6 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda | |||
| 4 | 4 | ||
| 5 | INHIBIT_DEFAULT_DEPS = "1" | 5 | INHIBIT_DEFAULT_DEPS = "1" |
| 6 | 6 | ||
| 7 | BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}" | ||
| 8 | PACKAGE_ARCH = "${BOARDVARIANT_ARCH}" | ||
| 9 | |||
| 10 | python () { | 7 | python () { |
| 11 | # The device trees must be populated in the deploy directory to correctly | 8 | # The device trees must be populated in the deploy directory to correctly |
| 12 | # detect them and their names. This means that this recipe needs to depend | 9 | # detect them and their names. This means that this recipe needs to depend |
| @@ -25,6 +22,8 @@ COMPATIBLE_MACHINE = "^$" | |||
| 25 | COMPATIBLE_MACHINE:zynq = ".*" | 22 | COMPATIBLE_MACHINE:zynq = ".*" |
| 26 | COMPATIBLE_MACHINE:zynqmp = ".*" | 23 | COMPATIBLE_MACHINE:zynqmp = ".*" |
| 27 | 24 | ||
| 25 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 26 | |||
| 28 | inherit deploy image-wic-utils | 27 | inherit deploy image-wic-utils |
| 29 | 28 | ||
| 30 | def uboot_boot_cmd(d): | 29 | def uboot_boot_cmd(d): |
