]> code.ossystems Code Review - meta-freescale.git/commitdiff
xf86-video-imxfb-vivante: Add Vivante Xorg driver for iMX SoCs
authorAdrian Alonso <aalonso00@gmail.com>
Fri, 9 Nov 2012 03:43:57 +0000 (21:43 -0600)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 23 Nov 2012 11:23:27 +0000 (09:23 -0200)
Change-Id: I2b9a107b1fe6d50f3f0aa47a0df3115d7a8bc650
Signed-off-by: Adrian Alonso <aalonso00@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/Makefile.am-remove-prefixed-include-path.patch [new file with mode: 0644]
meta-fsl-arm/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_12.09.01.bb [new file with mode: 0644]

diff --git a/meta-fsl-arm/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/Makefile.am-remove-prefixed-include-path.patch b/meta-fsl-arm/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/Makefile.am-remove-prefixed-include-path.patch
new file mode 100644 (file)
index 0000000..4354ae4
--- /dev/null
@@ -0,0 +1,29 @@
+From 230acf40ab9ed8ab5f291ff6644160b3f3859d69 Mon Sep 17 00:00:00 2001
+From: Adrian Alonso <aalonso00@gmail.com>
+Date: Fri, 15 Jun 2012 00:46:28 -0500
+Subject: [PATCH] Makefile.am remove prefixed include path
+
+* Remove prefixed include path, use ${STAGING_INCDIR}
+  to locate drm headers.
+
+Signed-off-by: Adrian Alonso <aalonso00@gmail.com>
+---
+ src/Makefile.am |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 820278b..4acdf6a 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -50,7 +50,7 @@ VIVSRC_CFLAGS = \
+        -I./vivante_util \
+        -I./vivante_exa
+-AM_CFLAGS = @XORG_CFLAGS@ $(VIVSRC_CFLAGS) -I/usr/include/drm
++AM_CFLAGS = @XORG_CFLAGS@ $(VIVSRC_CFLAGS) ${CFLAGS}
+ vivante_drv_la_LTLIBRARIES = vivante_drv.la
+ vivante_drv_la_LDFLAGS = -module -avoid-version
+ vivante_drv_ladir = @moduledir@/drivers
+-- 
+1.7.7.6
+
diff --git a/meta-fsl-arm/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_12.09.01.bb b/meta-fsl-arm/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_12.09.01.bb
new file mode 100644 (file)
index 0000000..e319199
--- /dev/null
@@ -0,0 +1,30 @@
+# Copyright (C) 2012 Freescale Semiconductor
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+require recipes-graphics/xorg-driver/xorg-driver-video.inc
+
+DEPENDS += "virtual/libgal-x11 gpu-viv-bin-mx6q"
+
+LIC_FILES_CHKSUM = "file://src/vivante_fbdev/vivante.h;endline=19;md5=93a322f91ec495569dcbcfbb2a95454a"
+
+SRC_URI = "${FSL_MIRROR}/xserver-xorg-video-imx-viv-${PV}.tar.gz \
+           file://Makefile.am-remove-prefixed-include-path.patch"
+SRC_URI[md5sum] = "1948119717aa01bed1f630be9ee7a708"
+SRC_URI[sha256sum] = "5b3be4b426d2d2803554df9e4d8919d1f9d17659c3153c71c6529f43c37e6ed1"
+
+EXTRA_OECONF_armv7a = " --enable-neon --disable-static"
+CFLAGS += " -I${STAGING_INCDIR}/xorg -I${STAGING_INCDIR}/drm"
+LDFLAGS += "-lm -ldl -lGAL-x11"
+
+S = "${WORKDIR}/xserver-xorg-video-imx-viv-${PV}"
+
+do_install_append () {
+       install -d ${D}${includedir}
+       cp -axr ${S}/src/vivante_gal/vivante_priv.h ${D}${includedir}
+       find ${D}${includedir} -type f -exec chmod 660 {} \;
+}
+
+RDEPENDS_${PN} += "xserver-xorg-module-exa"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+COMPATIBLE_MACHINE = "(mx6)"