Enable intel-rt if 'libclc', 'gallium-llvm' and 'intel' are in PACKAGECONFIG

Signed-off-by: Markus Volk <[email protected]>
---
 meta/recipes-graphics/mesa/mesa.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index 469aa789fd..f8e294076a 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -127,7 +127,8 @@ PACKAGECONFIG[etnaviv] = ",,python3-pycparser-native"
 PACKAGECONFIG[ethosu] = ""
 PACKAGECONFIG[freedreno] = ""
 PACKAGECONFIG[imagination] = "-Dimagination-srv=true,-Dimagination-srv=false"
-PACKAGECONFIG[intel] = ""
+intel_rt_enabled = "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc 
gallium-llvm', '-Dintel-rt=enabled', '', d)}"
+PACKAGECONFIG[intel] = "${intel_rt_enabled},-Dintel-rt=disabled"
 PACKAGECONFIG[lima] = ""
 PACKAGECONFIG[nouveau] = ""
 PACKAGECONFIG[panfrost] = ""
-- 
2.54.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#239999): 
https://lists.openembedded.org/g/openembedded-core/message/239999
Mute This Topic: https://lists.openembedded.org/mt/120068822/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to