[Buildroot] [PATCH 2/2] package/mesa3d: add missing elfutils dependency with RadeonSI driver

Romain Naour romain.naour at gmail.com
Sat Apr 28 15:52:52 UTC 2018


RadeonSI needs LLVM support which require elfutils dependency.

Fixes:
checking for RADEON... yes
checking for AMDGPU... yes
configure: error: radeonsi requires libelf when using llvm

Signed-off-by: Romain Naour <romain.naour at gmail.com>
Cc: Valentin Korenblit <valentin.korenblit at smile.fr>
Cc: Michał Kalbarczyk <michal at gamecodehq.com>
---
 package/mesa3d/mesa3d.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index 2529c7d8e6..3aac0c19b8 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -39,7 +39,8 @@ MESA3D_CONF_OPTS += \
 	--enable-llvm-shared-libs \
 	--enable-llvm
 # R600 needs libelf when Mesa3D is built with LLVM support
-ifneq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600),)
+# RadeonSI needs libelf
+ifneq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600)$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI),)
 MESA3D_DEPENDENCIES += elfutils
 endif
 else
-- 
2.14.3



More information about the buildroot mailing list