All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/mesa3d: add missing elfutils dependency with R600 driver
@ 2018-04-28 15:52 Romain Naour
  2018-04-28 15:52 ` [Buildroot] [PATCH 2/2] package/mesa3d: add missing elfutils dependency with RadeonSI driver Romain Naour
  2018-04-28 15:59 ` [Buildroot] [PATCH 1/2] package/mesa3d: add missing elfutils dependency with R600 driver Thomas Petazzoni
  0 siblings, 2 replies; 3+ messages in thread
From: Romain Naour @ 2018-04-28 15:52 UTC (permalink / raw)
  To: buildroot

Commit "add dependency on elfutils for R600 with LLVM" [1] select
elfutils package at Kconfig level without adding it the make dependency.

Enabling r600 support lead to a build issue when building from
scratch with "make mesa3d":
checking for RADEON... yes
configure: error: r600 requires libelf when using llvm

elfutils dependency is needed by r600 with llvm support and radeonSI.

[1] 92fda8761aa8024be53a8edb8c102d1ba6401bce

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Valentin Korenblit <valentin.korenblit@smile.fr>
---
 package/mesa3d/mesa3d.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index 9857b597cf..2529c7d8e6 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -38,6 +38,10 @@ MESA3D_CONF_OPTS += \
 	--with-llvm-prefix=$(STAGING_DIR)/usr \
 	--enable-llvm-shared-libs \
 	--enable-llvm
+# R600 needs libelf when Mesa3D is built with LLVM support
+ifneq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600),)
+MESA3D_DEPENDENCIES += elfutils
+endif
 else
 # Avoid automatic search of llvm-config
 MESA3D_CONF_OPTS += --disable-llvm
-- 
2.14.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-28 15:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-28 15:52 [Buildroot] [PATCH 1/2] package/mesa3d: add missing elfutils dependency with R600 driver Romain Naour
2018-04-28 15:52 ` [Buildroot] [PATCH 2/2] package/mesa3d: add missing elfutils dependency with RadeonSI driver Romain Naour
2018-04-28 15:59 ` [Buildroot] [PATCH 1/2] package/mesa3d: add missing elfutils dependency with R600 driver Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.