diff options
author | leimaohui <leimaohui@cn.fujitsu.com> | 2019-04-20 12:53:41 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-05-10 09:19:21 -0700 |
commit | 7b503471b042ce327c972dd0485f4db7f0267640 (patch) | |
tree | b8c0c50be9749fddfab578038bc7b79f237bfaf7 | |
parent | d703b5984ef24c3246fa57c2c9132270cbf33ba6 (diff) | |
download | meta-openembedded-7b503471b042ce327c972dd0485f4db7f0267640.tar.gz |
mozjs: Make mozjs support arm32BE.
Fixed a build error on arm32BE.
Upstream-Status: Pending
Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs/0001-To-fix-build-error-on-arm32BE.patch | 28 | ||||
-rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs_52.9.1.bb | 1 |
2 files changed, 29 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs/0001-To-fix-build-error-on-arm32BE.patch b/meta-oe/recipes-extended/mozjs/mozjs/0001-To-fix-build-error-on-arm32BE.patch new file mode 100644 index 0000000000..3bbd10a173 --- /dev/null +++ b/meta-oe/recipes-extended/mozjs/mozjs/0001-To-fix-build-error-on-arm32BE.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 9afb0e4d3b9209ea198052cea0401bef7ee25ad8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Lei Maohui <leimaohui@cn.fujitsu.com> | ||
3 | Date: Thu, 9 May 2019 12:23:40 +0900 | ||
4 | Subject: [PATCH] To fix build error on arm32BE. | ||
5 | |||
6 | error: #error Target architecture was not detected as supported by Double-Conversion. | ||
7 | |||
8 | Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> | ||
9 | --- | ||
10 | mfbt/double-conversion/utils.h | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/mfbt/double-conversion/utils.h b/mfbt/double-conversion/utils.h | ||
14 | index 4f37218..93575cb 100644 | ||
15 | --- a/mfbt/double-conversion/utils.h | ||
16 | +++ b/mfbt/double-conversion/utils.h | ||
17 | @@ -53,7 +53,7 @@ | ||
18 | // disabled.) | ||
19 | // On Linux,x86 89255e-22 != Div_double(89255.0/1e22) | ||
20 | #if defined(_M_X64) || defined(__x86_64__) || \ | ||
21 | - defined(__ARMEL__) || defined(__avr32__) || \ | ||
22 | + defined(__arm__) || defined(__avr32__) || \ | ||
23 | defined(__hppa__) || defined(__ia64__) || \ | ||
24 | defined(__mips__) || \ | ||
25 | defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \ | ||
26 | -- | ||
27 | 2.7.4 | ||
28 | |||
diff --git a/meta-oe/recipes-extended/mozjs/mozjs_52.9.1.bb b/meta-oe/recipes-extended/mozjs/mozjs_52.9.1.bb index 92d15724fb..5e67eeea71 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs_52.9.1.bb +++ b/meta-oe/recipes-extended/mozjs/mozjs_52.9.1.bb | |||
@@ -16,6 +16,7 @@ SRC_URI = "http://archive.ubuntu.com/ubuntu/pool/main/m/mozjs52/mozjs52_52.9.1.o | |||
16 | file://0001-mozjs-fix-coredump-caused-by-getenv.patch \ | 16 | file://0001-mozjs-fix-coredump-caused-by-getenv.patch \ |
17 | file://format-overflow.patch \ | 17 | file://format-overflow.patch \ |
18 | file://JS_PUBLIC_API.patch \ | 18 | file://JS_PUBLIC_API.patch \ |
19 | file://0001-To-fix-build-error-on-arm32BE.patch \ | ||
19 | " | 20 | " |
20 | SRC_URI_append_libc-musl = " \ | 21 | SRC_URI_append_libc-musl = " \ |
21 | file://0006-support-musl.patch \ | 22 | file://0006-support-musl.patch \ |