diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-12-09 11:33:29 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2025-03-30 14:16:06 -0600 |
commit | 9f7d59306d07d9a17edd5fa75987cb6bda9ac831 (patch) | |
tree | ef96533be09abe4ba0758eea87c5efbd3a4105e7 | |
parent | b76cccf213a9a676ba00b24b42a0f4c40effcdd7 (diff) | |
download | meta-xilinx-9f7d59306d07d9a17edd5fa75987cb6bda9ac831.tar.gz |
device-tree: ENABLE_OPENAMP_DTSI add a third state '2' for pre-integrated
The tri-state is now defined as:
ENABLE_OPENAMP_DTSI = 0 or empty: Build a dtbo
ENABLE_OPENAMP_DTSI = 1: Bundle into the device-tree the openamp items
ENABLE_OPENAMP_DTSI = 2 (!= 0, 1 or empty): Do nothing, assume openamp is already integrated into the device-tree
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
2 files changed, 7 insertions, 1 deletions
diff --git a/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-bsp/device-tree/device-tree.bbappend b/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-bsp/device-tree/device-tree.bbappend index 7d374291..9e7fa4fa 100644 --- a/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-bsp/device-tree/device-tree.bbappend +++ b/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-bsp/device-tree/device-tree.bbappend | |||
@@ -10,6 +10,9 @@ OPENAMP_EXTRA_DT_INCLUDE_FILES:zynqmp = "zynqmp-openamp.dtsi" | |||
10 | OPENAMP_EXTRA_DT_INCLUDE_FILES:versal = "versal-openamp.dtsi" | 10 | OPENAMP_EXTRA_DT_INCLUDE_FILES:versal = "versal-openamp.dtsi" |
11 | OPENAMP_EXTRA_DT_INCLUDE_FILES:versal-net = "versal-net-openamp.dtsi" | 11 | OPENAMP_EXTRA_DT_INCLUDE_FILES:versal-net = "versal-net-openamp.dtsi" |
12 | 12 | ||
13 | # ENABLE_OPENAMP_DTSI = 0 or empty: Build a dtbo | ||
14 | # ENABLE_OPENAMP_DTSI = 1: Bundle into the device-tree the openamp items | ||
15 | # ENABLE_OPENAMP_DTSI = 2 (!= 0, 1 or empty): Do nothing, assume openamp is already integrated into the device-tree | ||
13 | def set_openamp_extra_dt_include_files(d): | 16 | def set_openamp_extra_dt_include_files(d): |
14 | distro_features = d.getVar('DISTRO_FEATURES', True) | 17 | distro_features = d.getVar('DISTRO_FEATURES', True) |
15 | enable_openamp_dtsi = d.getVar('ENABLE_OPENAMP_DTSI') | 18 | enable_openamp_dtsi = d.getVar('ENABLE_OPENAMP_DTSI') |
diff --git a/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-core/packagegroups/packagegroup-openamp.bb b/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-core/packagegroups/packagegroup-openamp.bb index 13992ebc..9149bc28 100644 --- a/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-core/packagegroups/packagegroup-openamp.bb +++ b/meta-xilinx-core/dynamic-layers/openamp-layer/recipes-core/packagegroups/packagegroup-openamp.bb | |||
@@ -25,7 +25,10 @@ RDEPENDS:${PN}-matrix-mul:append:zcu102-zynqmp = " openamp-fw-mat-muld" | |||
25 | RDEPENDS:${PN}-rpc-demo = "rpmsg-proxy-app" | 25 | RDEPENDS:${PN}-rpc-demo = "rpmsg-proxy-app" |
26 | RDEPENDS:${PN}-rpc-demo:append:zcu102-zynqmp = " openamp-fw-rpc-demo" | 26 | RDEPENDS:${PN}-rpc-demo:append:zcu102-zynqmp = " openamp-fw-rpc-demo" |
27 | 27 | ||
28 | RDEPENDS:${PN}:append = " ${@'open-amp-device-tree' if d.getVar('ENABLE_OPENAMP_DTSI') != '1' else ''}" | 28 | # ENABLE_OPENAMP_DTSI = 0 or empty: Build a dtbo |
29 | # ENABLE_OPENAMP_DTSI = 1: Bundle into the device-tree the openamp items | ||
30 | # ENABLE_OPENAMP_DTSI = 2 (!= 0, 1 or empty): Do nothing, assume openamp is already integrated into the device-tree | ||
31 | RDEPENDS:${PN}:append = " ${@'open-amp-device-tree' if not d.getVar('ENABLE_OPENAMP_DTSI') or d.getVar('ENABLE_OPENAMP_DTSI') == '0' else ''}" | ||
29 | 32 | ||
30 | RDEPENDS:${PN}:append = " \ | 33 | RDEPENDS:${PN}:append = " \ |
31 | libmetal \ | 34 | libmetal \ |