* [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
* [Buildroot] [PATCH 2/2] package/mesa3d: add missing elfutils dependency with RadeonSI driver
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 ` Romain Naour
2018-04-28 15:59 ` [Buildroot] [PATCH 1/2] package/mesa3d: add missing elfutils dependency with R600 driver Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Romain Naour @ 2018-04-28 15:52 UTC (permalink / raw)
To: buildroot
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@gmail.com>
Cc: Valentin Korenblit <valentin.korenblit@smile.fr>
Cc: Micha? Kalbarczyk <michal@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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/2] package/mesa3d: add missing elfutils dependency with R600 driver
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 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2018-04-28 15:59 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 28 Apr 2018 17:52:51 +0200, Romain Naour wrote:
> 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>
Perhaps introduce a BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS hidden Config.in
boolean, select it from the right drivers, and use that in the .mk
file ?
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox