package/mesa3d: explicitly enable llvm for host-mesa3d

LLVM is already implicitly enabled for host-mesa3d when
BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER is selected. This blind
option is automatically enabled when LLVM is required by drivers such
as intel-iris, panfrost, imagination, or intel-vulkan.

The BR2_PACKAGE_MESA3D_LLVM option also independently selects host-llvm,
but this change makes the dependency more explicit for host-mesa3d
builds.

Note that disabling LLVM is not possible for host-mesa3d, as the build
will fail with:
../../../br-test-pkg/bootlin-armv5-uclibc/build/host-mesa3d-25.3.2/meson.build:847:3: ERROR: Feature llvm cannot be disabled: CLC requires LLVM

Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
This commit is contained in:
Thomas Devoogdt
2026-01-03 09:40:01 +01:00
committed by Romain Naour
parent eb25a634c1
commit db1a28435d

View File

@@ -297,6 +297,7 @@ HOST_MESA3D_CONF_OPTS = \
-Dgallium-drivers=$(subst $(space),$(comma),$(HOST_MESA3D_GALLIUM_DRIVERS-y)) \
-Dtools=$(subst $(space),$(comma),$(HOST_MESA3D_TOOLS)) \
-Dinstall-mesa-clc=true \
-Dllvm=enabled \
-Dmesa-clc=enabled \
-Dplatforms= \
-Dprecomp-compiler=enabled \
@@ -306,6 +307,7 @@ HOST_MESA3D_CONF_OPTS = \
HOST_MESA3D_DEPENDENCIES = \
host-libclc \
host-libdrm \
host-llvm \
host-python-mako \
host-python-pyyaml \
host-spirv-tools