Skip to contentSkip to conversation

offscreendemo: Add REQUIRED_DISTRO_FEATURES

PATCH In review Ryan Eatmon 2 participants 4 messages Nov 5, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 offscreendemo: Add REQUIRED_DISTRO_FEATURES

Since this recipe depends on virtual/egl and virtual/libgles2 it should be gated by a check for the "opengl" DISTRO_FEATURE.

---
 .../recipes-graphics/offscreen-demo/offscreendemo_0.0.1.bb    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-arago-test/recipes-graphics/offscreen-demo/offscreendemo_0.0.1.bb +3 -1
index f416b112..6dc0e526 100644
@@ -11,4 +11,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=65d3616852dbf7b1a6d4b53b00626032"
 
 DEPENDS += "virtual/egl virtual/libgles2"
 
-inherit pkgconfig meson
+inherit pkgconfig meson features_check
+
+REQUIRED_DISTRO_FEATURES = "opengl"
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/3 ti-test: Gate some of the packages behind DISTRO_FEATURE check

Create two new variables to group packages that depends on "opengl" and "opencl". Then add a DISTRO_FEATURE check to include the new variables.

---
 .../recipes-core/packagegroups/ti-test.bb          | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
meta-arago-test/recipes-core/packagegroups/ti-test.bb +11 -3
index 03ec9063..cb779123 100644
@@ -67,14 +67,22 @@ TI_TEST_BASE:append:ti-soc = " \
     mtd-utils-ubifs-tests \
 "
 
+TI_TEST_EXTRAS_OPENGL = " \
+    piglit \
+    offscreendemo \
+"
+
+TI_TEST_EXTRAS_OPENCL = " \
+    opencl-cts \
+"
+
 TI_TEST_EXTRAS = " \
     python3-pillow \
     pytesseract \
-    piglit \
     python3-numpy \
     wayland-utils \
-    offscreendemo \
-    ${@bb.utils.contains('DISTRO_FEATURES', 'opencl', 'opencl-cts', '', d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '${TI_TEST_EXTRAS_OPENGL}', '', d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'opencl', '${TI_TEST_EXTRAS_OPENCL}', '', d)} \
 "
 
 TI_TEST_BASE:append:armv7a = " \
Signature · 1 line
2.17.1
#2 lore raw

PATCH 3/3 packagegroup-arago-tisdk-graphics*: Add DISTRO_FEATURE check for some packages

In reply to Ryan Eatmon

Create new variables to group packages that depends on "opengl". Then add a DISTRO_FEATURE check to include the new variables.

---
 ...packagegroup-arago-tisdk-graphics-sdk-target.bb | 14 +++++++++++---
 .../packagegroup-arago-tisdk-graphics.bb           |  8 ++++++--
 2 files changed, 17 insertions(+), 5 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-graphics-sdk-target.bb +11 -3
index 675e4e10..8f760119 100644
@@ -6,17 +6,25 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 inherit packagegroup
 
-RDEPENDS:${PN} = "\
+OPENGL_DEV = "\
     libegl-dev \
     libgl-dev \
     libgles1-dev \
     libgles2-dev \
-    libdrm-dev \
+"
+
+WAYLAND_DEV = "\
     wayland-dev \
     weston-dev \
-    ${@bb.utils.contains('MACHINE_FEATURES', 'gc320', 'ti-gc320-libs-dev', '', d)} \
+"
+
+RDEPENDS:${PN} = "\
+    libdrm-dev \
     libsdl2-dev \
     ktx-software-dev \
     nlohmann-json-dev \
     stb-dev \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '${OPENGL_DEV}', '', d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '${WAYLAND_DEV}', '', d)} \
+    ${@bb.utils.contains('MACHINE_FEATURES', 'gc320', 'ti-gc320-libs-dev', '', d)} \
 "
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-graphics.bb +6 -2
index 52557e5c..9860037f 100644
@@ -11,10 +11,14 @@ GFX_WAYLAND = "\
     weston-examples \
 "
 
-RDEPENDS:${PN} = "\
+OPENGL_PKGS = "\
     libegl \
     glmark2 \
     kmscube \
-    ${@bb.utils.contains('MACHINE_FEATURES', 'gc320', 'ti-gc320-tests', '', d)} \
+"
+
+RDEPENDS:${PN} = "\
+    ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', "${OPENGL_PKGS}", '', d)} \
     ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', "${GFX_WAYLAND}", '', d)} \
+    ${@bb.utils.contains('MACHINE_FEATURES', 'gc320', 'ti-gc320-tests', '', d)} \
 "
Signature · 1 line
2.17.1
#3 lore raw
In reply to Ryan Eatmon

meta-arago / na / 20251105160735.24123-1-reatmon

PRC Results: PASS

=========================================================
check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
WARN - [meta-arago][master][PATCH 3/3] packagegroup-arago-tisdk-graphics*: Add DISTRO_FEATURE check for some packages
WARN: Commit message does not include file/recipe name: packagegroup-arago-tisdk-graphics*: Add DISTRO_FEATURE check for some packages. (COMMIT-MESSAGE-2)
patch

=========================================================
apply-yocto-patch: PASS
=========================================================
master
=====================
Summary:
- Patch Series: [meta-arago][master][PATCH 1/3] offscreendemo: Add REQUIRED_DISTRO_FEATURES
- Submitter: From: Ryan Eatmon <[email protected]>
- Date: Date: Wed, 5 Nov 2025 10:07:33 -0600
- Num Patches: 3
- Mailing List (public inbox) Commit SHA: e4098c6f1fc649a7d5923bb0e92507e8761ce9ad

Applied to:
- Repository: lcpd-prc-meta-arago
- Base Branch: master-next
- Commit Author: LCPD Automation Script <[email protected]>
- Commit Subject: CI/CD Auto-Merger: cicd.master.202510310100
- Commit SHA: e37362654298b1e94df1fc1bf86e1f02ffe5d2a2

Patches
----------------------------------------
All patches applied

=========================================================
check-yocto-repo: PASS
=========================================================
master
=====================
PASS