From c0e25710a7c4e7cbcb0dba2f0b01b1b977d02030 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Thu, 19 Sep 2024 17:16:12 -0600 Subject: meta-xilinx-core: Add common/superset machines Add various "superset" machines. These machines can be used to generated a binary distribution for a collection of machines. These differ from the generic machines, as they have full CPU optimization (DEFAULTTUNE) for the SoC, as well as the common MACHINE_FEATURES for a collection of chips. The MACHINE_FEATURES specified may not work on all chips, but will not cause an incompatibility. The common machines are: Machine | SoC | DEFAULTTUNE | MACHINE_FEATURES -------------------+------------+------------------+----------------- zynq-common | Zynq7 | cortexa9thf-neon | (none) zynqmp-common | ZynqMP | cortexa53 | vcu rfsoc zynqmp-mali-common | ZynqMP | cortexa53 | mali400 vcu versal-common | Versal | cortexa72 | aie vdu versal-net-common | Versal-Net | cortexa78 | (none) The mali400 option itself is not mutually exclusive from non, however the default configuration of many systems also enabled libmali. libmali inclusion WILL create a system that is incompatible with mesa. Signed-off-by: Mark Hatle --- meta-xilinx-core/conf/machine/versal-common.conf | 17 +++++++++++++++++ meta-xilinx-core/conf/machine/versal-net-common.conf | 15 +++++++++++++++ meta-xilinx-core/conf/machine/zynq-common.conf | 15 +++++++++++++++ meta-xilinx-core/conf/machine/zynqmp-common.conf | 17 +++++++++++++++++ meta-xilinx-core/conf/machine/zynqmp-mali-common.conf | 17 +++++++++++++++++ 5 files changed, 81 insertions(+) create mode 100644 meta-xilinx-core/conf/machine/versal-common.conf create mode 100644 meta-xilinx-core/conf/machine/versal-net-common.conf create mode 100644 meta-xilinx-core/conf/machine/zynq-common.conf create mode 100644 meta-xilinx-core/conf/machine/zynqmp-common.conf create mode 100644 meta-xilinx-core/conf/machine/zynqmp-mali-common.conf (limited to 'meta-xilinx-core/conf') diff --git a/meta-xilinx-core/conf/machine/versal-common.conf b/meta-xilinx-core/conf/machine/versal-common.conf new file mode 100644 index 00000000..bc530d63 --- /dev/null +++ b/meta-xilinx-core/conf/machine/versal-common.conf @@ -0,0 +1,17 @@ +#@TYPE: Machine +#@NAME: versal-common +#@DESCRIPTION: Machine configuration for a common Versal filesystem devices + +#### Preamble +MACHINEOVERRIDES =. "${@['', 'versal-common:']['versal-common' != '${MACHINE}']}" +#### Regular settings follow + +DEFAULTTUNE = "cortexa72" + +require conf/machine/versal-generic.conf + +MACHINE_FEATURES += "aie vdu" + +#### No additional settings should be after the Postamble +#### Postamble +PACKAGE_EXTRA_ARCHS:append = "${@['', ' versal_common']['versal-common' != "${MACHINE}"]}" diff --git a/meta-xilinx-core/conf/machine/versal-net-common.conf b/meta-xilinx-core/conf/machine/versal-net-common.conf new file mode 100644 index 00000000..efde0bbb --- /dev/null +++ b/meta-xilinx-core/conf/machine/versal-net-common.conf @@ -0,0 +1,15 @@ +#@TYPE: Machine +#@NAME: versal-net-common +#@DESCRIPTION: Machine configuration for a common versal-net filesystem devices + +#### Preamble +MACHINEOVERRIDES =. "${@['', 'versal-net-common:']['versal-net-common' != '${MACHINE}']}" +#### Regular settings follow + +DEFAULTTUNE = "cortexa78" + +require conf/machine/versal-net-generic.conf + +#### No additional settings should be after the Postamble +#### Postamble +PACKAGE_EXTRA_ARCHS:append = "${@['', ' versal_net_common']['versal-net-common' != "${MACHINE}"]}" diff --git a/meta-xilinx-core/conf/machine/zynq-common.conf b/meta-xilinx-core/conf/machine/zynq-common.conf new file mode 100644 index 00000000..f54b6e5b --- /dev/null +++ b/meta-xilinx-core/conf/machine/zynq-common.conf @@ -0,0 +1,15 @@ +#@TYPE: Machine +#@NAME: zynq-common +#@DESCRIPTION: Machine configuration for a common Zynq7 filesystem devices + +#### Preamble +MACHINEOVERRIDES =. "${@['', 'zynq-common:']['zynq-common' != '${MACHINE}']}" +#### Regular settings follow + +DEFAULTTUNE = "cortexa9thf-neon" + +require conf/machine/zynq-generic.conf + +#### No additional settings should be after the Postamble +#### Postamble +PACKAGE_EXTRA_ARCHS:append = "${@['', ' zynq_common']['zynq-common' != "${MACHINE}"]}" diff --git a/meta-xilinx-core/conf/machine/zynqmp-common.conf b/meta-xilinx-core/conf/machine/zynqmp-common.conf new file mode 100644 index 00000000..e2e112f9 --- /dev/null +++ b/meta-xilinx-core/conf/machine/zynqmp-common.conf @@ -0,0 +1,17 @@ +#@TYPE: Machine +#@NAME: zynqmp-common +#@DESCRIPTION: Machine configuration for a common ZynqMP (MPSOC) filesystem devices w/o mali400 + +#### Preamble +MACHINEOVERRIDES =. "${@['', 'zynqmp-common:']['zynqmp-common' != '${MACHINE}']}" +#### Regular settings follow + +DEFAULTTUNE = "cortexa53" + +require conf/machine/zynqmp-generic.conf + +MACHINE_FEATURES += "vcu rfsoc" + +#### No additional settings should be after the Postamble +#### Postamble +PACKAGE_EXTRA_ARCHS:append = "${@['', ' zynqmp_common']['zynqmp-common' != "${MACHINE}"]}" diff --git a/meta-xilinx-core/conf/machine/zynqmp-mali-common.conf b/meta-xilinx-core/conf/machine/zynqmp-mali-common.conf new file mode 100644 index 00000000..7b5dc68c --- /dev/null +++ b/meta-xilinx-core/conf/machine/zynqmp-mali-common.conf @@ -0,0 +1,17 @@ +#@TYPE: Machine +#@NAME: zynqmp-mali-common +#@DESCRIPTION: Machine configuration for a common ZynqMP (MPSOC) filesystem devices w/ mali400 + +#### Preamble +MACHINEOVERRIDES =. "${@['', 'zynqmp-mali-common:']['zynqmp-mali-common' != '${MACHINE}']}" +#### Regular settings follow + +DEFAULTTUNE = "cortexa53" + +require conf/machine/zynqmp-generic.conf + +MACHINE_FEATURES += "mali400 vcu" + +#### No additional settings should be after the Postamble +#### Postamble +PACKAGE_EXTRA_ARCHS:append = "${@['', ' zynqmp_mali_common']['zynqmp-mali-common' != "${MACHINE}"]}" -- cgit v1.2.3-54-g00ecf