diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2024-06-04 16:51:04 -0600 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2024-06-04 17:00:14 -0600 |
| commit | 195e1fa9fb13b21bc41af4e0747d4646caeb65e5 (patch) | |
| tree | 27e92386d23080a44149b7ef0678e1bbddff2a2e /meta-xilinx-core/dynamic-layers | |
| parent | 3ea2f6cddd54881585084e7cb6f948c398ed980a (diff) | |
| download | meta-xilinx-195e1fa9fb13b21bc41af4e0747d4646caeb65e5.tar.gz | |
various: Remove SOC_VARIANT, split versal and versal-net, add machine_features
SOC_VARIANT has been remove, we are now only using the YP standard SOC_FAMILY
configuration. The defined families are: zynq, zynqmp, versal and versal-net.
Our decision of breaking up versal-net from versal, is based on the SoC CPU
changes from cortexa72/r5 to cortexa78/r52, thus we're treating it as a
different SoC family.
In order to capture the individual capabilities that we used to handle via
SOC_VARIANT, we have defined the following features (some may have been
previously defined):
- mali400 (zynqmp eg and ev)
- vcu (zynqmp ev)
- rfsoc (zynqmp dr RF capabiltiies)
- aie - (versal ai & premium)
- vdu - (versal ai)
SOC_VARIANT_ARCH and SOC_FAMILY_ARCH are now obsolete and replaced by
MACHINE_ARCH. This is based on the guideline that any recipes that use
MACHINE_FEATURES should be MACHINE_ARCH specific.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/dynamic-layers')
4 files changed, 12 insertions, 17 deletions
diff --git a/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-openamp/open-amp/open-amp-xlnx_%.bbappend b/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-openamp/open-amp/open-amp-xlnx_%.bbappend new file mode 100644 index 00000000..33cd55c1 --- /dev/null +++ b/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-openamp/open-amp/open-amp-xlnx_%.bbappend | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # Prevents parse failrues on zynq | ||
| 2 | |||
| 3 | COMPATIBLE_MACHINE:zynq = "^$" | ||
diff --git a/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-xrt/xrt/xrt_%.bbappend b/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-xrt/xrt/xrt_%.bbappend index 4d21c98b..0e7f3693 100644 --- a/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-xrt/xrt/xrt_%.bbappend +++ b/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-xrt/xrt/xrt_%.bbappend | |||
| @@ -1,14 +1,8 @@ | |||
| 1 | # Use libmetal for systems with AIE | 1 | # Use libmetal for systems with AIE |
| 2 | # For vck190 kind of devices | 2 | # For versal devices with the ai-engine |
| 3 | PACKAGE_ARCH:versal-ai-core = "${SOC_VARIANT_ARCH}" | 3 | PACKAGE_ARCH_orig := "${PACKAGE_ARCH}" |
| 4 | EXTRA_OECMAKE:append:versal-ai-core = " -DXRT_AIE_BUILD=true" | 4 | PACKAGE_ARCH = "${@bb.utils.contains('MACHINE_FEATURES', 'aie', '${MACHINE_ARCH}', '${PACKAGE_ARCH_orig}', d)}" |
| 5 | TARGET_CXXFLAGS:append:versal-ai-core = " -DXRT_ENABLE_AIE -DFAL_LINUX=on" | 5 | EXTRA_OECMAKE .= "${@bb.utils.contains('MACHINE_FEATURES', 'aie', ' -DXRT_AIE_BUILD=true', '', d)}" |
| 6 | DEPENDS:append:versal-ai-core = " libxaiengine aiefal" | 6 | TARGET_CXXFLAGS .= "${@bb.utils.contains('MACHINE_FEATURES', 'aie', ' -DXRT_ENABLE_AIE -DFAL_LINUX=on', '', d)}" |
| 7 | RDEPENDS:${PN}:append:versal-ai-core = " libxaiengine aiefal" | 7 | DEPENDS .= "${@bb.utils.contains('MACHINE_FEATURES', 'aie', ' libxaiengine aiefal', '', d)}" |
| 8 | 8 | RDEPENDS:${PN} += "${@bb.utils.contains('MACHINE_FEATURES', 'aie', ' libxaiengine aiefal', '', d)}" | |
| 9 | # For vek280 kind of devices | ||
| 10 | PACKAGE_ARCH:versal-ai-edge = "${SOC_VARIANT_ARCH}" | ||
| 11 | EXTRA_OECMAKE:append:versal-ai-edge = " -DXRT_AIE_BUILD=true" | ||
| 12 | TARGET_CXXFLAGS:append:versal-ai-edge = " -DXRT_ENABLE_AIE -DFAL_LINUX=on" | ||
| 13 | DEPENDS:append:versal-ai-edge = " libxaiengine aiefal" | ||
| 14 | RDEPENDS:${PN}:append:versal-ai-edge = " libxaiengine aiefal" | ||
diff --git a/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-xrt/xrt/xrt_202310.2.15.0.bbappend b/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-xrt/xrt/xrt_202310.2.15.0.bbappend index 89f1b4ad..362dc45a 100644 --- a/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-xrt/xrt/xrt_202310.2.15.0.bbappend +++ b/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-xrt/xrt/xrt_202310.2.15.0.bbappend | |||
| @@ -1,3 +1,2 @@ | |||
| 1 | # Older xrt requires a manual dependency on libmetal | 1 | # Older xrt requires a manual dependency on libmetal |
| 2 | DEPENDS:append:versal-ai-core = " libmetal" | 2 | DEPENDS .= "${@bb.utils.contains('MACHINE_FEATURES', 'aie', ' libmetal', '', d)}" |
| 3 | DEPENDS:append:versal-ai-edge = " libmetal" | ||
diff --git a/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-xrt/xrt/xrt_202320.2.16.0.bbappend b/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-xrt/xrt/xrt_202320.2.16.0.bbappend index 89f1b4ad..362dc45a 100644 --- a/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-xrt/xrt/xrt_202320.2.16.0.bbappend +++ b/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-xrt/xrt/xrt_202320.2.16.0.bbappend | |||
| @@ -1,3 +1,2 @@ | |||
| 1 | # Older xrt requires a manual dependency on libmetal | 1 | # Older xrt requires a manual dependency on libmetal |
| 2 | DEPENDS:append:versal-ai-core = " libmetal" | 2 | DEPENDS .= "${@bb.utils.contains('MACHINE_FEATURES', 'aie', ' libmetal', '', d)}" |
| 3 | DEPENDS:append:versal-ai-edge = " libmetal" | ||
