summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2026-10-01 18:28:16 -0300
committerGitHub <noreply@github.com>2026-10-01 18:28:16 -0300
commit2c3f7d0a8f6b6f95aa7b6215d4ff7ffcedcce0f5 (patch)
treeb116baed547e08a01a142b45d2a244e986baf1b4
parentf8c787db06c4c9573672516250c8da7495e42f61 (diff)
parent364db71ebb3bbc00b5515b3fbc08bbd57811ccb4 (diff)
downloadmeta-freescale-2c3f7d0a8f6b6f95aa7b6215d4ff7ffcedcce0f5.tar.gz
Merge pull request #2780 from Freescale/backport-2778-to-wrynose
[Backport wrynose] piglit: fix yocto-check-layer test_signatures
-rw-r--r--recipes-graphics/piglit/piglit_%.bbappend46
1 files changed, 28 insertions, 18 deletions
diff --git a/recipes-graphics/piglit/piglit_%.bbappend b/recipes-graphics/piglit/piglit_%.bbappend
index 8da9344b0..0230780d2 100644
--- a/recipes-graphics/piglit/piglit_%.bbappend
+++ b/recipes-graphics/piglit/piglit_%.bbappend
@@ -2,30 +2,31 @@
2# nooelint: oelint.vars.noncoreoverride 2# nooelint: oelint.vars.noncoreoverride
3FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 3FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
4 4
5# Both fix upstream cl tests generally, not on i.MX only, so scoping them would 5# GBM needs virtual/libgbm; PIGLIT_USE_GBM is set below.
6# leave the tests broken on every other machine. Both are filed upstream. 6DEPENDS:append:imx-generic-bsp = " ${@oe.utils.conditional('PIGLIT_USE_GBM', '1', 'virtual/libgbm', '', d)}"
7# nooelint: oelint.vars.noncoreoverride
8SRC_URI += "file://0001-tests-Fix-cl-test-Include-Directories-error-Error-0-.patch \
9 file://0002-cl-Add-mutually-exclusive-memory-flags-for-CL_MEM_KE.patch"
10 7
11# Dispatch lines consume machine-specialized helper vars below. 8# Both fix upstream cl tests generally, but applied unscoped they changed the
12# No-op off-target: the helper it consumes expands empty. 9# recipe on machines this layer does not own; the cl tests are only built
13# nooelint: oelint.vars.noncoreoverride 10# here on i.MX (opencl, below). Both are filed upstream.
14PACKAGECONFIG:append = " ${PACKAGECONFIG_APPEND}" 11SRC_URI:append:imx-generic-bsp = " \
15# No-op off-target: the helper it consumes expands empty. 12 file://0001-tests-Fix-cl-test-Include-Directories-error-Error-0-.patch \
16# nooelint: oelint.vars.noncoreoverride 13 file://0002-cl-Add-mutually-exclusive-memory-flags-for-CL_MEM_KE.patch \
17PACKAGECONFIG:remove = "${PACKAGECONFIG_REMOVE}" 14"
18 15
19# The gbm/vulkan default is scoped to imx-generic-bsp; unscoped it pulled 16# Dispatch lines consume machine-specialized helper vars below. Scoped to
20# virtual/libgbm, glslang-native and vulkan-loader into DEPENDS and flipped 17# imx-generic-bsp, where the helpers are set: unscoped, the append left
18# whitespace in PACKAGECONFIG on every machine.
19PACKAGECONFIG:append:imx-generic-bsp = " ${PACKAGECONFIG_APPEND}"
20PACKAGECONFIG:remove:imx-generic-bsp = "${PACKAGECONFIG_REMOVE}"
21
22# The vulkan default is scoped to imx-generic-bsp; unscoped it pulled
23# glslang-native and vulkan-loader into DEPENDS and flipped
21# PIGLIT_BUILD_VK_TESTS on for machines this layer does not own. The mx6/mx7 24# PIGLIT_BUILD_VK_TESTS on for machines this layer does not own. The mx6/mx7
22# clears below still win, their overrides coming later in OVERRIDES. The empty 25# clears below still win, their overrides coming later in OVERRIDES. The empty
23# base default cannot itself be scoped. 26# base default cannot itself be scoped.
24# nooelint: oelint.vars.noncoreoverride 27# nooelint: oelint.vars.noncoreoverride
25PACKAGECONFIG_APPEND ?= "" 28PACKAGECONFIG_APPEND ?= ""
26PACKAGECONFIG_APPEND:imx-generic-bsp ?= "\ 29PACKAGECONFIG_APPEND:imx-generic-bsp ?= "${@bb.utils.filter('DISTRO_FEATURES', 'vulkan', d)}"
27 gbm \
28 ${@bb.utils.filter('DISTRO_FEATURES', 'vulkan', d)}"
29PACKAGECONFIG_APPEND:append:imxviv:mx8-nxp-bsp = " opencl" 30PACKAGECONFIG_APPEND:append:imxviv:mx8-nxp-bsp = " opencl"
30PACKAGECONFIG_APPEND:imxgpu:mx6-nxp-bsp = "" 31PACKAGECONFIG_APPEND:imxgpu:mx6-nxp-bsp = ""
31PACKAGECONFIG_APPEND:imxgpu:mx7-nxp-bsp = "" 32PACKAGECONFIG_APPEND:imxgpu:mx7-nxp-bsp = ""
@@ -37,6 +38,15 @@ PACKAGECONFIG_REMOVE:imxgpu = "glx"
37PACKAGECONFIG_REMOVE:imxgpu:mx6-nxp-bsp = "glx x11" 38PACKAGECONFIG_REMOVE:imxgpu:mx6-nxp-bsp = "glx x11"
38PACKAGECONFIG_REMOVE:imxgpu:mx7-nxp-bsp = "glx x11" 39PACKAGECONFIG_REMOVE:imxgpu:mx7-nxp-bsp = "glx x11"
39 40
40PACKAGECONFIG[gbm] = "-DPIGLIT_USE_GBM=1,-DPIGLIT_USE_GBM=0,virtual/libgbm" 41# GBM, on the same machines and with the same mx6/mx7 clears as the
42# PACKAGECONFIG_APPEND above. Not a PACKAGECONFIG[gbm] flag: a flag cannot be
43# scoped, and it added -DPIGLIT_USE_GBM=0 to every other machine's configure.
44# Fallback default for the machine overrides below.
45# nooelint: oelint.vars.noncoreoverride
46PIGLIT_USE_GBM ?= "0"
47PIGLIT_USE_GBM:imx-generic-bsp ?= "1"
48PIGLIT_USE_GBM:imxgpu:mx6-nxp-bsp = "0"
49PIGLIT_USE_GBM:imxgpu:mx7-nxp-bsp = "0"
50EXTRA_OECMAKE:append:imx-generic-bsp = " -DPIGLIT_USE_GBM=${PIGLIT_USE_GBM}"
41 51
42CFLAGS:append:imxgpu:toolchain-clang = " -Wno-error=int-conversion" 52CFLAGS:append:imxgpu:toolchain-clang = " -Wno-error=int-conversion"