Skip to contentSkip to conversation

mesa: align x86 mesa config with LLVM graphics

PATCH In review AshishKumar Mishra 3 participants 6 messages Aug 20 – Sep 15

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mesa: align x86 mesa config with LLVM graphics

This change makes the x86 and native mesa PACKAGECONFIG appends conditional on the same DISTRO_FEATURES check used by LLVM.

As a result, graphics-related Mesa and LLVM options are only added when the distro explicitly enables a graphics stack, while leaving non-graphics minimal images unchanged.

(cherry picked from commit 2cf81caa69474c5ec2397ca37622c86519791d44)

---
 meta/recipes-graphics/mesa/mesa.bb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
meta/recipes-graphics/mesa/mesa.bb +4 -4
index 66c8f9c372..a646c16af7 100644
@@ -13,10 +13,10 @@ PACKAGECONFIG = " \
 	zlib \
 "
 
-PACKAGECONFIG:append:x86 = " libclc gallium-llvm intel amd nouveau svga"
-PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm intel amd nouveau svga"
-PACKAGECONFIG:append:i686 = " libclc gallium-llvm intel amd nouveau svga"
-PACKAGECONFIG:append:class-native = " libclc gallium-llvm amd nouveau svga"
+PACKAGECONFIG:append:x86 = "${@bb.utils.contains_any('DISTRO_FEATURES', 'opengl opencl vulkan', ' libclc gallium-llvm intel amd nouveau svga', '', d)}"
+PACKAGECONFIG:append:x86-64 = "${@bb.utils.contains_any('DISTRO_FEATURES', 'opengl opencl vulkan', ' libclc gallium-llvm intel amd nouveau svga', '', d)}"
+PACKAGECONFIG:append:i686 = "${@bb.utils.contains_any('DISTRO_FEATURES', 'opengl opencl vulkan', ' libclc gallium-llvm intel amd nouveau svga', '', d)}"
+PACKAGECONFIG:append:class-native = "${@bb.utils.contains_any('DISTRO_FEATURES', 'opengl opencl vulkan', ' libclc gallium-llvm amd nouveau svga', '', d)}"
 
 GLPROVIDES = " \
     ${@bb.utils.contains('PACKAGECONFIG', 'opengl', 'virtual/libgl', '', d)} \
Signature · 1 line
2.43.0
#3 lore raw

Re: [OE-core] Reminder-2: [wrynose][PATCH] mesa: align x86 mesa config with LLVM graphics

Quoted 9 lines · AshishKumar Mishra via lists.openembedded.org

Hi Team ,

Can this patch be takedn in wrynose or if team have any suggestion . I can rework accordingly
The patch is merged i master branch and fix the silent bug there
https://git.openembedded.org/openembedded-core/tree/meta/recipes-graphics/mesa/mesa.bb

Thanks ,
Ashish

Hello,

Sorry, the patch pending queue is quite long at the moment and I have not reached this patch yet.
Usually I would tell you to wait 2 weeks before pinging a patch. In this case, I think I will need a week or 2 before clearing the queue. So please wait 2 more weeks before pinging again.

Thanks for your patience.

Signature · 2 lines
Yoann Congal
Smile ECS
#4 lore raw

Re: Reminder-2: [wrynose][PATCH] mesa: align x86 mesa config with LLVM graphics

Sure
Thanks Yoann

#5 lore raw

Re: Reminder-2: [wrynose][PATCH] mesa: align x86 mesa config with LLVM graphics

Hi Yoann,

Can you please take this fix in wrynose

Thanks ,
Ashish