diff options
author | Paulius Zaleckas <paulius.zaleckas@gmail.com> | 2010-04-14 15:31:02 +0300 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-04-14 17:04:47 +0200 |
commit | c8b4f397e623c6a8672667866b2c541bf4d10cd6 (patch) | |
tree | fdf03a5f102ca72d3e4ccdff7a6f0da95ed50714 | |
parent | 71a041c852df27f7400472c7ba4bbb62615994b5 (diff) | |
download | buildroot-novena-c8b4f397e623c6a8672667866b2c541bf4d10cd6.tar.gz buildroot-novena-c8b4f397e623c6a8672667866b2c541bf4d10cd6.zip |
libdrm: enable/disable features according to driver selection
Also cleanup autotools symbols and add libatomic_ops dependency
for Intel part.
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r-- | package/libdrm/Config.in | 1 | ||||
-rw-r--r-- | 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 445eb72e1..ab8c2d883 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 791e67dcf..38cb636fd 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)) |