diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2022-12-13 12:04:16 -0800 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-04-10 09:03:22 -0700 |
| commit | 07796f5f395261d825b0d271e47678cddb662512 (patch) | |
| tree | 351f7aadadfb6e9ca789cefea1f3e242d3abf6a7 /meta-xilinx-core | |
| parent | 75b8d05040228b91f859f37dcfd81781831908f1 (diff) | |
| download | meta-xilinx-07796f5f395261d825b0d271e47678cddb662512.tar.gz | |
various: Refactor mali400 related bbappends
Combination of MACHINE_FEATURES = 'mali400' and DISTRO_FEATURES = 'libmali'.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core')
10 files changed, 60 insertions, 31 deletions
diff --git a/meta-xilinx-core/recipes-gnome/gtk+/gtk+3_%.bbappend b/meta-xilinx-core/recipes-gnome/gtk+/gtk+3_%.bbappend index 53475f64..83fd7fa6 100644 --- a/meta-xilinx-core/recipes-gnome/gtk+/gtk+3_%.bbappend +++ b/meta-xilinx-core/recipes-gnome/gtk+/gtk+3_%.bbappend | |||
| @@ -1,2 +1,4 @@ | |||
| 1 | # Has a dependency on libmali | 1 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific |
| 2 | PACKAGE_ARCH:mali400 = "${MACHINE_ARCH}" | 2 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" |
| 3 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" | ||
| 4 | PACKAGE_ARCH = "${@bb.utils.contains_any('DEPENDS', 'virtual/libgles1 virtual/libgles2 virtual/egl virtual/libgbm', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" | ||
diff --git a/meta-xilinx-core/recipes-graphics/cairo/cairo_%.bbappend b/meta-xilinx-core/recipes-graphics/cairo/cairo_%.bbappend index 4efd957d..3ee90344 100644 --- a/meta-xilinx-core/recipes-graphics/cairo/cairo_%.bbappend +++ b/meta-xilinx-core/recipes-graphics/cairo/cairo_%.bbappend | |||
| @@ -1,7 +1,11 @@ | |||
| 1 | PACKAGECONFIG:mali400 = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)} \ | 1 | # OpenGL comes from libmali on ev/eg, when egl is enabled |
| 2 | egl glesv2" | 2 | PACKAGECONFIG = " \ |
| 3 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)} \ | ||
| 4 | egl glesv2 \ | ||
| 5 | " | ||
| 3 | 6 | ||
| 4 | # OpenGL comes from libmali | 7 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific |
| 5 | DEPENDS:append:mali400 = " libmali-xlnx" | 8 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" |
| 9 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" | ||
| 10 | PACKAGE_ARCH = "${@bb.utils.contains_any('DEPENDS', 'virtual/libgles1 virtual/libgles2 virtual/egl virtual/libgbm', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" | ||
| 6 | 11 | ||
| 7 | PACKAGE_ARCH:mali400 = "${MACHINE_ARCH}" | ||
diff --git a/meta-xilinx-core/recipes-graphics/libepoxy/libepoxy_%.bbappend b/meta-xilinx-core/recipes-graphics/libepoxy/libepoxy_%.bbappend index 53475f64..83fd7fa6 100644 --- a/meta-xilinx-core/recipes-graphics/libepoxy/libepoxy_%.bbappend +++ b/meta-xilinx-core/recipes-graphics/libepoxy/libepoxy_%.bbappend | |||
| @@ -1,2 +1,4 @@ | |||
| 1 | # Has a dependency on libmali | 1 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific |
| 2 | PACKAGE_ARCH:mali400 = "${MACHINE_ARCH}" | 2 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" |
| 3 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" | ||
| 4 | PACKAGE_ARCH = "${@bb.utils.contains_any('DEPENDS', 'virtual/libgles1 virtual/libgles2 virtual/egl virtual/libgbm', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" | ||
diff --git a/meta-xilinx-core/recipes-graphics/libglu/libglu_%.bbappend b/meta-xilinx-core/recipes-graphics/libglu/libglu_%.bbappend index 82725e4f..815ec69f 100644 --- a/meta-xilinx-core/recipes-graphics/libglu/libglu_%.bbappend +++ b/meta-xilinx-core/recipes-graphics/libglu/libglu_%.bbappend | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | # OpenGL comes from libmali, adjust parameters | 1 | # OpenGL comes from libmali, adjust parameters |
| 2 | DEPENDS:append:mali400 = " virtual/libgles2" | 2 | MALI_DEPENDS = "${@bb.utils.contains('DISTRO_FEATURES', 'libmali', ' virtual/libgles2', '', d)}" |
| 3 | PACKAGE_ARCH:mali400 = "${MACHINE_ARCH}" | 3 | DEPENDS:append = "${@bb.utils.contains('MACHINE_FEATURES', 'mali400', ' ${MALI_DEPENDS}', '', d)}" |
| 4 | |||
| 5 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific | ||
| 6 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" | ||
| 7 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" | ||
| 8 | PACKAGE_ARCH = "${@bb.utils.contains_any('DEPENDS', 'virtual/libgles1 virtual/libgles2 virtual/egl virtual/libgbm', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" | ||
| 9 | |||
diff --git a/meta-xilinx-core/recipes-graphics/libsdl2/libsdl2_%.bbappend b/meta-xilinx-core/recipes-graphics/libsdl2/libsdl2_%.bbappend index ee4ca7bb..83fd7fa6 100644 --- a/meta-xilinx-core/recipes-graphics/libsdl2/libsdl2_%.bbappend +++ b/meta-xilinx-core/recipes-graphics/libsdl2/libsdl2_%.bbappend | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # Has a dependency on libmali | 1 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific |
| 2 | PACKAGE_ARCH:mali400 = "${MACHINE_ARCH}" | 2 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" |
| 3 | 3 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" | |
| 4 | PACKAGE_ARCH = "${@bb.utils.contains_any('DEPENDS', 'virtual/libgles1 virtual/libgles2 virtual/egl virtual/libgbm', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" | ||
diff --git a/meta-xilinx-core/recipes-graphics/virglrenderer/virglrenderer_%.bbappend b/meta-xilinx-core/recipes-graphics/virglrenderer/virglrenderer_%.bbappend index 53475f64..83fd7fa6 100644 --- a/meta-xilinx-core/recipes-graphics/virglrenderer/virglrenderer_%.bbappend +++ b/meta-xilinx-core/recipes-graphics/virglrenderer/virglrenderer_%.bbappend | |||
| @@ -1,2 +1,4 @@ | |||
| 1 | # Has a dependency on libmali | 1 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific |
| 2 | PACKAGE_ARCH:mali400 = "${MACHINE_ARCH}" | 2 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" |
| 3 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" | ||
| 4 | PACKAGE_ARCH = "${@bb.utils.contains_any('DEPENDS', 'virtual/libgles1 virtual/libgles2 virtual/egl virtual/libgbm', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" | ||
diff --git a/meta-xilinx-core/recipes-graphics/wayland/weston_%.bbappend b/meta-xilinx-core/recipes-graphics/wayland/weston_%.bbappend index 5c425417..33bed127 100644 --- a/meta-xilinx-core/recipes-graphics/wayland/weston_%.bbappend +++ b/meta-xilinx-core/recipes-graphics/wayland/weston_%.bbappend | |||
| @@ -1,20 +1,24 @@ | |||
| 1 | FILESEXTRAPATHS:prepend:zynqmp := "${THISDIR}/files:" | 1 | FILESEXTRAPATHS:prepend:zynqmp := "${THISDIR}/files:" |
| 2 | 2 | ||
| 3 | SRC_URI:append:zynqmp = " file://0001-libweston-Remove-substitute-format-for-ARGB8888.patch" | 3 | SRC_URI:append:zynqmp = " file://0001-libweston-Remove-substitute-format-for-ARGB8888.patch" |
| 4 | SRC_URI:append:mali400 = " file://0002-libmali-does-not-support-gles3.patch" | ||
| 5 | 4 | ||
| 6 | # Due to the SRC_URI zynqmp specific change, this needs to be SOC_FAMILY_ARCH specific | 5 | # Due to the SRC_URI zynqmp specific change, this needs to be SOC_FAMILY_ARCH specific |
| 7 | SOC_FAMILY_ARCH ??= "${TUNE_PKGARCH}" | 6 | SOC_FAMILY_ARCH ??= "${TUNE_PKGARCH}" |
| 8 | PACKAGE_ARCH:zynqmp = "${SOC_FAMILY_ARCH}" | 7 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" |
| 8 | DEFAULT_PACKAGE_ARCH:zynqmp = "${SOC_FAMILY_ARCH}" | ||
| 9 | PACKAGE_ARCH = "${DEFAULT_PACKAGE_ARCH}" | ||
| 9 | 10 | ||
| 10 | 11 | ||
| 11 | # OpenGL comes from libmali on ev/eg, when egl is enabled | 12 | # mali400 specific items |
| 12 | DEPENDS:append:mali400 = "${@bb.utils.contains('PACKAGECONFIG', 'egl', ' libmali-xlnx', '', d)}" | 13 | MALI_SRC_URI = "${@bb.utils.contains('DISTRO_FEATURES', 'libmali', 'file://0002-libmali-does-not-support-gles3.patch', '', d)}" |
| 13 | 14 | SRC_URI:append = "${@bb.utils.contains('MACHINE_FEATURES', 'mali400', ' ${MALI_SRC_URI}', '', d)}" | |
| 14 | # Store the default value | ||
| 15 | DEFAULT_PKGARCH:mali400 := "${PACKAGE_ARCH}" | ||
| 16 | # Set to machine_arch or default_pkgarch | ||
| 17 | PACKAGE_ARCH:mali400 = "${@bb.utils.contains('PACKAGECONFIG', 'egl', '${MACHINE_ARCH}', '${DEFAULT_PKGARCH}', d)}" | ||
| 18 | 15 | ||
| 19 | # Skip dmabuf-feedback, as it requires gbm >= 21.1.1, mali-xlnx only provides 17.3 | 16 | # Skip dmabuf-feedback, as it requires gbm >= 21.1.1, mali-xlnx only provides 17.3 |
| 20 | SIMPLECLIENTS:mali400 ?= "damage,im,egl,shm,touch,dmabuf-v4l,dmabuf-egl" | 17 | DEFAULT_SIMPLECLIENTS := "${SIMPLECLIENTS}" |
| 18 | MALI_SIMPLECLIENTS = "${@bb.utils.contains('DISTRO_FEATURES', 'libmali', 'damage,im,egl,shm,touch,dmabuf-v4l,dmabuf-egl', '${DEFAULT_SIMPLECLIENTS}', d)}" | ||
| 19 | SIMPLECLIENTS = "${@bb.utils.contains('MACHINE_FEATURES', 'mali400', '${MALI_SIMPLECLIENTS}', '${DEFAULT_SIMPLECLIENTS}', d)}" | ||
| 20 | |||
| 21 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific | ||
| 22 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" | ||
| 23 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" | ||
| 24 | PACKAGE_ARCH = "${@bb.utils.contains_any('DEPENDS', 'virtual/libgles1 virtual/libgles2 virtual/egl virtual/libgbm', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" | ||
diff --git a/meta-xilinx-core/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend b/meta-xilinx-core/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend index a3941df2..83fd7fa6 100644 --- a/meta-xilinx-core/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend +++ b/meta-xilinx-core/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend | |||
| @@ -1 +1,4 @@ | |||
| 1 | DEPENDS:append = " virtual/libgbm" | 1 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific |
| 2 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" | ||
| 3 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" | ||
| 4 | PACKAGE_ARCH = "${@bb.utils.contains_any('DEPENDS', 'virtual/libgles1 virtual/libgles2 virtual/egl virtual/libgbm', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" | ||
diff --git a/meta-xilinx-core/recipes-graphics/xwayland/xwayland_%.bbappend b/meta-xilinx-core/recipes-graphics/xwayland/xwayland_%.bbappend new file mode 100644 index 00000000..4d9963b8 --- /dev/null +++ b/meta-xilinx-core/recipes-graphics/xwayland/xwayland_%.bbappend | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific | ||
| 2 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" | ||
| 3 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" | ||
| 4 | PACKAGE_ARCH = "${@bb.utils.contains_any('DEPENDS', 'virtual/libgles1 virtual/libgles2 virtual/egl virtual/libgbm', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" | ||
| 5 | |||
diff --git a/meta-xilinx-core/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend b/meta-xilinx-core/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend index d430b63e..83fd7fa6 100644 --- a/meta-xilinx-core/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend +++ b/meta-xilinx-core/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # OpenGL comes from libmali on ev/eg, when egl is enabled | 1 | # Links to libmali-xlnx, so it becomes MACHINE_ARCH specific |
| 2 | DEPENDS:append:mali400 = "${@bb.utils.contains('PACKAGECONFIG', 'egl', ' libmali-xlnx', '', d)}" | 2 | DEFAULT_PACKAGE_ARCH := "${PACKAGE_ARCH}" |
| 3 | 3 | MALI_PACKAGE_ARCH = "${@'${MACHINE_ARCH}' if d.getVar('PREFERRED_PROVIDER_virtual/libgles1') == 'libmali-xlnx' else '${DEFAULT_PACKAGE_ARCH}'}" | |
| 4 | PACKAGE_ARCH:mali400 = "${@bb.utils.contains('PACKAGECONFIG', 'egl', '${MACHINE_ARCH}', '${TUNE_PKGARCH}', d)}" | 4 | PACKAGE_ARCH = "${@bb.utils.contains_any('DEPENDS', 'virtual/libgles1 virtual/libgles2 virtual/egl virtual/libgbm', '${MALI_PACKAGE_ARCH}', '${DEFAULT_PACKAGE_ARCH}', d)}" |
