summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/mozjs
diff options
context:
space:
mode:
authorleimaohui <leimaohui@cn.fujitsu.com>2015-01-27 10:51:49 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2015-02-12 19:31:53 +0100
commit736e3daa82f1a3ceeb99601356a9d5119cb799a0 (patch)
tree191eb3dc5bed34d16ec2c719ee81443046783634 /meta-oe/recipes-extended/mozjs
parent7c2c602683d3280b312b945f4d0a79db1eb466c3 (diff)
downloadmeta-openembedded-736e3daa82f1a3ceeb99601356a9d5119cb799a0.tar.gz
mozjs_17.0.0: Fix build error in powerpc(e500v2)
To fix the bug as following error: cannot convert '__va_list_tag**' to '__va_list_tag (*)[1]' for argument '5' to 'JSBool TryArgumentFormatter(JSContext*, const char**, JSBool, jsval**, __va_list_tag (*)[1])' Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/mozjs')
-rw-r--r--meta-oe/recipes-extended/mozjs/mozjs/0001-mozjs17.0.0-fix-the-compile-bug-of-powerpc.patch36
-rw-r--r--meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb1
2 files changed, 37 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs/0001-mozjs17.0.0-fix-the-compile-bug-of-powerpc.patch b/meta-oe/recipes-extended/mozjs/mozjs/0001-mozjs17.0.0-fix-the-compile-bug-of-powerpc.patch
new file mode 100644
index 000000000..de72d4f9a
--- /dev/null
+++ b/meta-oe/recipes-extended/mozjs/mozjs/0001-mozjs17.0.0-fix-the-compile-bug-of-powerpc.patch
@@ -0,0 +1,36 @@
1From da3929a96d9c74e11bf37d128890e18fcb745365 Mon Sep 17 00:00:00 2001
2From: Lei Maohui <leimaohui@cn.fujitsu.com>
3Date: Mon, 26 Jan 2015 08:53:19 +0900
4Subject: [PATCH] mozjs17.0.0: fix the compile bug of powerpc
5
6To fix the bug as following
7
8error: cannot convert '__va_list_tag**' to '__va_list_tag (*)[1]' for
9argument '5' to 'JSBool TryArgumentFormatter(JSContext*, const char**,
10JSBool, jsval**, __va_list_tag (*)[1])'
11
12Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
13---
14 jscpucfg.h | 6 ++++++
15 1 file changed, 6 insertions(+)
16
17diff --git a/jscpucfg.h b/jscpucfg.h
18index dfb1c14..8683491 100644
19--- a/jscpucfg.h
20+++ b/jscpucfg.h
21@@ -47,6 +47,12 @@
22 #elif defined(JS_HAVE_ENDIAN_H)
23 # include <endian.h>
24
25+#if defined(_POWER) || defined(__powerpc__) || \
26+ defined(__ppc__)
27+# define HAVE_VA_LIST_AS_ARRAY 1
28+# endif
29+
30+
31 # if defined(__BYTE_ORDER)
32 # if __BYTE_ORDER == __LITTLE_ENDIAN
33 # define IS_LITTLE_ENDIAN 1
34--
351.8.4.2
36
diff --git a/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb b/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
index ab01471d0..174f6fe0a 100644
--- a/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
+++ b/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
@@ -5,6 +5,7 @@ LIC_FILES_CHKSUM = "file://../../LICENSE;md5=815ca599c9df247a0c7f619bab123dad"
5SRC_URI = " \ 5SRC_URI = " \
6 http://ftp.mozilla.org/pub/mozilla.org/js/${BPN}${PV}.tar.gz \ 6 http://ftp.mozilla.org/pub/mozilla.org/js/${BPN}${PV}.tar.gz \
7 file://0001-js.pc.in-do-not-include-RequiredDefines.h-for-depend.patch \ 7 file://0001-js.pc.in-do-not-include-RequiredDefines.h-for-depend.patch \
8 file://0001-mozjs17.0.0-fix-the-compile-bug-of-powerpc.patch \
8" 9"
9SRC_URI[md5sum] = "20b6f8f1140ef6e47daa3b16965c9202" 10SRC_URI[md5sum] = "20b6f8f1140ef6e47daa3b16965c9202"
10SRC_URI[sha256sum] = "321e964fe9386785d3bf80870640f2fa1c683e32fe988eeb201b04471c172fba" 11SRC_URI[sha256sum] = "321e964fe9386785d3bf80870640f2fa1c683e32fe988eeb201b04471c172fba"