diff mbox series

[meta-arago,master/scarthgap,03/10] piglit: Wrap the bbappend in a compliant manner

Message ID 20250312144540.14210-4-reatmon@ti.com
State New
Headers show
Series Wrap bbappends in a | expand

Commit Message

Ryan Eatmon March 12, 2025, 2:45 p.m. UTC
Wrap the bbappend in a yocto-check-layer compliant manner so that only
if you are building this recipe under meta-ti-bsp with ti-soc in the
MACHINE_OVERRIDES would the bbappend apply.

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
---
 .../{piglit_%.bbappend => piglit-ti.inc}      |  0
 .../recipes-graphics/piglit/piglit_%.bbappend | 32 ++-----------------
 2 files changed, 3 insertions(+), 29 deletions(-)
 copy meta-arago-test/recipes-graphics/piglit/{piglit_%.bbappend => piglit-ti.inc} (100%)
diff mbox series

Patch

diff --git a/meta-arago-test/recipes-graphics/piglit/piglit_%.bbappend b/meta-arago-test/recipes-graphics/piglit/piglit-ti.inc
similarity index 100%
copy from meta-arago-test/recipes-graphics/piglit/piglit_%.bbappend
copy to meta-arago-test/recipes-graphics/piglit/piglit-ti.inc
diff --git a/meta-arago-test/recipes-graphics/piglit/piglit_%.bbappend b/meta-arago-test/recipes-graphics/piglit/piglit_%.bbappend
index fb533533..d93e5d48 100644
--- a/meta-arago-test/recipes-graphics/piglit/piglit_%.bbappend
+++ b/meta-arago-test/recipes-graphics/piglit/piglit_%.bbappend
@@ -1,30 +1,4 @@ 
-# add a config to point piglit at the default install location for deqp tests
-# if they are selected
+PIGLIT_TI = ""
+PIGLIT_TI:ti-soc = "piglit-ti.inc"
 
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
-
-PACKAGECONFIG[deqp-gles] = ",,,opengl-es-cts"
-PACKAGECONFIG[deqp-vk] = ",,,vulkan-cts"
-
-do_install:append() {
-    if ${@bb.utils.contains('PACKAGECONFIG', 'deqp-gles', 'true', 'false', d)}; then
-        printf "%s\n" \
-            "[deqp-egl]" \
-            "bin=/usr/lib/opengl-es-cts/deqp-egl" \
-            "[deqp-gles2]" \
-            "bin=/usr/lib/opengl-es-cts/deqp-gles2" \
-            "[deqp-gles3]" \
-            "bin=/usr/lib/opengl-es-cts/deqp-gles3" \
-            "[deqp-gles31]" \
-            "bin=/usr/lib/opengl-es-cts/deqp-gles31" \
-            >> ${D}/${libdir}/piglit/piglit.conf
-    fi
-    if ${@bb.utils.contains('PACKAGECONFIG', 'deqp-vk', 'true', 'false', d)}; then
-        printf "%s\n" \
-            "[deqp-vk]" \
-            "bin=/usr/lib/vulkan-cts/deqp-vk" \
-            "[deqp-vksc]" \
-            "bin=/usr/lib/vulkan-cts/deqp-vksc" \
-            >> ${D}/${libdir}/piglit/piglit.conf
-    fi
-}
+require ${PIGLIT_TI}