libdrm: bump and add experimental ARM framebuffer support
authorSpenser Gilliland <spenser@gillilanding.com>
Fri, 6 Sep 2013 04:25:15 +0000 (23:25 -0500)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 20 Sep 2013 08:41:01 +0000 (10:41 +0200)
[Peter: adjust intel/ati drivers to match]
Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/libdrm/Config.in
package/libdrm/libdrm.mk
package/x11r7/xdriver_xf86-video-ati/Config.in
package/x11r7/xdriver_xf86-video-intel/Config.in

index 8bf676b9de533f32ca23bf67d577d8ce4f18316f..533e9858342a41ff7ed0c44c2d54edbb4d2e7c23 100644 (file)
@@ -1,22 +1,68 @@
 config BR2_PACKAGE_LIBDRM
        bool "libdrm"
+       select BR2_PACKAGE_XLIB_LIBPTHREAD_STUBS
        depends on BR2_PACKAGE_XORG7
        depends on BR2_LARGEFILE
-       select BR2_PACKAGE_XPROTO_GLPROTO
-       select BR2_PACKAGE_XPROTO_XF86VIDMODEPROTO
-       select BR2_PACKAGE_XLIB_LIBXXF86VM
-       select BR2_PACKAGE_XLIB_LIBXMU
-       select BR2_PACKAGE_XLIB_LIBPCIACCESS
-       select BR2_PACKAGE_XPROTO_DRI2PROTO
-       select BR2_PACKAGE_XLIB_LIBPTHREAD_STUBS
-       # libatomic_ops is only available on a subset of the supported
-       # architectures, and we make the assumption that the intel
-       # driver can only be used on x86 and x86_64 machines.
-       select BR2_PACKAGE_LIBATOMIC_OPS if (BR2_PACKAGE_XDRIVER_XF86_VIDEO_INTEL && (BR2_i386 || BR2_x86_64))
        help
          Direct Rendering Manager
 
          http://dri.freedesktop.org/libdrm/
 
+if BR2_PACKAGE_LIBDRM
+
+menu "DRM Drivers"
+
+config BR2_PACKAGE_LIBDRM_INTEL
+       bool "intel"
+       select BR2_PACKAGE_LIBATOMIC_OPS
+       select BR2_PACKAGE_XLIB_LIBPCIACCESS
+       depends on BR2_i386 || BR2_x86_64
+       help
+         installs intel graphics driver
+
+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
+
+config BR2_PACKAGE_LIBDRM_OMAP
+       bool "omap (experimental)"
+       depends on BR2_arm
+       help
+         install the TI OMAP driver using an experimental API.
+
+config BR2_PACKAGE_LIBDRM_EXYNOS
+       bool "exynos (experimental)"
+       depends on BR2_arm
+       help
+         installs Samsung Exynos driver using an experimental API.
+
+config BR2_PACKAGE_LIBDRM_FREEDRENO
+       bool "freedreno (experimental)"
+       depends on BR2_arm
+       help
+         install Qualcomm Snapdragon driver using an experimental API.
+
+endmenu
+
+endif
+
 comment "libdrm requires a toolchain with LARGEFILE support"
        depends on BR2_PACKAGE_XORG7 && !BR2_LARGEFILE
index d3d2b2d7ab952d1e1f55798b6f019abc18c8047e..697cd2fde79676b296d2980fa6b3f537d1d1cfb2 100644 (file)
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBDRM_VERSION = 2.4.38
+LIBDRM_VERSION = 2.4.46
 LIBDRM_SOURCE = libdrm-$(LIBDRM_VERSION).tar.bz2
 LIBDRM_SITE = http://dri.freedesktop.org/libdrm/
 LIBDRM_LICENSE = MIT
@@ -12,26 +12,59 @@ LIBDRM_LICENSE = MIT
 LIBDRM_INSTALL_STAGING = YES
 
 LIBDRM_DEPENDENCIES = \
-       xproto_glproto \
-       xproto_xf86vidmodeproto \
-       xlib_libXxf86vm \
-       xlib_libXmu \
-       xlib_libpciaccess \
-       xproto_dri2proto \
        xlib_libpthread-stubs \
        host-pkgconf
 
-ifeq ($(BR2_PACKAGE_XDRIVER_XF86_VIDEO_INTEL),y)
+LIBDRM_CONF_OPT = \
+       --disable-cairo-tests \
+       --disable-manpages
+
+ifeq ($(BR2_PACKAGE_LIBDRM_INTEL),y)
 LIBDRM_CONF_OPT += --enable-intel
-LIBDRM_DEPENDENCIES += libatomic_ops
+LIBDRM_DEPENDENCIES += libatomic_ops xlib_libpciaccess
 else
 LIBDRM_CONF_OPT += --disable-intel
 endif
 
-ifneq ($(BR2_PACKAGE_XDRIVER_XF86_VIDEO_ATI),y)
+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 += --enable-vmwgfx
+endif
+
+ifeq ($(BR2_PACKAGE_LIBDRM_OMAP),y)
+LIBDRM_CONF_OPT += --enable-omap-experimental-api
+else
+LIBDRM_CONF_OPT += --disable-omap-experimental-api
+endif
+
+ifeq ($(BR2_PACKAGE_LIBDRM_EXYNOS),y)
+LIBDRM_CONF_OPT += --enable-exynos-experimental-api
+else
+LIBDRM_CONF_OPT += --disable-exynos-experimental-api
+endif
+
+ifeq ($(BR2_PACKAGE_LIBDRM_FREEDRENO),y)
+LIBDRM_CONF_OPT += --enable-freedreno-experimental-api
+else
+LIBDRM_CONF_OPT += --disable-freedreno-experimental-api
+endif
+
 ifeq ($(BR2_PACKAGE_UDEV),y)
 LIBDRM_CONF_OPT += --enable-udev
 LIBDRM_DEPENDENCIES += udev
index 19bed3c1e0b4107d3f39d851cf0f5baa0994a7af..3c0cac36c50fb5a338503fc43af0cf85503b7ce6 100644 (file)
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_XDRIVER_XF86_VIDEO_ATI
        bool "xf86-video-ati"
        select BR2_PACKAGE_LIBDRM
+       select BR2_PACKAGE_LIBDRM_RADEON
        select BR2_PACKAGE_MESA3D
        select BR2_PACKAGE_XPROTO_FONTSPROTO
        select BR2_PACKAGE_XPROTO_GLPROTO
index c972ce141e5b3348f42e162a88e23a8c8bc4a4e4..83b714a433901478a3367a9e629fb18a3efd88dd 100644 (file)
@@ -6,6 +6,7 @@ config BR2_PACKAGE_XDRIVER_XF86_VIDEO_INTEL
        select BR2_PACKAGE_XPROTO_XPROTO
        select BR2_PACKAGE_XLIB_LIBPCIACCESS
        select BR2_PACKAGE_LIBDRM
+       select BR2_PACKAGE_LIBDRM_INTEL
        select BR2_PACKAGE_MESA3D
        depends on (BR2_i386 || BR2_x86_64)
        help