diff options
| -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 | |||
