Skip to contentSkip to conversation

libdrm: disable drivers for sparcv8

PATCH Superseded Waldemar Brodkorb 2 participants 2 messages Jan 18, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libdrm: disable drivers for sparcv8

The drivers use atomic ops as CAS, which fails
to compile for sparcv8, but works fine for leon3.

Fixes following autobuild error:
http://autobuild.buildroot.net/results/fa0ac44d3c7953b2e2afa03cd7570d8a5d49fcc4/

---
 package/libdrm/Config.in |    1 +
 1 file changed, 1 insertion(+)
package/libdrm/Config.in +1 -0
index 445a85b..bacbeac 100644
@@ -15,6 +15,7 @@ config BR2_PACKAGE_LIBDRM_INSTALL_TESTS
 	  This option allows to install the libdrm test programs.
 
 menu "DRM Drivers"
+depends on !BR2_sparc_v8 # drivers need atomic ops
 
 config BR2_PACKAGE_LIBDRM_INTEL
 	bool "intel"
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 libdrm: disable drivers for sparcv8

Waldemar,

Quoted 16 lines · Waldemar Brodkorb

The drivers use atomic ops as CAS, which fails
to compile for sparcv8, but works fine for leon3.

Fixes following autobuild error:
http://autobuild.buildroot.net/results/fa0ac44d3c7953b2e2afa03cd7570d8a5d49fcc4/

---
 package/libdrm/Config.in |    1 +
 1 file changed, 1 insertion(+)
package/libdrm/Config.in +0 -0
index 445a85b..bacbeac 100644

package/libdrm/Config.in config BR2_PACKAGE_LIBDRM_INSTALL_TESTS · line 18

Quoted 4 lines
package/libdrm/Config.in +1 -0
@@ -15,6 +15,7 @@ config BR2_PACKAGE_LIBDRM_INSTALL_TESTS
 	  This option allows to install the libdrm test programs.
 
 menu "DRM Drivers"
+depends on !BR2_sparc_v8 # drivers need atomic ops

What about the packages that select some libdrm drivers? I'm thinking for example of:

config BR2_PACKAGE_MESA3D_DRI_DRIVER_NOUVEAU
bool "DRI nouveau driver"
select BR2_PACKAGE_MESA3D_DRI_DRIVER
select BR2_PACKAGE_LIBDRM_NOUVEAU
help
Support for Nvidia-based GPUs.

config BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON
bool "DRI radeon driver"
select BR2_PACKAGE_MESA3D_DRI_DRIVER select BR2_PACKAGE_LIBDRM_RADEON help
Legacy Radeon driver for R100 series GPUs.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com