Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/2] Couple fixes for X11 Intel driver compilation
@ 2010-04-14 12:30 Paulius Zaleckas
  2010-04-14 12:30 ` [Buildroot] [PATCH 1/2] Add libatomic_ops 1.2 needed by libdrm Intel support Paulius Zaleckas
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Paulius Zaleckas @ 2010-04-14 12:30 UTC (permalink / raw)
  To: buildroot

X11 Intel driver compilation was broken since libdrm had no
support for Intel driver enabled. It was disabled because libdrm
needs libatomic_ops library.

---

Paulius Zaleckas (2):
      libdrm: enable/disable features according to driver selection
      Add libatomic_ops 1.2 needed by libdrm Intel support


 package/Config.in                      |    1 +
 package/libatomic_ops/Config.in        |    4 ++++
 package/libatomic_ops/libatomic_ops.mk |   12 ++++++++++++
 package/libdrm/Config.in               |    1 +
 package/libdrm/libdrm.mk               |   13 +++++++++++--
 5 files changed, 29 insertions(+), 2 deletions(-)
 create mode 100644 package/libatomic_ops/Config.in
 create mode 100644 package/libatomic_ops/libatomic_ops.mk

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

* [Buildroot] [PATCH 1/2] Add libatomic_ops 1.2 needed by libdrm Intel support
  2010-04-14 12:30 [Buildroot] [PATCH 0/2] Couple fixes for X11 Intel driver compilation Paulius Zaleckas
@ 2010-04-14 12:30 ` Paulius Zaleckas
  2010-04-14 12:31 ` [Buildroot] [PATCH 2/2] libdrm: enable/disable features according to driver selection Paulius Zaleckas
  2010-04-14 15:05 ` [Buildroot] [PATCH 0/2] Couple fixes for X11 Intel driver compilation Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Paulius Zaleckas @ 2010-04-14 12:30 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
---

 package/Config.in                      |    1 +
 package/libatomic_ops/Config.in        |    4 ++++
 package/libatomic_ops/libatomic_ops.mk |   12 ++++++++++++
 3 files changed, 17 insertions(+), 0 deletions(-)
 create mode 100644 package/libatomic_ops/Config.in
 create mode 100644 package/libatomic_ops/libatomic_ops.mk

diff --git a/package/Config.in b/package/Config.in
index 2501903..25cfdb9 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -300,6 +300,7 @@ source "package/libupnp/Config.in"
 endmenu
 
 menu "Other"
+source "package/libatomic_ops/Config.in"
 source "package/libcap/Config.in"
 source "package/libdaemon/Config.in"
 source "package/libelf/Config.in"
diff --git a/package/libatomic_ops/Config.in b/package/libatomic_ops/Config.in
new file mode 100644
index 0000000..b9f14d1
--- /dev/null
+++ b/package/libatomic_ops/Config.in
@@ -0,0 +1,4 @@
+config BR2_PACKAGE_LIBATOMIC_OPS
+	bool "libatomic_ops"
+	help
+	  Atomic operations library
diff --git a/package/libatomic_ops/libatomic_ops.mk b/package/libatomic_ops/libatomic_ops.mk
new file mode 100644
index 0000000..f26a5fa
--- /dev/null
+++ b/package/libatomic_ops/libatomic_ops.mk
@@ -0,0 +1,12 @@
+#############################################################
+#
+# Atomic_ops library
+#
+#############################################################
+
+LIBATOMIC_OPS_VERSION = 1.2
+LIBATOMIC_OPS_SOURCE = libatomic_ops-$(LIBATOMIC_OPS_VERSION).tar.gz
+LIBATOMIC_OPS_SITE = http://www.hpl.hp.com/research/linux/atomic_ops/download
+LIBATOMIC_OPS_INSTALL_STAGING = YES
+
+$(eval $(call AUTOTARGETS,package,libatomic_ops))

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

* [Buildroot] [PATCH 2/2] libdrm: enable/disable features according to driver selection
  2010-04-14 12:30 [Buildroot] [PATCH 0/2] Couple fixes for X11 Intel driver compilation Paulius Zaleckas
  2010-04-14 12:30 ` [Buildroot] [PATCH 1/2] Add libatomic_ops 1.2 needed by libdrm Intel support Paulius Zaleckas
@ 2010-04-14 12:31 ` Paulius Zaleckas
  2010-04-14 15:05 ` [Buildroot] [PATCH 0/2] Couple fixes for X11 Intel driver compilation Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Paulius Zaleckas @ 2010-04-14 12:31 UTC (permalink / raw)
  To: buildroot

Also cleanup autotools symbols and add libatomic_ops dependency
for Intel part.

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
---

 package/libdrm/Config.in |    1 +
 package/libdrm/libdrm.mk |   13 +++++++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/package/libdrm/Config.in b/package/libdrm/Config.in
index 445eb72..ab8c2d8 100644
--- a/package/libdrm/Config.in
+++ b/package/libdrm/Config.in
@@ -7,6 +7,7 @@ config BR2_PACKAGE_LIBDRM
 	select BR2_PACKAGE_XLIB_LIBXMU
 	select BR2_PACKAGE_XPROTO_DRI2PROTO
 	select BR2_PACKAGE_PTHREAD_STUBS
+	select BR2_PACKAGE_LIBATOMIC_OPS if BR2_PACKAGE_XDRIVER_XF86_VIDEO_INTEL
 	help
 	  Direct Rendering Manager
 
diff --git a/package/libdrm/libdrm.mk b/package/libdrm/libdrm.mk
index 791e67d..38cb636 100644
--- a/package/libdrm/libdrm.mk
+++ b/package/libdrm/libdrm.mk
@@ -6,11 +6,20 @@
 LIBDRM_VERSION = 2.4.19
 LIBDRM_SOURCE = libdrm-$(LIBDRM_VERSION).tar.bz2
 LIBDRM_SITE = http://dri.freedesktop.org/libdrm/
-LIBDRM_AUTORECONF = NO
 LIBDRM_LIBTOOL_PATCH = NO
 LIBDRM_INSTALL_STAGING = YES
-LIBDRM_INSTALL_TARGET = YES
 
 LIBDRM_DEPENDENCIES = xproto_glproto xproto_xf86vidmodeproto xlib_libXxf86vm xlib_libXmu xproto_dri2proto pthread-stubs
 
+ifeq ($(BR2_PACKAGE_XDRIVER_XF86_VIDEO_INTEL),y)
+LIBDRM_CONF_OPT += --enable-intel
+LIBDRM_DEPENDENCIES += libatomic_ops
+else
+LIBDRM_CONF_OPT += --disable-intel
+endif
+
+ifneq ($(BR2_PACKAGE_XDRIVER_XF86_VIDEO_ATI),y)
+LIBDRM_CONF_OPT += --disable-radeon
+endif
+
 $(eval $(call AUTOTARGETS,package,libdrm))

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

* [Buildroot] [PATCH 0/2] Couple fixes for X11 Intel driver compilation
  2010-04-14 12:30 [Buildroot] [PATCH 0/2] Couple fixes for X11 Intel driver compilation Paulius Zaleckas
  2010-04-14 12:30 ` [Buildroot] [PATCH 1/2] Add libatomic_ops 1.2 needed by libdrm Intel support Paulius Zaleckas
  2010-04-14 12:31 ` [Buildroot] [PATCH 2/2] libdrm: enable/disable features according to driver selection Paulius Zaleckas
@ 2010-04-14 15:05 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2010-04-14 15:05 UTC (permalink / raw)
  To: buildroot

>>>>> "Paulius" == Paulius Zaleckas <paulius.zaleckas@gmail.com> writes:

 Paulius> X11 Intel driver compilation was broken since libdrm had no
 Paulius> support for Intel driver enabled. It was disabled because libdrm
 Paulius> needs libatomic_ops library.

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2010-04-14 15:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-14 12:30 [Buildroot] [PATCH 0/2] Couple fixes for X11 Intel driver compilation Paulius Zaleckas
2010-04-14 12:30 ` [Buildroot] [PATCH 1/2] Add libatomic_ops 1.2 needed by libdrm Intel support Paulius Zaleckas
2010-04-14 12:31 ` [Buildroot] [PATCH 2/2] libdrm: enable/disable features according to driver selection Paulius Zaleckas
2010-04-14 15:05 ` [Buildroot] [PATCH 0/2] Couple fixes for X11 Intel driver compilation Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox