@@ -44,6 +44,17 @@ config BR2_PACKAGE_MESA3D_DRIVER
config BR2_PACKAGE_MESA3D_NEEDS_XA
bool
+config BR2_PACKAGE_MESA3D_USE_LLVM
+ bool "Enable LLVM usage"
+ default y
+ depends on BR2_PACKAGE_LLVM
+ select BR2_PACKAGE_LLVM_ENABLE_RTTI
+ help
+ Build optimized driver code which makes use of LLVM (e.g. llvmpipe).
+
+comment "optional llvm support depends on llvm"
+ depends on !BR2_PACKAGE_LLVM
+
comment "Gallium drivers"
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV
@@ -57,6 +57,13 @@ MESA3D_CONF_OPTS += \
--disable-xa
endif
+ifeq ($(BR2_PACKAGE_MESA3D_USE_LLVM),y)
+MESA3D_DEPENDENCIES += llvm
+MESA3D_CONF_OPTS += --enable-llvm
+else
+MESA3D_CONF_OPTS += --disable-llvm
+endif
+
# Drivers
#Gallium Drivers
@@ -214,6 +221,6 @@ MESA3D_CONF_OPTS += --disable-lmsensors
endif
# Avoid automatic search of llvm-config
-MESA3D_CONF_OPTS += --with-llvm-prefix=$(STAGING_DIR)/usr/bin
+MESA3D_CONF_OPTS += --with-llvm-prefix=$(STAGING_DIR)/usr
$(eval $(autotools-package))
Signed-off-by: Adrian Perez de Castro <aperez@igalia.com> --- package/mesa3d/Config.in | 11 +++++++++++ package/mesa3d/mesa3d.mk | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-)