diff options
author | Mingli Yu <Mingli.Yu@windriver.com> | 2019-06-19 14:47:45 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-06-19 06:06:47 -0700 |
commit | fce37fcfa241d376378edcc61f35c9a4a415a915 (patch) | |
tree | 01fb191e1a0a9bf6e503d79cb46318ce3a1530ff | |
parent | 3e03fe9984fd21d560fb0d805236201740e9effd (diff) | |
download | meta-openembedded-fce37fcfa241d376378edcc61f35c9a4a415a915.tar.gz |
mozjs: Fix do_patch error for mips64-n32
After mozjs upgrade to 60.5.2 in below commit:
9ca3aad9c mozjs: Upgrade to version 60.x
With below logic in local.conf:
MACHINE ??= "qemumips64"
MULTILIB_GLOBAL_VARIANTS_append = " libn32"
MULTILIBS ?= "multilib:lib32 multilib:libn32"
DEFAULTTUNE_virtclass-multilib-lib32 ?= "mips"
DEFAULTTUNE_virtclass-multilib-libn32 ?= "mips64-n32"
require conf/multilib.conf
$ bitbake libn32-mozjs -cpatch
| NOTE: Applying patch '0001-fix-compiling-failure-on-mips64-n32-bsp.patch' (../layers/meta-openembedded/meta-oe/recipes-extended/mozjs/mozjs/0001-fix-compiling-failure-on-mips64-n32-bsp.patch)
| ERROR: Command Error: 'quilt --quiltrc TOPDIR/tmp/work/mips64-n32-wrsmllibn32-linux-gnun32/libn32-mozjs/60.5.2-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0 Output:
| Applying patch 0001-fix-compiling-failure-on-mips64-n32-bsp.patch
| patching file build/moz.configure/init.configure
| patching file js/src/jit/mips-shared/Architecture-mips-shared.h
| Hunk #1 succeeded at 28 with fuzz 2 (offset 2 lines).
| Hunk #2 FAILED at 95.
| 1 out of 2 hunks FAILED -- rejects in file js/src/jit/mips-shared/Architecture-mips-shared.h
| patching file python/mozbuild/mozbuild/configure/constants.py
| Patch 0001-fix-compiling-failure-on-mips64-n32-bsp.patch does not apply (enforce with -f)
Rework 0001-fix-compiling-failure-on-mips64-n32-bsp.patch
to fix the above do_patch error.
Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs/0001-fix-compiling-failure-on-mips64-n32-bsp.patch | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs/0001-fix-compiling-failure-on-mips64-n32-bsp.patch b/meta-oe/recipes-extended/mozjs/mozjs/0001-fix-compiling-failure-on-mips64-n32-bsp.patch index a36478bfba..b882d76ec2 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs/0001-fix-compiling-failure-on-mips64-n32-bsp.patch +++ b/meta-oe/recipes-extended/mozjs/mozjs/0001-fix-compiling-failure-on-mips64-n32-bsp.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | From 5ad700c92224193bfc789f7d53af38fc6f8b8904 Mon Sep 17 00:00:00 2001 | 1 | From f2f8be496c8e34b4d909b688a95c6f8565201081 Mon Sep 17 00:00:00 2001 |
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
3 | Date: Thu, 19 Jul 2018 17:31:35 +0800 | 3 | Date: Wed, 19 Jun 2019 14:30:44 +0800 |
4 | Subject: [PATCH] fix compiling failure on mips64-n32 bsp | 4 | Subject: [PATCH] fix compiling failure on mips64-n32 bsp |
5 | 5 | ||
6 | - Tweak mips64-n32 with mips32 | 6 | - Tweak mips64-n32 with mips32 |
@@ -16,15 +16,18 @@ Subject: [PATCH] fix compiling failure on mips64-n32 bsp | |||
16 | Upstream-Status: Inappropriate [oe specific] | 16 | Upstream-Status: Inappropriate [oe specific] |
17 | 17 | ||
18 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 18 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
19 | Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> | ||
19 | --- | 20 | --- |
20 | build/moz.configure/init.configure | 5 ++++- | 21 | build/moz.configure/init.configure | 5 ++++- |
21 | js/src/jit/mips-shared/Architecture-mips-shared.h | 4 +++- | 22 | js/src/jit/mips-shared/Architecture-mips-shared.h | 4 +++- |
22 | python/mozbuild/mozbuild/configure/constants.py | 2 +- | 23 | python/mozbuild/mozbuild/configure/constants.py | 2 +- |
23 | 3 files changed, 8 insertions(+), 3 deletions(-) | 24 | 3 files changed, 8 insertions(+), 3 deletions(-) |
24 | 25 | ||
26 | diff --git a/build/moz.configure/init.configure b/build/moz.configure/init.configure | ||
27 | index 648ac2d..d0bcaf8 100644 | ||
25 | --- a/build/moz.configure/init.configure | 28 | --- a/build/moz.configure/init.configure |
26 | +++ b/build/moz.configure/init.configure | 29 | +++ b/build/moz.configure/init.configure |
27 | @@ -650,7 +650,10 @@ def split_triplet(triplet, allow_unknown | 30 | @@ -650,7 +650,10 @@ def split_triplet(triplet, allow_unknown=False): |
28 | canonical_cpu = 'mips32' | 31 | canonical_cpu = 'mips32' |
29 | endianness = 'little' if 'el' in cpu else 'big' | 32 | endianness = 'little' if 'el' in cpu else 'big' |
30 | elif cpu in ('mips64', 'mips64el'): | 33 | elif cpu in ('mips64', 'mips64el'): |
@@ -36,26 +39,30 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | |||
36 | endianness = 'little' if 'el' in cpu else 'big' | 39 | endianness = 'little' if 'el' in cpu else 'big' |
37 | elif cpu.startswith('aarch64'): | 40 | elif cpu.startswith('aarch64'): |
38 | canonical_cpu = 'aarch64' | 41 | canonical_cpu = 'aarch64' |
42 | diff --git a/js/src/jit/mips-shared/Architecture-mips-shared.h b/js/src/jit/mips-shared/Architecture-mips-shared.h | ||
43 | index e95ffd4..caf83f7 100644 | ||
39 | --- a/js/src/jit/mips-shared/Architecture-mips-shared.h | 44 | --- a/js/src/jit/mips-shared/Architecture-mips-shared.h |
40 | +++ b/js/src/jit/mips-shared/Architecture-mips-shared.h | 45 | +++ b/js/src/jit/mips-shared/Architecture-mips-shared.h |
41 | @@ -26,6 +26,8 @@ | 46 | @@ -28,6 +28,8 @@ |
42 | #define USES_O32_ABI | 47 | #elif (defined(_MIPS_SIM) && (_MIPS_SIM == _ABI64)) || \ |
43 | #elif (defined(_MIPS_SIM) && (_MIPS_SIM == _ABI64)) || defined(JS_SIMULATOR_MIPS64) | 48 | defined(JS_SIMULATOR_MIPS64) |
44 | #define USES_N64_ABI | 49 | #define USES_N64_ABI |
45 | +#elif (defined(_MIPS_SIM) && (_MIPS_SIM == _ABIN32)) | 50 | +#elif (defined(_MIPS_SIM) && (_MIPS_SIM == _ABIN32)) |
46 | +#define USES_N32_ABI | 51 | +#define USES_N32_ABI |
47 | #else | 52 | #else |
48 | #error "Unsupported ABI" | 53 | #error "Unsupported ABI" |
49 | #endif | 54 | #endif |
50 | @@ -93,7 +95,7 @@ class Registers | 55 | @@ -94,7 +96,7 @@ class Registers { |
51 | ta1 = t5, | 56 | ta1 = t5, |
52 | ta2 = t6, | 57 | ta2 = t6, |
53 | ta3 = t7, | 58 | ta3 = t7, |
54 | -#elif defined(USES_N64_ABI) | 59 | -#elif defined(USES_N64_ABI) |
55 | +#elif defined(USES_N64_ABI) || defined(USES_N32_ABI) | 60 | +#elif defined(USES_N64_ABI) || defined(USES_N32_ABI) |
56 | a4 = r8, | 61 | a4 = r8, |
57 | a5 = r9, | 62 | a5 = r9, |
58 | a6 = r10, | 63 | a6 = r10, |
64 | diff --git a/python/mozbuild/mozbuild/configure/constants.py b/python/mozbuild/mozbuild/configure/constants.py | ||
65 | index 1067b6a..e0f0405 100644 | ||
59 | --- a/python/mozbuild/mozbuild/configure/constants.py | 66 | --- a/python/mozbuild/mozbuild/configure/constants.py |
60 | +++ b/python/mozbuild/mozbuild/configure/constants.py | 67 | +++ b/python/mozbuild/mozbuild/configure/constants.py |
61 | @@ -90,8 +90,8 @@ CPU_preprocessor_checks = OrderedDict(( | 68 | @@ -90,8 +90,8 @@ CPU_preprocessor_checks = OrderedDict(( |
@@ -68,3 +75,6 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | |||
68 | ('sh4', '__sh__'), | 75 | ('sh4', '__sh__'), |
69 | )) | 76 | )) |
70 | 77 | ||
78 | -- | ||
79 | 2.7.4 | ||
80 | |||