Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Waldemar Brodkorb <wbx@openadk.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] libdrm: disable drivers for sparcv8
Date: Tue, 19 Jan 2016 08:03:04 +0100	[thread overview]
Message-ID: <20160119070304.GA27854@waldemar-brodkorb.de> (raw)

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/

Disable all sub packages using the DRM drivers.

As SPARC systems normally have SBUS graphic cards and I think nobody
cares about 3D graphics on these machines, all gallium drivers
are disabled for simplification, even if swrast might be used.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
v1 -> v2:
 - disable sub packages using libdrm drivers, suggested by Thomas Petazzoni

---
 package/libdrm/Config.in                           |    1 +
 package/mesa3d/Config.in                           |    2 ++
 package/x11r7/xdriver_xf86-video-ati/Config.in     |    1 +
 package/x11r7/xdriver_xf86-video-nouveau/Config.in |    1 +
 4 files changed, 5 insertions(+)

diff --git a/package/libdrm/Config.in b/package/libdrm/Config.in
index 445a85b..bacbeac 100644
--- a/package/libdrm/Config.in
+++ b/package/libdrm/Config.in
@@ -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"
diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
index 8c72a3d..3f4fbd1 100644
--- a/package/mesa3d/Config.in
+++ b/package/mesa3d/Config.in
@@ -44,6 +44,7 @@ config BR2_PACKAGE_MESA3D_NEEDS_XA
 	bool
 
 comment "Gallium drivers"
+depends on !BR2_sparc_v8 # drivers need atomic ops
 
 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU
 	bool "Gallium nouveau driver"
@@ -93,6 +94,7 @@ comment "DRI drivers need X.Org"
 if BR2_PACKAGE_XORG7
 
 comment "DRI drivers"
+depends on !BR2_sparc_v8 # drivers need atomic ops
 
 config BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST
 	bool "DRI swrast driver"
diff --git a/package/x11r7/xdriver_xf86-video-ati/Config.in b/package/x11r7/xdriver_xf86-video-ati/Config.in
index 55be603..c4afde6 100644
--- a/package/x11r7/xdriver_xf86-video-ati/Config.in
+++ b/package/x11r7/xdriver_xf86-video-ati/Config.in
@@ -2,6 +2,7 @@ config BR2_PACKAGE_XDRIVER_XF86_VIDEO_ATI
 	bool "xf86-video-ati"
 	depends on BR2_PACKAGE_MESA3D
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm -> libpthread-stubs
+	depends on !BR2_sparc_v8 # drivers need atomic ops
 	select BR2_PACKAGE_LIBDRM
 	select BR2_PACKAGE_LIBDRM_RADEON
 	select BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON
diff --git a/package/x11r7/xdriver_xf86-video-nouveau/Config.in b/package/x11r7/xdriver_xf86-video-nouveau/Config.in
index 7e756e2..d671e94 100644
--- a/package/x11r7/xdriver_xf86-video-nouveau/Config.in
+++ b/package/x11r7/xdriver_xf86-video-nouveau/Config.in
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_XDRIVER_XF86_VIDEO_NOUVEAU
 	bool "xf86-video-nouveau"
 	depends on BR2_PACKAGE_MESA3D
+	depends on !BR2_sparc_v8 # drivers need atomic ops
 	select BR2_PACKAGE_MESA3D_DRI_DRIVER_NOUVEAU
 	select BR2_PACKAGE_LIBDRM
 	select BR2_PACKAGE_LIBDRM_NOUVEAU
-- 
1.7.10.4

             reply	other threads:[~2016-01-19  7:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-19  7:03 Waldemar Brodkorb [this message]
2016-05-26 12:01 ` [Buildroot] [PATCH v2] libdrm: disable drivers for sparcv8 Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160119070304.GA27854@waldemar-brodkorb.de \
    --to=wbx@openadk.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox