* [Buildroot] [git commit] package/mesa3d: add dependency on elfutils for R600 with LLVM
@ 2018-04-12 21:31 Thomas Petazzoni
2018-04-13 8:16 ` Michał Kalbarczyk
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2018-04-12 21:31 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=92fda8761aa8024be53a8edb8c102d1ba6401bce
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Gallium R600 needs libelf when mesa is built with llvm support.
Because of this, toolchain must use either uClibc or glibc, as
musl is not currently compatible with elfutils.
This patch solves:
configure: error: r600 requires libelf when using llvm
Fixes:
http://autobuild.buildroot.org/results/8845ff0f28d3273ebe884126b85cd7c4a905d81b/
Signed-off-by: Valentin Korenblit <valentin.korenblit@smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
package/mesa3d/Config.in | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
index 1476b39acc..bd3d050e29 100644
--- a/package/mesa3d/Config.in
+++ b/package/mesa3d/Config.in
@@ -97,13 +97,23 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600
bool "Gallium Radeon R600 driver"
depends on BR2_i386 || BR2_x86_64
+ depends on !BR2_PACKAGE_MESA3D_LLVM || \
+ (BR2_PACKAGE_MESA3D_LLVM && (BR2_TOOLCHAIN_USES_UCLIBC || \
+ BR2_TOOLCHAIN_USES_GLIBC)) # elfutils
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
select BR2_PACKAGE_LIBDRM_RADEON
select BR2_PACKAGE_LLVM_AMDGPU if BR2_PACKAGE_MESA3D_LLVM
+ select BR2_PACKAGE_ELFUTILS if BR2_PACKAGE_MESA3D_LLVM
select BR2_PACKAGE_MESA3D_NEEDS_XA
help
Driver for ATI/AMD Radeon R600/R700/HD5000/HD6000 GPUs.
+# R600 needs libelf when Mesa3D is built with LLVM support
+# musl is not currently compatible with elfutils
+comment "R600 driver needs a uClibc or glibc toolchain when llvm is enabled"
+ depends on BR2_PACKAGE_MESA3D_LLVM
+ depends on !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
+
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA
bool "Gallium vmware svga driver"
depends on BR2_i386 || BR2_x86_64
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [git commit] package/mesa3d: add dependency on elfutils for R600 with LLVM
2018-04-12 21:31 [Buildroot] [git commit] package/mesa3d: add dependency on elfutils for R600 with LLVM Thomas Petazzoni
@ 2018-04-13 8:16 ` Michał Kalbarczyk
2018-04-13 8:17 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Michał Kalbarczyk @ 2018-04-13 8:16 UTC (permalink / raw)
To: buildroot
Hi,
Just figured out that you're creating a PR with gallium R600 driver. I'm
trying do the same thing with RADEONSI driver.
Can you add radeonsi driver to your PR, or should I create separate PR for
that ?
thanks for your help
Micha?.
On Thu, Apr 12, 2018 at 11:31 PM, Thomas Petazzoni <
thomas.petazzoni@bootlin.com> wrote:
> commit: https://git.buildroot.net/buildroot/commit/?id=
> 92fda8761aa8024be53a8edb8c102d1ba6401bce
> branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
>
> Gallium R600 needs libelf when mesa is built with llvm support.
> Because of this, toolchain must use either uClibc or glibc, as
> musl is not currently compatible with elfutils.
>
> This patch solves:
> configure: error: r600 requires libelf when using llvm
>
> Fixes:
>
> http://autobuild.buildroot.org/results/8845ff0f28d3273ebe884126b85cd7
> c4a905d81b/
>
> Signed-off-by: Valentin Korenblit <valentin.korenblit@smile.fr>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ---
> package/mesa3d/Config.in | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
> index 1476b39acc..bd3d050e29 100644
> --- a/package/mesa3d/Config.in
> +++ b/package/mesa3d/Config.in
> @@ -97,13 +97,23 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU
> config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600
> bool "Gallium Radeon R600 driver"
> depends on BR2_i386 || BR2_x86_64
> + depends on !BR2_PACKAGE_MESA3D_LLVM || \
> + (BR2_PACKAGE_MESA3D_LLVM && (BR2_TOOLCHAIN_USES_UCLIBC || \
> + BR2_TOOLCHAIN_USES_GLIBC)) # elfutils
> select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
> select BR2_PACKAGE_LIBDRM_RADEON
> select BR2_PACKAGE_LLVM_AMDGPU if BR2_PACKAGE_MESA3D_LLVM
> + select BR2_PACKAGE_ELFUTILS if BR2_PACKAGE_MESA3D_LLVM
> select BR2_PACKAGE_MESA3D_NEEDS_XA
> help
> Driver for ATI/AMD Radeon R600/R700/HD5000/HD6000 GPUs.
>
> +# R600 needs libelf when Mesa3D is built with LLVM support
> +# musl is not currently compatible with elfutils
> +comment "R600 driver needs a uClibc or glibc toolchain when llvm is
> enabled"
> + depends on BR2_PACKAGE_MESA3D_LLVM
> + depends on !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
> +
> config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA
> bool "Gallium vmware svga driver"
> depends on BR2_i386 || BR2_x86_64
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180413/d89ab868/attachment.html>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [git commit] package/mesa3d: add dependency on elfutils for R600 with LLVM
2018-04-13 8:16 ` Michał Kalbarczyk
@ 2018-04-13 8:17 ` Thomas Petazzoni
2018-04-13 8:22 ` Romain Naour
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2018-04-13 8:17 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 13 Apr 2018 10:16:19 +0200, Micha? Kalbarczyk wrote:
> Just figured out that you're creating a PR with gallium R600 driver. I'm
> trying do the same thing with RADEONSI driver.
> Can you add radeonsi driver to your PR, or should I create separate PR for
> that ?
We don't do "PR" in Buildroot, we send patches over e-mail. I'm not
sure Valentin has the hardware to test RadeonSI, so if you're
interested by RadeonSI, please send your patches :-)
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [git commit] package/mesa3d: add dependency on elfutils for R600 with LLVM
2018-04-13 8:17 ` Thomas Petazzoni
@ 2018-04-13 8:22 ` Romain Naour
0 siblings, 0 replies; 4+ messages in thread
From: Romain Naour @ 2018-04-13 8:22 UTC (permalink / raw)
To: buildroot
Hi Thomas, Michal,
Le 13/04/2018 ? 10:17, Thomas Petazzoni a ?crit?:
> Hello,
>
> On Fri, 13 Apr 2018 10:16:19 +0200, Micha? Kalbarczyk wrote:
>
>> Just figured out that you're creating a PR with gallium R600 driver. I'm
>> trying do the same thing with RADEONSI driver.
>> Can you add radeonsi driver to your PR, or should I create separate PR for
>> that ?
>
> We don't do "PR" in Buildroot, we send patches over e-mail. I'm not
> sure Valentin has the hardware to test RadeonSI, so if you're
> interested by RadeonSI, please send your patches :-)
I confirm that Valentin doesn't have the hardware to test RadeonSI, me neither.
Michal, you're welcome to send patches to add RadeonSI support. I'll review them.
Best regards,
Romain
>
> Thanks!
>
> Thomas
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-04-13 8:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-12 21:31 [Buildroot] [git commit] package/mesa3d: add dependency on elfutils for R600 with LLVM Thomas Petazzoni
2018-04-13 8:16 ` Michał Kalbarczyk
2018-04-13 8:17 ` Thomas Petazzoni
2018-04-13 8:22 ` Romain Naour
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.