summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato/webkit/webkit-gtk-1.8.3
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2013-06-12 10:56:05 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-17 16:45:35 +0100
commite5615e7482fd5b5cba1caddec5e61d15cfe2a627 (patch)
treeac9e0a0cc34aab0acf81a3387446713b4081de9c /meta/recipes-sato/webkit/webkit-gtk-1.8.3
parentd807f7a854b076ee1044cfe5cbe2c972e8587608 (diff)
downloadpoky-e5615e7482fd5b5cba1caddec5e61d15cfe2a627.tar.gz
webkit-gtk: Support build on mips64
(From OE-Core rev: 3dd21bc6f70a2b157936257c9673dee6ce7f90bd) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato/webkit/webkit-gtk-1.8.3')
-rw-r--r--meta/recipes-sato/webkit/webkit-gtk-1.8.3/0001-Enable-mips64-build.patch69
1 files changed, 69 insertions, 0 deletions
diff --git a/meta/recipes-sato/webkit/webkit-gtk-1.8.3/0001-Enable-mips64-build.patch b/meta/recipes-sato/webkit/webkit-gtk-1.8.3/0001-Enable-mips64-build.patch
new file mode 100644
index 0000000000..5a42cd7c41
--- /dev/null
+++ b/meta/recipes-sato/webkit/webkit-gtk-1.8.3/0001-Enable-mips64-build.patch
@@ -0,0 +1,69 @@
1From 4084d31d5b1fe3bf041881ad124873dbf3cd1868 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 17 May 2013 19:51:11 -0700
4Subject: [PATCH] Enable mips64 build
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7Upstream-Status: Pending
8---
9 Source/JavaScriptCore/wtf/Platform.h | 2 +-
10 Source/JavaScriptCore/wtf/dtoa/utils.h | 2 +-
11 2 files changed, 2 insertions(+), 2 deletions(-)
12
13Index: webkit-1.8.3/Source/JavaScriptCore/wtf/Platform.h
14===================================================================
15--- webkit-1.8.3.orig/Source/JavaScriptCore/wtf/Platform.h 2012-08-20 09:30:25.000000000 -0700
16+++ webkit-1.8.3/Source/JavaScriptCore/wtf/Platform.h 2013-06-12 00:58:14.624055787 -0700
17@@ -76,14 +76,19 @@
18
19 /* CPU(MIPS) - MIPS 32-bit */
20 /* Note: Only O32 ABI is tested, so we enable it for O32 ABI for now. */
21-#if (defined(mips) || defined(__mips__) || defined(MIPS) || defined(_MIPS_)) \
22- && defined(_ABIO32)
23+#if (defined(mips) || defined(__mips__) || defined(MIPS) || defined(_MIPS_) \
24+ || defined(__mips64))
25+#if defined(__mips64)
26+#define WTF_CPU_MIPS64 1
27+#define WTF_MIPS_ARCH __mips64
28+#else
29 #define WTF_CPU_MIPS 1
30+#define WTF_MIPS_ARCH __mips
31+#endif
32 #if defined(__MIPSEB__)
33 #define WTF_CPU_BIG_ENDIAN 1
34 #endif
35 #define WTF_MIPS_PIC (defined __PIC__)
36-#define WTF_MIPS_ARCH __mips
37 #define WTF_MIPS_ISA(v) (defined WTF_MIPS_ARCH && WTF_MIPS_ARCH == v)
38 #define WTF_MIPS_ISA_AT_LEAST(v) (defined WTF_MIPS_ARCH && WTF_MIPS_ARCH >= v)
39 #define WTF_MIPS_ARCH_REV __mips_isa_rev
40@@ -295,7 +300,7 @@
41
42 #endif /* ARM */
43
44-#if CPU(ARM) || CPU(MIPS) || CPU(SH4) || CPU(SPARC)
45+#if CPU(ARM) || CPU(MIPS) || CPU(MIPS64) || CPU(SH4) || CPU(SPARC)
46 #define WTF_CPU_NEEDS_ALIGNED_ACCESS 1
47 #endif
48
49@@ -899,6 +904,7 @@
50 || CPU(ALPHA) \
51 || CPU(SPARC64) \
52 || CPU(S390X) \
53+ || CPU(MIPS64) \
54 || CPU(PPC64)
55 #define WTF_USE_JSVALUE64 1
56 #else
57Index: webkit-1.8.3/Source/JavaScriptCore/wtf/dtoa/utils.h
58===================================================================
59--- webkit-1.8.3.orig/Source/JavaScriptCore/wtf/dtoa/utils.h 2012-08-20 09:26:05.000000000 -0700
60+++ webkit-1.8.3/Source/JavaScriptCore/wtf/dtoa/utils.h 2013-06-12 00:57:22.424054793 -0700
61@@ -49,7 +49,7 @@
62 defined(__ARMEL__) || \
63 defined(_MIPS_ARCH_MIPS32R2)
64 #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
65-#elif CPU(MIPS) || CPU(PPC) || CPU(PPC64) || OS(WINCE) || CPU(SH4) || CPU(S390) || CPU(S390X) || CPU(IA64) || CPU(SPARC) || CPU(ALPHA)
66+#elif CPU(MIPS) || CPU(PPC) || CPU(PPC64) || OS(WINCE) || CPU(SH4) || CPU(S390) || CPU(S390X) || CPU(IA64) || CPU(SPARC) || CPU(ALPHA) || CPU(MIPS64)
67 #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
68 #elif defined(_M_IX86) || defined(__i386__)
69 #if defined(_WIN32)