diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2012-08-16 08:28:41 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2012-08-20 10:02:09 +0200 |
commit | 695786ad0fac01f3dff2232a187e95ab7ef864b0 (patch) | |
tree | 19d952cd0d7e12cf2a20b0f17fd5b15b7d80f017 /meta-oe/recipes-graphics/xorg-driver | |
parent | fc9fad42f0547b7d18ffda153ced2284f4e9d8f7 (diff) | |
download | meta-openembedded-695786ad0fac01f3dff2232a187e95ab7ef864b0.tar.gz |
xf86-video-glamo: disable KMS, fix build with KMS disabled
* RDEPENDS are not needed without KMS
* libdrm in meta-openmoko doesn't provide support for glamo, so not it would fail to build with KMS enabled
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-graphics/xorg-driver')
-rw-r--r-- | meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo/0001-fix-build-with-KMS-disabled.patch | 29 | ||||
-rw-r--r-- | meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo_git.bb | 6 |
2 files changed, 32 insertions, 3 deletions
diff --git a/meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo/0001-fix-build-with-KMS-disabled.patch b/meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo/0001-fix-build-with-KMS-disabled.patch new file mode 100644 index 000000000..25e83209d --- /dev/null +++ b/meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo/0001-fix-build-with-KMS-disabled.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From f485e878bc8bb0e381a38a30009308c82fa8d672 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Thu, 16 Aug 2012 08:18:56 +0200 | ||
4 | Subject: [PATCH] fix build with KMS disabled | ||
5 | |||
6 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
7 | --- | ||
8 | src/glamo.h | 3 +++ | ||
9 | 1 files changed, 3 insertions(+), 0 deletions(-) | ||
10 | |||
11 | diff --git a/src/glamo.h b/src/glamo.h | ||
12 | index d4a2f19..5fd5c04 100644 | ||
13 | --- a/src/glamo.h | ||
14 | +++ b/src/glamo.h | ||
15 | @@ -37,8 +37,11 @@ | ||
16 | #include "xf86.h" | ||
17 | #include "exa.h" | ||
18 | #include <linux/fb.h> | ||
19 | + | ||
20 | +#ifdef HAVE_KMS | ||
21 | #include <libdrm/drm.h> | ||
22 | #include <libdrm/glamo_bo.h> | ||
23 | +#endif | ||
24 | |||
25 | #define GLAMO_REG_BASE(c) ((c)->attr.address[0]) | ||
26 | #define GLAMO_REG_SIZE(c) (0x2400) | ||
27 | -- | ||
28 | 1.7.8.6 | ||
29 | |||
diff --git a/meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo_git.bb b/meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo_git.bb index 5d752dbf7..6fb78abe5 100644 --- a/meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo_git.bb +++ b/meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo_git.bb | |||
@@ -4,16 +4,16 @@ DEPENDS += "libdrm" | |||
4 | 4 | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d8cbd99fff773f92e844948f74ef0df8" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d8cbd99fff773f92e844948f74ef0df8" |
6 | 6 | ||
7 | RDEPENDS_${PN} = "xserver-xorg-extension-dri xserver-xorg-extension-dri2 xserver-xorg-extension-glx" | ||
8 | PE = "2" | 7 | PE = "2" |
9 | PV = "1.0.0+gitr${SRCPV}" | 8 | PV = "1.0.0+gitr${SRCPV}" |
10 | PR = "${INC_PR}.0" | 9 | PR = "${INC_PR}.1" |
11 | 10 | ||
12 | SRC_URI = "git://git.openmoko.org/git/xf86-video-glamo.git;protocol=git;branch=master \ | 11 | SRC_URI = "git://git.openmoko.org/git/xf86-video-glamo.git;protocol=git;branch=master \ |
13 | file://0001-glamo-kms-driver-drop-unused-xf86_config.patch \ | 12 | file://0001-glamo-kms-driver-drop-unused-xf86_config.patch \ |
13 | file://0001-fix-build-with-KMS-disabled.patch \ | ||
14 | " | 14 | " |
15 | 15 | ||
16 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |
17 | SRCREV = "cb9ed17035a79e49dde26a1e7e2bc5f10fd8144b" | 17 | SRCREV = "cb9ed17035a79e49dde26a1e7e2bc5f10fd8144b" |
18 | 18 | ||
19 | EXTRA_OECONF = " --enable-kms " | 19 | EXTRA_OECONF = " --disable-kms " |