summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2013-01-24 13:30:16 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2013-04-02 10:34:50 -0300
commit718eb95f2044ff45830ee25bb1049b4c3437bae5 (patch)
treea91e81e2eca56f41c12fe28347e31a9a8503c0c7
parent72baac247869e5557c61fed507def004f25a50c0 (diff)
downloadmeta-fsl-arm-718eb95f2044ff45830ee25bb1049b4c3437bae5.tar.gz
xserver-xorg: Add 1.11.4 version as it provides Video ABI 11
The Vivante GPU drivers are not compatible with newer Xorg 1.13 as it introduce some deep changes in video ABI and DRI interface. The best longterm solution is to get new GPU driver releases which are compatible with the new Xorg but in meanwhile we'll keep the working version as alternative. Change-Id: I26a122c371bce1d58a843c419558a0928baec5f6 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/crosscompile.patch22
-rw-r--r--recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/fix_open_max_preprocessor_error.patch15
-rw-r--r--recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/macro_tweak.patch25
-rw-r--r--recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/mips64-compiler.patch29
-rw-r--r--recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/pkgconfig-deps.patch70
-rw-r--r--recipes-graphics/xorg-xserver/xserver-xorg_1.11.4.bb26
6 files changed, 187 insertions, 0 deletions
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/crosscompile.patch b/recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/crosscompile.patch
new file mode 100644
index 0000000..2f98bb8
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/crosscompile.patch
@@ -0,0 +1,22 @@
1Upstream-Status: Inappropriate [configuration]
2
3diff --git a/configure.ac b/configure.ac
4index b3b752c..600500b 100644
5--- a/configure.ac
6+++ b/configure.ac
7@@ -523,13 +523,9 @@ dnl Uses --default-font-path if set, otherwise checks for /etc/X11/fontpath.d,
8 dnl otherwise uses standard subdirectories of FONTROOTDIR. When cross
9 dnl compiling, assume default font path uses standard FONTROOTDIR directories.
10 DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
11-if test "$cross_compiling" != yes; then
12- AC_CHECK_FILE([${sysconfdir}/X11/fontpath.d],
13- [DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d'],
14- [case $host_os in
15+ case $host_os in
16 darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
17- esac])
18-fi
19+ esac
20 AC_ARG_WITH(default-font-path, AS_HELP_STRING([--with-default-font-path=PATH], [Comma separated list of font dirs]),
21 [ FONTPATH="$withval" ],
22 [ FONTPATH="${DEFAULT_FONT_PATH}" ])
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/fix_open_max_preprocessor_error.patch b/recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/fix_open_max_preprocessor_error.patch
new file mode 100644
index 0000000..2f62972
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/fix_open_max_preprocessor_error.patch
@@ -0,0 +1,15 @@
1Upstream-Status: Pending
2
3Index: git/os/osdep.h
4===================================================================
5--- git.orig/os/osdep.h 2008-10-07 18:38:21.000000000 +0100
6+++ git/os/osdep.h 2008-10-07 18:39:36.000000000 +0100
7@@ -92,7 +92,7 @@
8 * like sysconf(_SC_OPEN_MAX) is not supported.
9 */
10
11-#if OPEN_MAX <= 256
12+#if 0
13 #define MAXSOCKS (OPEN_MAX - 1)
14 #else
15 #define MAXSOCKS 256
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/macro_tweak.patch b/recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/macro_tweak.patch
new file mode 100644
index 0000000..ec0eea6
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/macro_tweak.patch
@@ -0,0 +1,25 @@
1This is the revised version of files/macro_tweak.patch for
2xorg-server 1.8.99.904 and newer.
3
4Upstream-Status: Pending
5
6Signed-off-by: Yu Ke <ke.yu@intel.com>
7
8diff --git a/xorg-server.m4 b/xorg-server.m4
9index bdecf62..040fdb8 100644
10--- a/xorg-server.m4
11+++ b/xorg-server.m4
12@@ -28,10 +28,12 @@ dnl
13 # Checks for the $1 define in xorg-server.h (from the sdk). If it
14 # is defined, then add $1 to $REQUIRED_MODULES.
15
16+m4_pattern_allow(PKG_CONFIG_SYSROOT_DIR)
17+
18 AC_DEFUN([XORG_DRIVER_CHECK_EXT],[
19 AC_REQUIRE([PKG_PROG_PKG_CONFIG])
20 SAVE_CFLAGS="$CFLAGS"
21- CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
22+ CFLAGS="$CFLAGS -I$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=sdkdir xorg-server`"
23 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
24 #include "xorg-server.h"
25 #if !defined $1
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/mips64-compiler.patch b/recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/mips64-compiler.patch
new file mode 100644
index 0000000..e6bc95b
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/mips64-compiler.patch
@@ -0,0 +1,29 @@
1on mips64/n64 pointers are 64bit therefore the pointer conversions to int dont work well
2so we end up with incompatible conversion errors
3
4This patch choses the right values for mips64
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8Upstream-Status: Pending
9Index: xorg-server-1.11.2/hw/xfree86/common/compiler.h
10===================================================================
11--- xorg-server-1.11.2.orig/hw/xfree86/common/compiler.h 2012-05-10 12:19:59.485599046 -0700
12+++ xorg-server-1.11.2/hw/xfree86/common/compiler.h 2012-05-10 12:20:53.109602488 -0700
13@@ -104,6 +104,7 @@
14
15 # if !defined(__arm__)
16 # if !defined(__sparc__) && !defined(__sparc) && !defined(__arm32__) && !defined(__nds32__) \
17+ && !defined(__mips64) \
18 && !(defined(__alpha__) && defined(linux)) \
19 && !(defined(__ia64__) && defined(linux)) \
20
21@@ -708,7 +709,7 @@
22 }
23
24 # elif defined(__mips__) || (defined(__arm32__) && !defined(__linux__))
25-# ifdef __arm32__
26+# if defined (__arm32__) || defined (__mips64)
27 # define PORT_SIZE long
28 # else
29 # define PORT_SIZE short
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/pkgconfig-deps.patch b/recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/pkgconfig-deps.patch
new file mode 100644
index 0000000..fee8d76
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xorg-1.11.4/pkgconfig-deps.patch
@@ -0,0 +1,70 @@
1Upstream-Status: Backport
2Signed-off-by: Ross Burton <ross.burton@intel.com>
3
4commit 41d903918a5721e53ed694880eab44170f9717cc
5Author: Jeremy Huddleston <jeremyhu@apple.com>
6Date: Wed Sep 14 13:45:18 2011 -0500
7
8 xorg-server.pc.in: Remove libpciaccess and pixman-1 from Requires
9
10 Every module building against xorg-server does not *Require* pixman nor
11 libpciaccess. If such modules need pixman or pciaccess, they should be
12 depending on them directly rather than inheriting a dependency from
13 xorg-server. To do this, they should use PKG_CHECK_MODULES in configure.ac
14 to check for pixman-1 or pciaccess and include the apporpriate _LIBS variable
15 to the appropriate _LDFLAGS variable in Makefile.am
16
17 This also moves pixman-1 to Requires.private, so CPPFLAGS is set right to
18 to satisfy include dependencies but avoid linking needlessly.
19
20 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
21 Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
22
23diff --git a/configure.ac b/configure.ac
24index 50beb01..4bfa82c 100644
25--- a/configure.ac
26+++ b/configure.ac
27@@ -780,11 +780,6 @@ VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1"
28 WINDOWSWMPROTO="windowswmproto"
29 APPLEWMPROTO="applewmproto >= 1.4"
30
31-dnl Core modules for most extensions, et al.
32-SDK_REQUIRED_MODULES="[xproto >= 7.0.22] [randrproto >= 1.2.99.3] [renderproto >= 0.11] [xextproto >= 7.1.99] [inputproto >= 1.9.99.902] [kbproto >= 1.0.3] fontsproto"
33-# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc
34-AC_SUBST(SDK_REQUIRED_MODULES)
35-
36 dnl List of libraries that require a specific version
37 LIBAPPLEWM="applewm >= 1.4"
38 LIBDMX="dmx >= 1.0.99.1"
39@@ -806,6 +801,11 @@ dnl specific modules against it
40 PKG_CHECK_MODULES(PIXMAN, $LIBPIXMAN)
41 REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau"
42
43+dnl Core modules for most extensions, et al.
44+SDK_REQUIRED_MODULES="[xproto >= 7.0.22] [randrproto >= 1.2.99.3] [renderproto >= 0.11] [xextproto >= 7.1.99] [inputproto >= 1.99.99.902] [kbproto >= 1.0.3] fontsproto $LIBPIXMAN"
45+# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc
46+AC_SUBST(SDK_REQUIRED_MODULES)
47+
48 REQUIRED_MODULES="[fixesproto >= 5.0] [damageproto >= 1.1] [xcmiscproto >= 1.2.0] [xtrans >= 1.2.2] [bigreqsproto >= 1.1.0] $SDK_REQUIRED_MODULES"
49
50 if test "x$CONFIG_UDEV" = xyes &&
51@@ -1583,6 +1583,7 @@ if test "x$XORG" = xyes; then
52 if test "x$PCI" = xyes; then
53
54 PKG_CHECK_MODULES([PCIACCESS], $LIBPCIACCESS)
55+ SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $LIBPCIACCESS"
56 SAVE_LIBS=$LIBS
57 SAVE_CFLAGS=$CFLAGS
58 CFLAGS=$PCIACCESS_CFLAGS
59diff --git a/xorg-server.pc.in b/xorg-server.pc.in
60index fb238b5..a98eca8 100644
61--- a/xorg-server.pc.in
62+++ b/xorg-server.pc.in
63@@ -15,7 +15,6 @@ abi_extension=@abi_extension@
64 Name: xorg-server
65 Description: Modular X.Org X Server
66 Version: @PACKAGE_VERSION@
67-Requires: pixman-1 pciaccess
68 Requires.private: @SDK_REQUIRED_MODULES@
69 Cflags: -I${sdkdir} @symbol_visibility@
70 Libs: -L${libdir}
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg_1.11.4.bb b/recipes-graphics/xorg-xserver/xserver-xorg_1.11.4.bb
new file mode 100644
index 0000000..02ecb6e
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xorg_1.11.4.bb
@@ -0,0 +1,26 @@
1require recipes-graphics/xorg-xserver/xserver-xorg.inc
2
3# This has change in newer release
4LIC_FILES_CHKSUM = "file://COPYING;md5=74df27b6254cc88d2799b5f4f5949c00"
5
6# Misc build failure for master HEAD
7SRC_URI += "file://crosscompile.patch \
8 file://fix_open_max_preprocessor_error.patch \
9 file://mips64-compiler.patch \
10 file://pkgconfig-deps.patch \
11 "
12
13SRC_URI[md5sum] = "256325e9b17dff479d92bed97f6b0adb"
14SRC_URI[sha256sum] = "3e2935bc400612df58d5b5e6840829e2c63af02c2e7d2893092500358a4366fc"
15
16PR = "${INC_PR}.0"
17
18do_install_append_mx6 () {
19 # FIXME: This is a workaround to ensure we use Vivante DRI
20 rm ${D}${includedir}/xorg/dri.h \
21 ${D}${includedir}/xorg/sarea.h \
22 ${D}${includedir}/xorg/dristruct.h \
23 ${D}${libdir}/xorg/modules/extensions/libdri.so
24}
25
26PACKAGE_ARCH = "${MACHINE_ARCH}"