diff options
| author | Khem Raj <raj.khem@gmail.com> | 2012-05-11 10:21:47 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-11 23:25:10 +0100 |
| commit | e63b1791cddcc3cc50df59a4aeeab1b3a200b48c (patch) | |
| tree | 5e6234666b9ff39d7af24e066cd5f93d024347ad | |
| parent | 350a459dc3e38ba4240fd0b0ca45250dbacdea51 (diff) | |
| download | poky-e63b1791cddcc3cc50df59a4aeeab1b3a200b48c.tar.gz | |
xserver-xorg: Fix build on powerpc
(From OE-Core rev: 8a11f42d3ed526fae0c0bb050d7d0519904591b4)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-graphics/xorg-xserver/xserver-xorg-1.11.2.inc | 9 | ||||
| -rw-r--r-- | meta/recipes-graphics/xorg-xserver/xserver-xorg-1.11.2/gcc-47-warning.patch | 33 |
2 files changed, 38 insertions, 4 deletions
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg-1.11.2.inc b/meta/recipes-graphics/xorg-xserver/xserver-xorg-1.11.2.inc index f5fa629105..6a86af4001 100644 --- a/meta/recipes-graphics/xorg-xserver/xserver-xorg-1.11.2.inc +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg-1.11.2.inc | |||
| @@ -1,10 +1,11 @@ | |||
| 1 | SRC_URI += "file://crosscompile.patch" | ||
| 2 | |||
| 3 | # Misc build failure for master HEAD | 1 | # Misc build failure for master HEAD |
| 4 | SRC_URI += "file://fix_open_max_preprocessor_error.patch" | 2 | SRC_URI += "file://crosscompile.patch \ |
| 3 | file://fix_open_max_preprocessor_error.patch \ | ||
| 4 | file://gcc-47-warning.patch \ | ||
| 5 | " | ||
| 5 | 6 | ||
| 6 | SRC_URI[md5sum] = "8796fff441e5435ee36a72579008af24" | 7 | SRC_URI[md5sum] = "8796fff441e5435ee36a72579008af24" |
| 7 | SRC_URI[sha256sum] = "fa415decf02027ca278b06254ccfbcceba2a83c2741405257ebf749da4a73cf2" | 8 | SRC_URI[sha256sum] = "fa415decf02027ca278b06254ccfbcceba2a83c2741405257ebf749da4a73cf2" |
| 8 | 9 | ||
| 9 | PR = "r1" | 10 | PR = "r2" |
| 10 | 11 | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg-1.11.2/gcc-47-warning.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg-1.11.2/gcc-47-warning.patch new file mode 100644 index 0000000000..ed4eaac391 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg-1.11.2/gcc-47-warning.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | This patch fixes errors on powerpc like below | ||
| 2 | |||
| 3 | | lnx_video.c: In function 'unmapVidMem': | ||
| 4 | | lnx_video.c:472:24: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] | ||
| 5 | |||
| 6 | Its in 1.12 branch | ||
| 7 | |||
| 8 | http://cgit.freedesktop.org/xorg/xserver/commit/?h=server-1.12-branch&id=eb3377ffb8a7baa26c9831e56ed782d48b28fa71 | ||
| 9 | |||
| 10 | Upstream-Status: Backport | ||
| 11 | |||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | |||
| 14 | Index: xorg-server-1.11.2/hw/xfree86/os-support/linux/lnx_video.c | ||
| 15 | =================================================================== | ||
| 16 | --- xorg-server-1.11.2.orig/hw/xfree86/os-support/linux/lnx_video.c 2012-05-01 06:32:34.186489019 -0700 | ||
| 17 | +++ xorg-server-1.11.2/hw/xfree86/os-support/linux/lnx_video.c 2012-05-01 06:49:14.926537452 -0700 | ||
| 18 | @@ -469,11 +469,11 @@ | ||
| 19 | static void | ||
| 20 | unmapVidMem(int ScreenNum, pointer Base, unsigned long Size) | ||
| 21 | { | ||
| 22 | - memType alignOff = (memType)Base | ||
| 23 | - - ((memType)Base & ~(getpagesize() - 1)); | ||
| 24 | + uintptr_t alignOff = (uintptr_t)Base | ||
| 25 | + - ((uintptr_t)Base & ~(getpagesize() - 1)); | ||
| 26 | |||
| 27 | - DebugF("alignment offset: %lx\n",alignOff); | ||
| 28 | - munmap((caddr_t)((memType)Base - alignOff), (Size + alignOff)); | ||
| 29 | + DebugF("alignment offset: %lx\n",(unsigned long)alignOff); | ||
| 30 | + munmap((void*)((uintptr_t)Base - alignOff), (Size + alignOff)); | ||
| 31 | } | ||
| 32 | |||
| 33 | |||
