diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2011-05-23 14:45:48 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2011-05-25 14:46:23 +0200 |
commit | 50cd038ec0ad2b57f969f1647339ec01448720c2 (patch) | |
tree | e403723592e124e3e935863e602426bc957113c4 /meta-oe/recipes-graphics/xorg-driver | |
parent | 5e3dc9510776c5f9ee65799732dd3a824de53a0d (diff) | |
download | meta-openembedded-50cd038ec0ad2b57f969f1647339ec01448720c2.tar.gz |
xf86-video-glamo: fix build with gcc-4.6
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-glamo-kms-driver-drop-unused-xf86_config.patch | 35 | ||||
-rw-r--r-- | meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo_git.bb | 3 |
2 files changed, 37 insertions, 1 deletions
diff --git a/meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo/0001-glamo-kms-driver-drop-unused-xf86_config.patch b/meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo/0001-glamo-kms-driver-drop-unused-xf86_config.patch new file mode 100644 index 000000000..0d6374363 --- /dev/null +++ b/meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo/0001-glamo-kms-driver-drop-unused-xf86_config.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 963c221aa01be2ea99d39578d91e4aa08ec3ab0a Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Mon, 23 May 2011 14:29:38 +0200 | ||
4 | Subject: [PATCH] glamo-kms-driver: drop unused xf86_config | ||
5 | |||
6 | * gcc-4.6 doesn't like unused variables which are only set and never read | ||
7 | |||
8 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
9 | --- | ||
10 | src/glamo-kms-driver.c | 2 -- | ||
11 | 1 files changed, 0 insertions(+), 2 deletions(-) | ||
12 | |||
13 | diff --git a/src/glamo-kms-driver.c b/src/glamo-kms-driver.c | ||
14 | index ce87caa..c5c7a00 100644 | ||
15 | --- a/src/glamo-kms-driver.c | ||
16 | +++ b/src/glamo-kms-driver.c | ||
17 | @@ -208,7 +208,6 @@ static const xf86CrtcConfigFuncsRec crtc_config_funcs = { | ||
18 | |||
19 | Bool GlamoKMSPreInit(ScrnInfoPtr pScrn, int flags) | ||
20 | { | ||
21 | - xf86CrtcConfigPtr xf86_config; | ||
22 | GlamoPtr pGlamo; | ||
23 | rgb defaultWeight = { 0, 0, 0 }; | ||
24 | int max_width, max_height; | ||
25 | @@ -254,7 +253,6 @@ Bool GlamoKMSPreInit(ScrnInfoPtr pScrn, int flags) | ||
26 | |||
27 | /* Allocate an xf86CrtcConfig */ | ||
28 | xf86CrtcConfigInit(pScrn, &crtc_config_funcs); | ||
29 | - xf86_config = XF86_CRTC_CONFIG_PTR(pScrn); | ||
30 | |||
31 | max_width = 480; | ||
32 | max_height = 640; | ||
33 | -- | ||
34 | 1.7.5.rc3 | ||
35 | |||
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 c9e1d5699..82263f273 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 | |||
@@ -7,10 +7,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d8cbd99fff773f92e844948f74ef0df8" | |||
7 | RDEPENDS_${PN} = "xserver-xorg-extension-dri xserver-xorg-extension-dri2 xserver-xorg-extension-glx mesa-dri" | 7 | RDEPENDS_${PN} = "xserver-xorg-extension-dri xserver-xorg-extension-dri2 xserver-xorg-extension-glx mesa-dri" |
8 | PE = "2" | 8 | PE = "2" |
9 | PV = "1.0.0+gitr${SRCPV}" | 9 | PV = "1.0.0+gitr${SRCPV}" |
10 | PR = "${INC_PR}.5" | 10 | PR = "${INC_PR}.6" |
11 | 11 | ||
12 | SRC_URI = "git://git.openmoko.org/git/xf86-video-glamo.git;protocol=git;branch=master \ | 12 | SRC_URI = "git://git.openmoko.org/git/xf86-video-glamo.git;protocol=git;branch=master \ |
13 | file://0001-glamo-drm-define-GLAMO_CMDQ_MAX_COUNT-instead-of-mag.patch \ | 13 | file://0001-glamo-drm-define-GLAMO_CMDQ_MAX_COUNT-instead-of-mag.patch \ |
14 | file://0001-glamo-kms-driver-drop-unused-xf86_config.patch \ | ||
14 | " | 15 | " |
15 | 16 | ||
16 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |