summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@xilinx.com>2021-12-18 20:26:09 -0800
committerMark Hatle <mark.hatle@xilinx.com>2022-01-14 15:37:05 -0800
commitf9cec6e733c53eac14ad2f9d6c10c8fad9862a8c (patch)
tree4aef0a1d06966fd26b4f8c746bf80942381cac3b /meta-xilinx-core
parent81a6bfd7943bafb4b26db650ad2af453868d60f0 (diff)
downloadmeta-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')
-rw-r--r--meta-xilinx-core/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware.inc6
-rw-r--r--meta-xilinx-core/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb4
-rw-r--r--meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb4
-rw-r--r--meta-xilinx-core/recipes-bsp/embeddedsw/fsbl.bb4
-rw-r--r--meta-xilinx-core/recipes-bsp/embeddedsw/plmfw.bb4
-rw-r--r--meta-xilinx-core/recipes-bsp/embeddedsw/pmufw.bb4
-rw-r--r--meta-xilinx-core/recipes-bsp/embeddedsw/psmfw.bb4
-rw-r--r--meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc4
-rw-r--r--meta-xilinx-core/recipes-bsp/u-boot/u-boot-zynq-scr.bb10
-rw-r--r--meta-xilinx-core/recipes-bsp/u-boot/u-boot-zynq-uenv.bb5
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
29ATF_BASE_NAME ?= "${PN}-${PKGE}-${PKGV}-${PKGR}${IMAGE_VERSION_SUFFIX}" 29ATF_BASE_NAME ?= "${PN}-${PKGE}-${PKGV}-${PKGR}${IMAGE_VERSION_SUFFIX}"
30 30
31# Specify a default in case boardvariant isn't available
32BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}"
33PACKAGE_ARCH = "${BOARDVARIANT_ARCH}"
34
35COMPATIBLE_MACHINE ?= "^$" 31COMPATIBLE_MACHINE ?= "^$"
36COMPATIBLE_MACHINE:zynqmp = ".*" 32COMPATIBLE_MACHINE:zynqmp = ".*"
37COMPATIBLE_MACHINE:versal = ".*" 33COMPATIBLE_MACHINE:versal = ".*"
38 34
35PACKAGE_ARCH = "${MACHINE_ARCH}"
36
39PLATFORM:zynqmp = "zynqmp" 37PLATFORM:zynqmp = "zynqmp"
40PLATFORM:versal = "versal" 38PLATFORM: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
17DEPENDS += "${@(d.getVar('BIF_PARTITION_ATTR') or "").replace('bitstream', 'virtual/bitstream')}" 17DEPENDS += "${@(d.getVar('BIF_PARTITION_ATTR') or "").replace('bitstream', 'virtual/bitstream')}"
18 18
19# Specify a default in case boardvariant isn't available 19PACKAGE_ARCH = "${MACHINE_ARCH}"
20BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}"
21PACKAGE_ARCH = "${BOARDVARIANT_ARCH}"
22 20
23BIF_FILE_PATH ?= "${B}/bootgen.bif" 21BIF_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
20COMPATIBLE_MACHINE:zynqmp = ".*" 20COMPATIBLE_MACHINE:zynqmp = ".*"
21COMPATIBLE_MACHINE:versal = ".*" 21COMPATIBLE_MACHINE:versal = ".*"
22 22
23# Device-trees are inherently board specific
24BOARD_ARCH ??= "${MACHINE_ARCH}"
25PACKAGE_ARCH = "${BOARD_ARCH}"
26
27DEPENDS += "python3-dtc-native" 23DEPENDS += "python3-dtc-native"
28 24
29PROVIDES = "virtual/dtb" 25PROVIDES = "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 = "^$"
10COMPATIBLE_MACHINE:zynq = "zynq" 10COMPATIBLE_MACHINE:zynq = "zynq"
11COMPATIBLE_MACHINE:zynqmp = "zynqmp" 11COMPATIBLE_MACHINE:zynqmp = "zynqmp"
12 12
13# Specify a default in case boardvariant isn't available 13PACKAGE_ARCH = "${MACHINE_ARCH}"
14BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}"
15PACKAGE_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"
10COMPATIBLE_MACHINE = "^$" 10COMPATIBLE_MACHINE = "^$"
11COMPATIBLE_MACHINE:versal = "versal" 11COMPATIBLE_MACHINE:versal = "versal"
12 12
13# Specify a default in case boardvariant isn't available 13PACKAGE_ARCH = "${MACHINE_ARCH}"
14BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}"
15PACKAGE_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"
9COMPATIBLE_MACHINE = "^$" 9COMPATIBLE_MACHINE = "^$"
10COMPATIBLE_MACHINE:zynqmp = "zynqmp" 10COMPATIBLE_MACHINE:zynqmp = "zynqmp"
11 11
12# Specify a default in case boardvariant isn't available 12PACKAGE_ARCH = "${MACHINE_ARCH}"
13BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}"
14PACKAGE_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"
10COMPATIBLE_MACHINE = "^$" 10COMPATIBLE_MACHINE = "^$"
11COMPATIBLE_MACHINE:versal = "versal" 11COMPATIBLE_MACHINE:versal = "versal"
12 12
13# Specify a default in case boardvariant isn't available 13PACKAGE_ARCH = "${MACHINE_ARCH}"
14BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}"
15PACKAGE_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"
18FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot:" 18FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot:"
19 19
20SYSROOT_DIRS += "/boot" 20SYSROOT_DIRS += "/boot"
21
22# Specify a default in case boardvariant isn't available
23BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}"
24PACKAGE_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
51BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}" 51PACKAGE_ARCH = "${MACHINE_ARCH}"
52PACKAGE_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
56SOC_VARIANT_ARCH ??= "${MACHINE_ARCH}"
57PACKAGE_ARCH:zynqmp-dr = "${@['${BOARDVARIANT_ARCH}', '${SOC_VARIANT_ARCH}'][d.getVar('BOARDVARIANT_ARCH')==d.getVar('MACHINE_ARCH')]}"
58 52
59inherit image-artifact-names 53inherit image-artifact-names
60UENV_TEXTFILE ?= "uEnv.txt" 54UENV_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
5INHIBIT_DEFAULT_DEPS = "1" 5INHIBIT_DEFAULT_DEPS = "1"
6 6
7BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}"
8PACKAGE_ARCH = "${BOARDVARIANT_ARCH}"
9
10python () { 7python () {
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 = "^$"
25COMPATIBLE_MACHINE:zynq = ".*" 22COMPATIBLE_MACHINE:zynq = ".*"
26COMPATIBLE_MACHINE:zynqmp = ".*" 23COMPATIBLE_MACHINE:zynqmp = ".*"
27 24
25PACKAGE_ARCH = "${MACHINE_ARCH}"
26
28inherit deploy image-wic-utils 27inherit deploy image-wic-utils
29 28
30def uboot_boot_cmd(d): 29def uboot_boot_cmd(d):