mesa: allow mesa-native/nativesdk only subject to opengl/vulkan DISTRO_FEATURE

This prevents accidental builds of it when native/nativesdk opengl
is not actually enabled (which may cause undesirable lengthening
of dependency chains or build failures because those dependencies
don't enable options required for mesa).

(From OE-Core rev: 3daa991705c2c8e6e3d86a2c7e427f84176b31c2)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanavin
2023-03-16 10:40:58 +01:00
committed by Richard Purdie
parent 44375eccf1
commit e5c4db30c5

View File

@@ -51,7 +51,7 @@ inherit meson pkgconfig python3native gettext features_check
BBCLASSEXTEND = "native nativesdk"
ANY_OF_DISTRO_FEATURES:class-target = "opengl vulkan"
ANY_OF_DISTRO_FEATURES = "opengl vulkan"
PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)}"