summaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--meta-xilinx-bsp/conf/machine/include/board/ultra96.inc1
-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
-rw-r--r--meta-xilinx-pynq/recipes-support/pynq-ultra96-bnn/pynq-ultra96-bnn_1.0.bb2
-rw-r--r--meta-xilinx-pynq/recipes-support/pynq-ultra96-helloworld/pynq-ultra96-helloworld_1.0.bb2
-rw-r--r--meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware.inc4
-rw-r--r--meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware.inc4
-rw-r--r--meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware.inc4
-rw-r--r--meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware.inc4
17 files changed, 17 insertions, 53 deletions
diff --git a/meta-xilinx-bsp/conf/machine/include/board/ultra96.inc b/meta-xilinx-bsp/conf/machine/include/board/ultra96.inc
index 98f04158..7cbc5f54 100644
--- a/meta-xilinx-bsp/conf/machine/include/board/ultra96.inc
+++ b/meta-xilinx-bsp/conf/machine/include/board/ultra96.inc
@@ -1,5 +1,4 @@
1# Ultra96 items that need to be configured from zynqmp-generic 1# Ultra96 items that need to be configured from zynqmp-generic
2PACKAGE_ARCH:pn-linux-xlnx:ultra96 = "${BOARDVARIANT_ARCH}"
3KERNEL_DEVICETREE:ultra96 = "xilinx/zynqmp-zcu100-revC.dtb" 2KERNEL_DEVICETREE:ultra96 = "xilinx/zynqmp-zcu100-revC.dtb"
4 3
5# Affects meta-xilinx-tools xsctyaml.bbclass related items 4# Affects meta-xilinx-tools xsctyaml.bbclass related items
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):
diff --git a/meta-xilinx-pynq/recipes-support/pynq-ultra96-bnn/pynq-ultra96-bnn_1.0.bb b/meta-xilinx-pynq/recipes-support/pynq-ultra96-bnn/pynq-ultra96-bnn_1.0.bb
index 3fed5261..b415f4af 100644
--- a/meta-xilinx-pynq/recipes-support/pynq-ultra96-bnn/pynq-ultra96-bnn_1.0.bb
+++ b/meta-xilinx-pynq/recipes-support/pynq-ultra96-bnn/pynq-ultra96-bnn_1.0.bb
@@ -55,4 +55,4 @@ do_install () {
55 cp -r ${S}/notebooks/* ${JUPYTER_NOTEBOOKS}/bnn_examples/ 55 cp -r ${S}/notebooks/* ${JUPYTER_NOTEBOOKS}/bnn_examples/
56} 56}
57 57
58PACKAGE_ARCH:ultra96 = "${BOARD_ARCH}" 58PACKAGE_ARCH:ultra96 = "${MACHINE_ARCH}"
diff --git a/meta-xilinx-pynq/recipes-support/pynq-ultra96-helloworld/pynq-ultra96-helloworld_1.0.bb b/meta-xilinx-pynq/recipes-support/pynq-ultra96-helloworld/pynq-ultra96-helloworld_1.0.bb
index f6febcc8..0110454c 100644
--- a/meta-xilinx-pynq/recipes-support/pynq-ultra96-helloworld/pynq-ultra96-helloworld_1.0.bb
+++ b/meta-xilinx-pynq/recipes-support/pynq-ultra96-helloworld/pynq-ultra96-helloworld_1.0.bb
@@ -37,4 +37,4 @@ do_install() {
37 37
38} 38}
39 39
40PACKAGE_ARCH:ultra96 = "${BOARD_ARCH}" 40PACKAGE_ARCH:ultra96 = "${MACHINE_ARCH}"
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware.inc
index 03292633..99101d09 100644
--- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware.inc
+++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware.inc
@@ -7,9 +7,7 @@ COMPATIBLE_MACHINE = "none"
7COMPATIBLE_MACHINE:zynq = ".*" 7COMPATIBLE_MACHINE:zynq = ".*"
8COMPATIBLE_MACHINE:zynqmp = ".*" 8COMPATIBLE_MACHINE:zynqmp = ".*"
9 9
10# Specify a default in case boardvariant isn't available 10PACKAGE_ARCH = "${MACHINE_ARCH}"
11BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}"
12PACKAGE_ARCH = "${BOARDVARIANT_ARCH}"
13 11
14S = "${WORKDIR}/git" 12S = "${WORKDIR}/git"
15 13
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware.inc
index 08f4b4e1..355a55ed 100644
--- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware.inc
+++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/plm-firmware.inc
@@ -7,9 +7,7 @@ COMPATIBLE_HOST = "microblaze.*-elf"
7COMPATIBLE_MACHINE = "none" 7COMPATIBLE_MACHINE = "none"
8COMPATIBLE_MACHINE:versal = ".*" 8COMPATIBLE_MACHINE:versal = ".*"
9 9
10# Specify a default in case boardvariant isn't available 10PACKAGE_ARCH = "${MACHINE_ARCH}"
11BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}"
12PACKAGE_ARCH = "${BOARDVARIANT_ARCH}"
13 11
14S = "${WORKDIR}/git" 12S = "${WORKDIR}/git"
15B = "${S}/lib/sw_apps/versal_plm/src" 13B = "${S}/lib/sw_apps/versal_plm/src"
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware.inc
index 9912fa0b..22352fab 100644
--- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware.inc
+++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware.inc
@@ -6,9 +6,7 @@ COMPATIBLE_HOST = "microblaze.*-elf"
6COMPATIBLE_MACHINE = "none" 6COMPATIBLE_MACHINE = "none"
7COMPATIBLE_MACHINE:zynqmp = ".*" 7COMPATIBLE_MACHINE:zynqmp = ".*"
8 8
9# Specify a default in case boardvariant isn't available 9PACKAGE_ARCH = "${MACHINE_ARCH}"
10BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}"
11PACKAGE_ARCH = "${BOARDVARIANT_ARCH}"
12 10
13S = "${WORKDIR}/git" 11S = "${WORKDIR}/git"
14B = "${S}/lib/sw_apps/zynqmp_pmufw/src" 12B = "${S}/lib/sw_apps/zynqmp_pmufw/src"
diff --git a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware.inc b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware.inc
index 806592c2..2bdae284 100644
--- a/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware.inc
+++ b/meta-xilinx-standalone/recipes-bsp/embeddedsw/psm-firmware.inc
@@ -7,9 +7,7 @@ COMPATIBLE_HOST = "microblaze.*-elf"
7COMPATIBLE_MACHINE = "none" 7COMPATIBLE_MACHINE = "none"
8COMPATIBLE_MACHINE:versal = ".*" 8COMPATIBLE_MACHINE:versal = ".*"
9 9
10# Specify a default in case boardvariant isn't available 10PACKAGE_ARCH = "${MACHINE_ARCH}"
11BOARDVARIANT_ARCH ??= "${MACHINE_ARCH}"
12PACKAGE_ARCH = "${BOARDVARIANT_ARCH}"
13 11
14S = "${WORKDIR}/git" 12S = "${WORKDIR}/git"
15B = "${S}/lib/sw_apps/versal_psmfw/src" 13B = "${S}/lib/sw_apps/versal_psmfw/src"