[Buildroot] [git commit branch/2024.02.x] package/mesa3d-demos: depend on vulkan-loader if enabled

Arnout Vandecappelle arnout at rnout.be
Fri Apr 11 10:40:24 UTC 2025


commit: https://git.buildroot.net/buildroot/commit/?id=5ebbe2e199d7593e5443f6e371f449439815d321
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2024.02.x

Vulkan support in mesa3d-demos requires vulkan-loader. Without an
explicit config flag it is autodetected, and may or may not be enabled
depending on build order, leading to unpredictable results.

Fix this by explicitly enabling Vulkan support and depending on
vulkan-loader if BR2_PACKAGE_VULKAN_LOADER=y, and disabling Vulkan
support otherwise.

Signed-off-by: Fiona Klute (WIWA) <fiona.klute at gmx.de>
Signed-off-by: Julien Olivain <ju.o at free.fr>
(cherry picked from commit 7a55e82cb80c971370010df6a5513a7e565f1a72)
Signed-off-by: Thomas Perale <thomas.perale at mind.be>
---
 package/mesa3d-demos/mesa3d-demos.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/mesa3d-demos/mesa3d-demos.mk b/package/mesa3d-demos/mesa3d-demos.mk
index 8acba9270a..cc0121f6d6 100644
--- a/package/mesa3d-demos/mesa3d-demos.mk
+++ b/package/mesa3d-demos/mesa3d-demos.mk
@@ -69,4 +69,11 @@ else
 MESA3D_DEMOS_CONF_OPTS += -Dwayland=disabled
 endif
 
+ifeq ($(BR2_PACKAGE_VULKAN_LOADER),y)
+MESA3D_DEMOS_DEPENDENCIES += vulkan-loader
+MESA3D_DEMOS_CONF_OPTS += -Dvulkan=enabled
+else
+MESA3D_DEMOS_CONF_OPTS += -Dvulkan=disabled
+endif
+
 $(eval $(meson-package))


More information about the buildroot mailing list