xdriver_xf86-video-fbturbo: new package
authorScott Fan <fancp2007@gmail.com>
Thu, 30 Jul 2015 22:59:07 +0000 (00:59 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 3 Oct 2015 17:38:22 +0000 (19:38 +0200)
Add the fbturbo video driver, which is based on xf86-video-fbdev (with
none of the original features stripped), primarily optimized for the
devices powered by the Allwinner SoC (A10, A13, A20).

https://github.com/ssvb/xf86-video-fbturbo/

Signed-off-by: Scott Fan <fancp2007@gmail.com>
[yann.morin.1998@free.fr: strip help text to the basics only]
[Peter: needs libdrm/pixman, add patch to drop libdri2 dependency
reformat and add optional libpciaccess support]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/x11r7/Config.in
package/x11r7/xdriver_xf86-video-fbturbo/0001-sunxi_x_g2d-drop-unused-dri2-include.patch [new file with mode: 0644]
package/x11r7/xdriver_xf86-video-fbturbo/Config.in [new file with mode: 0644]
package/x11r7/xdriver_xf86-video-fbturbo/xdriver_xf86-video-fbturbo.mk [new file with mode: 0644]

index 859e8956c84bf13ec390f33a0fc86ab6f742a1db..4e996fc7840b47b993e5eb623f5197d6b314a09e 100644 (file)
@@ -162,6 +162,7 @@ if BR2_PACKAGE_XORG7
                source package/x11r7/xdriver_xf86-video-cirrus/Config.in
                source package/x11r7/xdriver_xf86-video-dummy/Config.in
                source package/x11r7/xdriver_xf86-video-fbdev/Config.in
+               source package/x11r7/xdriver_xf86-video-fbturbo/Config.in
                source package/x11r7/xdriver_xf86-video-geode/Config.in
                source package/x11r7/xdriver_xf86-video-glide/Config.in
                source package/x11r7/xdriver_xf86-video-glint/Config.in
diff --git a/package/x11r7/xdriver_xf86-video-fbturbo/0001-sunxi_x_g2d-drop-unused-dri2-include.patch b/package/x11r7/xdriver_xf86-video-fbturbo/0001-sunxi_x_g2d-drop-unused-dri2-include.patch
new file mode 100644 (file)
index 0000000..8b4e817
--- /dev/null
@@ -0,0 +1,28 @@
+From 232c5b6924652f65ef5c047754e84b87b5fc6ac8 Mon Sep 17 00:00:00 2001
+From: Peter Korsgaard <peter@korsgaard.com>
+Date: Sat, 3 Oct 2015 19:01:38 +0200
+Subject: [PATCH] sunxi_x_g2d: drop unused dri2 include
+
+The driver doesn't use DRI for anything.
+
+[Upstream-status: submitted (https://github.com/ssvb/xf86-video-fbturbo/pull/45)]
+Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
+---
+ src/sunxi_x_g2d.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/src/sunxi_x_g2d.c b/src/sunxi_x_g2d.c
+index d826027..8888abe 100644
+--- a/src/sunxi_x_g2d.c
++++ b/src/sunxi_x_g2d.c
+@@ -31,7 +31,6 @@
+ #include "xf86_OSproc.h"
+ #include "xf86.h"
+ #include "xf86drm.h"
+-#include "dri2.h"
+ #include "damage.h"
+ #include "fb.h"
+ #include "gcstruct.h"
+-- 
+2.1.4
+
diff --git a/package/x11r7/xdriver_xf86-video-fbturbo/Config.in b/package/x11r7/xdriver_xf86-video-fbturbo/Config.in
new file mode 100644 (file)
index 0000000..8fec5c2
--- /dev/null
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_XDRIVER_XF86_VIDEO_FBTURBO
+       bool "xf86-video-fbturbo"
+       select BR2_PACKAGE_LIBDRM
+       select BR2_PACKAGE_PIXMAN
+       select BR2_PACKAGE_XPROTO_FONTSPROTO
+       select BR2_PACKAGE_XPROTO_RANDRPROTO
+       select BR2_PACKAGE_XPROTO_RENDERPROTO
+       select BR2_PACKAGE_XPROTO_VIDEOPROTO
+       select BR2_PACKAGE_XPROTO_XPROTO
+       select BR2_PACKAGE_XPROTO_XF86DRIPROTO
+       help
+         video driver, primarily optimized for the devices powered
+         by the Allwinner SoC (A10, A13, A20). It can use some of
+         the 2D/3D hardware acceleration features.
+
+         https://github.com/ssvb/xf86-video-fbturbo
diff --git a/package/x11r7/xdriver_xf86-video-fbturbo/xdriver_xf86-video-fbturbo.mk b/package/x11r7/xdriver_xf86-video-fbturbo/xdriver_xf86-video-fbturbo.mk
new file mode 100644 (file)
index 0000000..991b00e
--- /dev/null
@@ -0,0 +1,35 @@
+################################################################################
+#
+# xdriver_xf86-video-fbturbo
+#
+################################################################################
+
+XDRIVER_XF86_VIDEO_FBTURBO_VERSION = 0.4.0
+XDRIVER_XF86_VIDEO_FBTURBO_SITE = $(call github,ssvb,xf86-video-fbturbo,$(XDRIVER_XF86_VIDEO_FBTURBO_VERSION))
+XDRIVER_XF86_VIDEO_FBTURBO_LICENSE = MIT
+XDRIVER_XF86_VIDEO_FBTURBO_LICENSE_FILES = COPYING
+XDRIVER_XF86_VIDEO_FBTURBO_DEPENDENCIES = \
+       xserver_xorg-server \
+       libdrm \
+       pixman \
+       xproto_fontsproto \
+       xproto_randrproto \
+       xproto_renderproto \
+       xproto_videoproto \
+       xproto_xproto \
+       xproto_xf86driproto
+
+ifeq ($(BR2_PACKAGE_LIBPCIACCESS),y)
+XDRIVER_XF86_VIDEO_FBTURBO_DEPENDENCIES += libpciaccess
+XDRIVER_XF86_VIDEO_FBTURBO_CONF_OPTS += --enable-pciaccess
+else
+XDRIVER_XF86_VIDEO_FBTURBO_CONF_OPTS += --disable-pciaccess
+endif
+
+define XDRIVER_XF86_VIDEO_FBTURBO_INSTALL_CONF_FILE
+        $(INSTALL) -m 0644 -D $(@D)/xorg.conf $(TARGET_DIR)/etc/X11/xorg.conf
+endef
+
+XDRIVER_XF86_VIDEO_FBTURBO_POST_INSTALL_TARGET_HOOKS += XDRIVER_XF86_VIDEO_FBTURBO_INSTALL_CONF_FILE
+
+$(eval $(autotools-package))