From: Paulius Zaleckas <paulius.zaleckas@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] libdrm: enable/disable features according to driver selection
Date: Wed, 14 Apr 2010 15:31:02 +0300 [thread overview]
Message-ID: <20100414123102.17586.38501.stgit@localhost.localdomain> (raw)
In-Reply-To: <20100414122805.17586.64124.stgit@localhost.localdomain>
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))
next prev parent reply other threads:[~2010-04-14 12:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2010-04-14 15:05 ` [Buildroot] [PATCH 0/2] Couple fixes for X11 Intel driver compilation Peter Korsgaard
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=20100414123102.17586.38501.stgit@localhost.localdomain \
--to=paulius.zaleckas@gmail.com \
--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