libdrm: Remove dependency towards X11
authorBernd Kuhls <berndkuhls@hotmail.com>
Sat, 1 Mar 2014 15:41:11 +0000 (16:41 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 2 Mar 2014 14:00:10 +0000 (15:00 +0100)
Using this defconfig

BR2_x86_pentium_mmx=y
BR2_ENABLE_DEBUG=y
BR2_OPTIMIZE_2=y
BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
# BR2_UCLIBC_INSTALL_UTILS is not set
BR2_BINUTILS_VERSION_2_23_2=y
BR2_GCC_VERSION_4_8_X=y
BR2_PACKAGE_LIBDRM=y
BR2_PACKAGE_LIBDRM_RADEON=y
BR2_PACKAGE_LIBDRM_NOUVEAU=y
BR2_PACKAGE_LIBDRM_VMWGFX=y

libdrm (w/o Intel API) compiles without BR2_PACKAGE_LIBATOMIC_OPS and without
BR2_PACKAGE_XLIB_LIBPCIACCESS, so USE_WCHAR, TOOLCHAIN_HAS_THREADS and
!BR2_PREFER_STATIC_LIB, previously added by the Xorg dependency, do not seem
to be necessary for libdrm at all.

Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com>
Signed-Off-By: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libdrm/Config.in
package/libdrm/libdrm.mk

index 4d7646bec4669606cb3d5e4be6a8bb14f4303fc1..7192e94a1b469a1190b7fd57ef43cdfdb7768a17 100644 (file)
@@ -1,7 +1,6 @@
 config BR2_PACKAGE_LIBDRM
        bool "libdrm"
        select BR2_PACKAGE_LIBPTHREAD_STUBS
-       depends on BR2_PACKAGE_XORG7
        depends on BR2_LARGEFILE
        help
          Direct Rendering Manager
@@ -14,6 +13,7 @@ menu "DRM Drivers"
 
 config BR2_PACKAGE_LIBDRM_INTEL
        bool "intel"
+       depends on BR2_PACKAGE_XORG7
        select BR2_PACKAGE_LIBATOMIC_OPS
        select BR2_PACKAGE_XLIB_LIBPCIACCESS
        depends on BR2_i386 || BR2_x86_64
@@ -22,22 +22,18 @@ config BR2_PACKAGE_LIBDRM_INTEL
 
 config BR2_PACKAGE_LIBDRM_RADEON
        bool "radeon"
-       select BR2_PACKAGE_LIBATOMIC_OPS
-       select BR2_PACKAGE_XLIB_LIBPCIACCESS
        depends on BR2_i386 || BR2_x86_64
        help
          install AMD/ATI graphics driver
 
 config BR2_PACKAGE_LIBDRM_NOUVEAU
        bool "nouveau"
-       select BR2_PACKAGE_XLIB_LIBPCIACCESS
        depends on BR2_i386 || BR2_x86_64
        help
          install Nvidia graphics driver
 
 config BR2_PACKAGE_LIBDRM_VMWGFX
        bool "vmwgfx"
-       select BR2_PACKAGE_XLIB_LIBPCIACCESS
        depends on BR2_i386 || BR2_x86_64
        help
          installs Vmware graphics driver
@@ -65,5 +61,4 @@ endmenu
 endif
 
 comment "libdrm needs a toolchain w/ largefile"
-       depends on BR2_PACKAGE_XORG7
        depends on !BR2_LARGEFILE
index b9b7a58f6b190443cd85f11cd050a63e0c7fc8ad..bc1aa898377b30e54ce3e8462786a27e5be60cd8 100644 (file)
@@ -28,21 +28,18 @@ endif
 
 ifeq ($(BR2_PACKAGE_LIBDRM_RADEON),y)
 LIBDRM_CONF_OPT += --enable-radeon
-LIBDRM_DEPENDENCIES += xlib_libpciaccess
 else
 LIBDRM_CONF_OPT += --disable-radeon
 endif
 
 ifeq ($(BR2_PACKAGE_LIBDRM_NOUVEAU),y)
 LIBDRM_CONF_OPT += --enable-nouveau
-LIBDRM_DEPENDENCIES += xlib_libpciaccess
 else
 LIBDRM_CONF_OPT += --disable-nouveau
 endif
 
 ifeq ($(BR2_PACKAGE_LIBDRM_VMWGFX),y)
 LIBDRM_CONF_OPT += --enable-vmwgfx
-LIBDRM_DEPENDENCIES += xlib_libpciaccess
 else
 LIBDRM_CONF_OPT += --disable-vmwgfx
 endif