summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/conf/machine
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2023-01-05 14:38:13 -0800
committerMark Hatle <mark.hatle@amd.com>2023-01-06 10:58:21 -0800
commit4ea0452525a0cd20fadece3b0c7e861543579e4c (patch)
tree7880b9bd3228cb0b6f95e4e0e51c1f39d918525f /meta-xilinx-core/conf/machine
parentd659f41171e3058873dd525b99c3168da0c82349 (diff)
downloadmeta-xilinx-4ea0452525a0cd20fadece3b0c7e861543579e4c.tar.gz
xilinx-deprecated: Remove support for BOARD and BOARD VARIANT
We still warn the user. This will likely be moved to fatal in the near future, but this would impact some automated test cases so preserve it as a warning for now. Also remove all of the support infrastructure for the BOARD/BOARD_VARIANT values. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/conf/machine')
-rw-r--r--meta-xilinx-core/conf/machine/include/xilinx-board-post.inc6
-rw-r--r--meta-xilinx-core/conf/machine/include/xilinx-board-pre.inc14
-rw-r--r--meta-xilinx-core/conf/machine/versal-generic.conf10
-rw-r--r--meta-xilinx-core/conf/machine/zynq-generic.conf10
-rw-r--r--meta-xilinx-core/conf/machine/zynqmp-generic.conf10
5 files changed, 0 insertions, 50 deletions
diff --git a/meta-xilinx-core/conf/machine/include/xilinx-board-post.inc b/meta-xilinx-core/conf/machine/include/xilinx-board-post.inc
deleted file mode 100644
index 6f05eddd..00000000
--- a/meta-xilinx-core/conf/machine/include/xilinx-board-post.inc
+++ /dev/null
@@ -1,6 +0,0 @@
1BOARD_ARCH ?= "${@['${BOARD}', '${MACHINE_ARCH}'][d.getVar('BOARD')=='']}"
2BOARDVARIANT_ARCH ?= "${@['${BOARD}_${BOARD_VARIANT}','${BOARD_ARCH}'][d.getVar('BOARD_VARIANT')=='']}"
3
4PACKAGE_EXTRA_ARCHS:append = "${@['', ' ${BOARD_ARCH}']['${BOARD}' != '' and '${BOARD_ARCH}' != '${MACHINE_ARCH}']}"
5# We don't add BOARDVARIANT_ARCH as that will be automatic via MACHINE
6#PACKAGE_EXTRA_ARCHS:append = "${@['', ' ${BOARDVARIANT_ARCH}']['${BOARD_VARIANT}' != '' and '${BOARDVARIANT_ARCH}' != '${MACHINE_ARCH}']}"
diff --git a/meta-xilinx-core/conf/machine/include/xilinx-board-pre.inc b/meta-xilinx-core/conf/machine/include/xilinx-board-pre.inc
deleted file mode 100644
index 8fea5ce2..00000000
--- a/meta-xilinx-core/conf/machine/include/xilinx-board-pre.inc
+++ /dev/null
@@ -1,14 +0,0 @@
1BOARD ??= ""
2BOARD_VARIANT ??= ""
3
4# Change the MACHINE to the BOARD-VARIANT (or BOARD)
5ORIG_MACHINE := "${MACHINE}"
6MACHINE := "${@['${BOARD}-${BOARD_VARIANT}', '${BOARD}' or '${ORIG_MACHINE}']['${BOARD_VARIANT}' == '']}"
7
8# Add the BOARD and BOARD_VARIANT to the overrides
9MACHINEOVERRIDES =. "${@['', '${BOARD}:']['${BOARD}' != '' and '${MACHINE}' != '${BOARD}']}"
10# We don't add BOARD-BOARD_VARIANT as that will be automatic via MACHINE
11#MACHINEOVERRIDES =. "${@['', '${BOARD}-${BOARD_VARIANT}:']['${BOARD_VARIANT}' != '' and '${MACHINE}' != '${BOARD_VARIANT}']}"
12
13include conf/machine/include/${BOARD}.inc
14include conf/machine/include/${BOARD}-${BOARD_VARIANT}.inc
diff --git a/meta-xilinx-core/conf/machine/versal-generic.conf b/meta-xilinx-core/conf/machine/versal-generic.conf
index 7811073b..eb06426f 100644
--- a/meta-xilinx-core/conf/machine/versal-generic.conf
+++ b/meta-xilinx-core/conf/machine/versal-generic.conf
@@ -2,11 +2,6 @@
2#@NAME: versal-generic 2#@NAME: versal-generic
3#@DESCRIPTION: Machine configuration for the versal-generic devices 3#@DESCRIPTION: Machine configuration for the versal-generic devices
4 4
5# Deprecated board config
6USE_BOARD = "${@"conf/machine/include/xilinx-board-pre.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}"
7require ${USE_BOARD}
8unset USE_BOARD
9
10#### Preamble 5#### Preamble
11MACHINEOVERRIDES =. "${@['', 'versal-generic:']['versal-generic' != '${MACHINE}']}" 6MACHINEOVERRIDES =. "${@['', 'versal-generic:']['versal-generic' != '${MACHINE}']}"
12#### Regular settings follow 7#### Regular settings follow
@@ -120,8 +115,3 @@ QB_OPT_APPEND += " -plm-args '${QB_PLM_OPT}'"
120#### No additional settings should be after the Postamble 115#### No additional settings should be after the Postamble
121#### Postamble 116#### Postamble
122PACKAGE_EXTRA_ARCHS:append = "${@['', ' versal_generic']['versal-generic' != "${MACHINE}"]}" 117PACKAGE_EXTRA_ARCHS:append = "${@['', ' versal_generic']['versal-generic' != "${MACHINE}"]}"
123
124# Deprecated board config
125USE_BOARD = "${@"conf/machine/include/xilinx-board-post.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}"
126require ${USE_BOARD}
127unset USE_BOARD
diff --git a/meta-xilinx-core/conf/machine/zynq-generic.conf b/meta-xilinx-core/conf/machine/zynq-generic.conf
index a4e6e725..df82a683 100644
--- a/meta-xilinx-core/conf/machine/zynq-generic.conf
+++ b/meta-xilinx-core/conf/machine/zynq-generic.conf
@@ -2,11 +2,6 @@
2#@NAME: zynq-generic 2#@NAME: zynq-generic
3#@DESCRIPTION: Machine configuration for the zynq-generic devices 3#@DESCRIPTION: Machine configuration for the zynq-generic devices
4 4
5# Deprecated board config
6USE_BOARD = "${@"conf/machine/include/xilinx-board-pre.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}"
7require ${USE_BOARD}
8unset USE_BOARD
9
10#### Preamble 5#### Preamble
11MACHINEOVERRIDES =. "${@['', 'zynq-generic:']['zynq-generic' != '${MACHINE}']}" 6MACHINEOVERRIDES =. "${@['', 'zynq-generic:']['zynq-generic' != '${MACHINE}']}"
12#### Regular settings follow 7#### Regular settings follow
@@ -96,8 +91,3 @@ QB_OPT_APPEND = " \
96#### No additional settings should be after the Postamble 91#### No additional settings should be after the Postamble
97#### Postamble 92#### Postamble
98PACKAGE_EXTRA_ARCHS:append = "${@['', ' zynq_generic']['zynq-generic' != "${MACHINE}"]}" 93PACKAGE_EXTRA_ARCHS:append = "${@['', ' zynq_generic']['zynq-generic' != "${MACHINE}"]}"
99
100# Deprecated board config
101USE_BOARD = "${@"conf/machine/include/xilinx-board-post.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}"
102require ${USE_BOARD}
103unset USE_BOARD
diff --git a/meta-xilinx-core/conf/machine/zynqmp-generic.conf b/meta-xilinx-core/conf/machine/zynqmp-generic.conf
index bf95c117..e7b47003 100644
--- a/meta-xilinx-core/conf/machine/zynqmp-generic.conf
+++ b/meta-xilinx-core/conf/machine/zynqmp-generic.conf
@@ -2,11 +2,6 @@
2#@NAME: zynqmp-generic 2#@NAME: zynqmp-generic
3#@DESCRIPTION: Machine configuration for the zynqmp-generic devices 3#@DESCRIPTION: Machine configuration for the zynqmp-generic devices
4 4
5# Deprecated board config
6USE_BOARD = "${@"conf/machine/include/xilinx-board-pre.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}"
7require ${USE_BOARD}
8unset USE_BOARD
9
10#### Preamble 5#### Preamble
11MACHINEOVERRIDES =. "${@['', 'zynqmp-generic:']['zynqmp-generic' != '${MACHINE}']}" 6MACHINEOVERRIDES =. "${@['', 'zynqmp-generic:']['zynqmp-generic' != '${MACHINE}']}"
12#### Regular settings follow 7#### Regular settings follow
@@ -129,8 +124,3 @@ do_write_qemuboot_conf[depends] += "u-boot-xlnx-uenv:do_deploy"
129#### No additional settings should be after the Postamble 124#### No additional settings should be after the Postamble
130#### Postamble 125#### Postamble
131PACKAGE_EXTRA_ARCHS:append = "${@['', ' zynqmp_generic']['zynqmp-generic' != "${MACHINE}"]}" 126PACKAGE_EXTRA_ARCHS:append = "${@['', ' zynqmp_generic']['zynqmp-generic' != "${MACHINE}"]}"
132
133# Deprecated board config
134USE_BOARD = "${@"conf/machine/include/xilinx-board-post.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}"
135require ${USE_BOARD}
136unset USE_BOARD