diff options
| author | Archana Polampalli <archana.polampalli@windriver.com> | 2023-09-28 09:13:04 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-09-28 07:56:06 -0700 |
| commit | 13e83bd009200f42741083c5a6f1fbc653205c49 (patch) | |
| tree | a631c68665ca330aec8aed2516c295db7c05b3b5 /meta-oe/recipes-devtools/nodejs | |
| parent | 4985fbfcf3217f8e6df2847341ffb8519a2de26c (diff) | |
| download | meta-openembedded-13e83bd009200f42741083c5a6f1fbc653205c49.tar.gz | |
nodejs: upgrade 18.17.1 -> 20.5.1
Update to latest release of latest LTS 20 release
* node v20 introduces several new features and fixes many bugs and CVEs as shown in [1]
* Refresh 0001-liftoff-Correct-function-signatures.patch against 20.5.1
* License-Update:
- Change zlib version 1.2.13, October 13th, 2022 to version 1.2.13.1, October xxth, 2022 [2]
- Change Copyright 2023 from Ada authors to Yagiz Nizipli and Daniel Lemire [4]
* Remove big-endian.patch as it is merged in v20.x [5] [6]
* Remove below list of patches since mips32 is deleted from v8 as part of update V8 to 10.7.193.13 [7] [8]
- mips-less-memory.patch
- 0001-mips-Use-32bit-cast-for-operand-on-mips32.patch
* Update Using-native-binaries.patch for node_js2c, it resolved below do_compile error [9]
Error:
/bin/sh: line 1: build/tmp/work/core2-64-poky-linux/nodejs/20.5.1/node-v20.5.1/out/Release/node_js2c: No such file or directory
* Remove obsolete dtrace & etw configure options (we had: --without-<feature>) from the recipe [10]
https://github.com/nodejs/node/releases/tag/v20.5.1
[1] https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md
[2] https://github.com/nodejs/node/commit/f1007325753e62b13083f6e9e499fdc33f753d7d
[3] https://github.com/nodejs/node/commit/900ae1bda76caaa7213431a5268560b578ed2d55
[4] https://github.com/nodejs/node/commit/d2465369243bc4313d9840b62c2393c4f179ffbb
[5] https://github.com/v8/v8/commit/3cea5d5425c3a0d7d1768b3758269ac98875de77
[6] https://github.com/nodejs/node/commit/f226350fcbebd4449fb0034fdaffa147e4de28ea
[7] https://github.com/v8/v8/commit/a26ca5ed147dde47f02d70c5b38d8befc1c93cb3
[8] https://github.com/nodejs/node/commit/6bd756d7c6dfb7dc25daee329ad70df68c14223e
[9] https://github.com/nodejs/node/commit/4da7bc915c714989eba7eab753db9eb9ebd8451a
[10] https://github.com/nodejs/node/commit/aa3a572e6bee116cde69508dc29478b40f40551a
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/nodejs')
| -rwxr-xr-x | meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-20.5/oe-npm-cache (renamed from meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-18.17/oe-npm-cache) | 0 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_20.5.bb (renamed from meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_18.17.bb) | 0 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs/0001-Using-native-binaries.patch | 19 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs/0001-liftoff-Correct-function-signatures.patch | 42 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs/0001-mips-Use-32bit-cast-for-operand-on-mips32.patch | 34 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs/big-endian.patch | 18 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs/mips-less-memory.patch | 37 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs_20.5.1.bb (renamed from meta-oe/recipes-devtools/nodejs/nodejs_18.17.1.bb) | 9 |
8 files changed, 34 insertions, 125 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-18.17/oe-npm-cache b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-20.5/oe-npm-cache index f596207648..f596207648 100755 --- a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-18.17/oe-npm-cache +++ b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-20.5/oe-npm-cache | |||
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_18.17.bb b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_20.5.bb index a61dd5018f..a61dd5018f 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_18.17.bb +++ b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_20.5.bb | |||
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-Using-native-binaries.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-Using-native-binaries.patch index 66e10a0d00..0178cec777 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs/0001-Using-native-binaries.patch +++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-Using-native-binaries.patch | |||
| @@ -12,7 +12,7 @@ https://git.openembedded.org/meta-openembedded/commit/?id=feeb172d1a8bf010490d22 | |||
| 12 | 12 | ||
| 13 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | 13 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> |
| 14 | --- | 14 | --- |
| 15 | node.gyp | 1 + | 15 | node.gyp | 3 + |
| 16 | tools/v8_gypfiles/v8.gyp | 5 +++++ | 16 | tools/v8_gypfiles/v8.gyp | 5 +++++ |
| 17 | 2 files changed, 6 insertions(+) | 17 | 2 files changed, 6 insertions(+) |
| 18 | 18 | ||
| @@ -28,6 +28,23 @@ index e8e1d9f9..e60ccc10 100644 | |||
| 28 | '<(node_mksnapshot_exec)', | 28 | '<(node_mksnapshot_exec)', |
| 29 | '<(node_snapshot_main)', | 29 | '<(node_snapshot_main)', |
| 30 | ], | 30 | ], |
| 31 | @@ -935,6 +935,7 @@ | ||
| 32 | 'action_name': 'node_js2c', | ||
| 33 | 'process_outputs_as_sources': 1, | ||
| 34 | 'inputs': [ | ||
| 35 | + '<(PRODUCT_DIR)/v8-qemu-wrapper.sh', | ||
| 36 | '<(node_js2c_exec)', | ||
| 37 | '<@(library_files)', | ||
| 38 | '<@(deps_files)', | ||
| 39 | @@ -944,6 +945,7 @@ | ||
| 40 | '<(SHARED_INTERMEDIATE_DIR)/node_javascript.cc', | ||
| 41 | ], | ||
| 42 | 'action': [ | ||
| 43 | + '<(PRODUCT_DIR)/v8-qemu-wrapper.sh', | ||
| 44 | '<(node_js2c_exec)', | ||
| 45 | '<@(_outputs)', | ||
| 46 | 'lib', | ||
| 47 | |||
| 31 | diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp | 48 | diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp |
| 32 | index 42e26cd9..bc721991 100644 | 49 | index 42e26cd9..bc721991 100644 |
| 33 | --- a/tools/v8_gypfiles/v8.gyp | 50 | --- a/tools/v8_gypfiles/v8.gyp |
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-liftoff-Correct-function-signatures.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-liftoff-Correct-function-signatures.patch index c9a522d2e2..5af87d866e 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs/0001-liftoff-Correct-function-signatures.patch +++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-liftoff-Correct-function-signatures.patch | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | From dc3652c0abcdf8573fd044907b19d8eda7ca1124 Mon Sep 17 00:00:00 2001 | 1 | From dc3652c0abcdf8573fd044907b19d8eda7ca1124 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 20 Oct 2021 12:49:58 -0700 | 3 | Date: Mon, 3 Jul 2023 12:33:16 +0000 |
| 4 | Subject: [PATCH] [liftoff] Correct function signatures | 4 | Subject: [PATCH] [liftoff] Correct function signatures |
| 5 | 5 | ||
| 6 | Fixes builds on mips where clang reports an error | 6 | Fixes builds on mips where clang reports an error |
| @@ -13,16 +13,15 @@ Upstream-Status: Submitted [https://chromium-review.googlesource.com/c/v8/v8/+/3 | |||
| 13 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | 13 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> |
| 14 | --- | 14 | --- |
| 15 | deps/v8/src/wasm/baseline/liftoff-assembler.h | 6 +++--- | 15 | deps/v8/src/wasm/baseline/liftoff-assembler.h | 6 +++--- |
| 16 | deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h | 2 +- | ||
| 17 | deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h | 2 +- | 16 | deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h | 2 +- |
| 18 | .../src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h | 2 +- | 17 | deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64.h | 2 +- |
| 19 | 4 files changed, 6 insertions(+), 6 deletions(-) | 18 | 3 files changed, 5 insertions(+), 5 deletions(-) |
| 20 | 19 | ||
| 21 | diff --git a/deps/v8/src/wasm/baseline/liftoff-assembler.h b/deps/v8/src/wasm/baseline/liftoff-assembler.h | 20 | diff --git a/deps/v8/src/wasm/baseline/liftoff-assembler.h b/deps/v8/src/wasm/baseline/liftoff-assembler.h |
| 22 | index 22c7f73a..db4cb168 100644 | 21 | index aef63c64..f2a11b01 100644 |
| 23 | --- a/deps/v8/src/wasm/baseline/liftoff-assembler.h | 22 | --- a/deps/v8/src/wasm/baseline/liftoff-assembler.h |
| 24 | +++ b/deps/v8/src/wasm/baseline/liftoff-assembler.h | 23 | +++ b/deps/v8/src/wasm/baseline/liftoff-assembler.h |
| 25 | @@ -646,7 +646,7 @@ class LiftoffAssembler : public TurboAssembler { | 24 | @@ -717,7 +717,7 @@ class LiftoffAssembler : public MacroAssembler { |
| 26 | void FinishCall(const ValueKindSig*, compiler::CallDescriptor*); | 25 | void FinishCall(const ValueKindSig*, compiler::CallDescriptor*); |
| 27 | 26 | ||
| 28 | // Move {src} into {dst}. {src} and {dst} must be different. | 27 | // Move {src} into {dst}. {src} and {dst} must be different. |
| @@ -31,7 +30,7 @@ index 22c7f73a..db4cb168 100644 | |||
| 31 | 30 | ||
| 32 | // Parallel register move: For a list of tuples <dst, src, kind>, move the | 31 | // Parallel register move: For a list of tuples <dst, src, kind>, move the |
| 33 | // {src} register of kind {kind} into {dst}. If {src} equals {dst}, ignore | 32 | // {src} register of kind {kind} into {dst}. If {src} equals {dst}, ignore |
| 34 | @@ -795,8 +795,8 @@ class LiftoffAssembler : public TurboAssembler { | 33 | @@ -884,8 +884,8 @@ class LiftoffAssembler : public MacroAssembler { |
| 35 | inline void MoveStackValue(uint32_t dst_offset, uint32_t src_offset, | 34 | inline void MoveStackValue(uint32_t dst_offset, uint32_t src_offset, |
| 36 | ValueKind); | 35 | ValueKind); |
| 37 | 36 | ||
| @@ -42,24 +41,11 @@ index 22c7f73a..db4cb168 100644 | |||
| 42 | 41 | ||
| 43 | inline void Spill(int offset, LiftoffRegister, ValueKind); | 42 | inline void Spill(int offset, LiftoffRegister, ValueKind); |
| 44 | inline void Spill(int offset, WasmValue); | 43 | inline void Spill(int offset, WasmValue); |
| 45 | diff --git a/deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h b/deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h | ||
| 46 | index c76fd2f4..0fffe231 100644 | ||
| 47 | --- a/deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h | ||
| 48 | +++ b/deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h | ||
| 49 | @@ -661,7 +661,7 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg, | ||
| 50 | pinned = pinned | LiftoffRegList{dst_op.rm(), src}; | ||
| 51 | LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned); | ||
| 52 | // Save original value. | ||
| 53 | - Move(tmp, src, type.value_type()); | ||
| 54 | + Move(tmp, src, type.value_type().kind()); | ||
| 55 | |||
| 56 | src = tmp; | ||
| 57 | pinned.set(tmp); | ||
| 58 | diff --git a/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h b/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h | 44 | diff --git a/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h b/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h |
| 59 | index 36413545..48207337 100644 | 45 | index 96cba24c..53e1842d 100644 |
| 60 | --- a/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h | 46 | --- a/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h |
| 61 | +++ b/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h | 47 | +++ b/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h |
| 62 | @@ -593,7 +593,7 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg, | 48 | @@ -592,7 +592,7 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg, |
| 63 | pinned.set(dst_op.rm()); | 49 | pinned.set(dst_op.rm()); |
| 64 | LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned); | 50 | LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned); |
| 65 | // Save original value. | 51 | // Save original value. |
| @@ -68,11 +54,11 @@ index 36413545..48207337 100644 | |||
| 68 | 54 | ||
| 69 | src = tmp; | 55 | src = tmp; |
| 70 | pinned.set(tmp); | 56 | pinned.set(tmp); |
| 71 | diff --git a/deps/v8/src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h b/deps/v8/src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h | 57 | diff --git a/deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64.h b/deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64.h |
| 72 | index 642a7d2a..56ffcc2a 100644 | 58 | index 1d6ae09e..397e82b2 100644 |
| 73 | --- a/deps/v8/src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h | 59 | --- a/deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64.h |
| 74 | +++ b/deps/v8/src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h | 60 | +++ b/deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64.h |
| 75 | @@ -589,7 +589,7 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg, | 61 | @@ -286,7 +286,7 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg, |
| 76 | pinned.set(dst_op.rm()); | 62 | pinned.set(dst_op.rm()); |
| 77 | LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned); | 63 | LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned); |
| 78 | // Save original value. | 64 | // Save original value. |
| @@ -82,4 +68,4 @@ index 642a7d2a..56ffcc2a 100644 | |||
| 82 | src = tmp; | 68 | src = tmp; |
| 83 | pinned.set(tmp); | 69 | pinned.set(tmp); |
| 84 | -- | 70 | -- |
| 85 | 2.34.1 | 71 | 2.40.0 |
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-mips-Use-32bit-cast-for-operand-on-mips32.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-mips-Use-32bit-cast-for-operand-on-mips32.patch deleted file mode 100644 index a0242d8e18..0000000000 --- a/meta-oe/recipes-devtools/nodejs/nodejs/0001-mips-Use-32bit-cast-for-operand-on-mips32.patch +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | From e65dde8db17da5acddeef7eb9316199c4e5e0811 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 19 Apr 2022 12:40:25 -0700 | ||
| 4 | Subject: [PATCH] mips: Use 32bit cast for operand on mips32 | ||
| 5 | |||
| 6 | Fixes | ||
| 7 | deps/v8/src/compiler/backend/mips/code-generator-mips.cc: In member function 'void v8::internal::compiler::CodeGenerator::AssembleReturn(v8::internal::compiler::InstructionOperand*)': | ||
| 8 | ../deps/v8/src/compiler/backend/mips/code-generator-mips.cc:4233:48: error: call of overloaded 'Operand(int64_t)' is ambiguous | ||
| 9 | 4233 | Operand(static_cast<int64_t>(0))); | ||
| 10 | | ^ | ||
| 11 | |||
| 12 | Upstream-Status: Pending | ||
| 13 | |||
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 15 | --- | ||
| 16 | deps/v8/src/compiler/backend/mips/code-generator-mips.cc | 2 +- | ||
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/deps/v8/src/compiler/backend/mips/code-generator-mips.cc b/deps/v8/src/compiler/backend/mips/code-generator-mips.cc | ||
| 20 | index 2b8197e..b226140 100644 | ||
| 21 | --- a/deps/v8/src/compiler/backend/mips/code-generator-mips.cc | ||
| 22 | +++ b/deps/v8/src/compiler/backend/mips/code-generator-mips.cc | ||
| 23 | @@ -4230,7 +4230,7 @@ void CodeGenerator::AssembleReturn(InstructionOperand* additional_pop_count) { | ||
| 24 | } else if (FLAG_debug_code) { | ||
| 25 | __ Assert(eq, AbortReason::kUnexpectedAdditionalPopValue, | ||
| 26 | g.ToRegister(additional_pop_count), | ||
| 27 | - Operand(static_cast<int64_t>(0))); | ||
| 28 | + Operand(static_cast<int32_t>(0))); | ||
| 29 | } | ||
| 30 | } | ||
| 31 | // Functions with JS linkage have at least one parameter (the receiver). | ||
| 32 | -- | ||
| 33 | 2.36.0 | ||
| 34 | |||
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/big-endian.patch b/meta-oe/recipes-devtools/nodejs/nodejs/big-endian.patch deleted file mode 100644 index 529381842f..0000000000 --- a/meta-oe/recipes-devtools/nodejs/nodejs/big-endian.patch +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | |||
| 2 | https://github.com/v8/v8/commit/878ccb33bd3cf0e6dc018ff8d15843f585ac07be | ||
| 3 | |||
| 4 | did some automated cleanups but it missed big-endian code. | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | --- a/deps/v8/src/runtime/runtime-utils.h | ||
| 9 | +++ b/deps/v8/src/runtime/runtime-utils.h | ||
| 10 | @@ -126,7 +126,7 @@ static inline ObjectPair MakePair(Object | ||
| 11 | #if defined(V8_TARGET_LITTLE_ENDIAN) | ||
| 12 | return x.ptr() | (static_cast<ObjectPair>(y.ptr()) << 32); | ||
| 13 | #elif defined(V8_TARGET_BIG_ENDIAN) | ||
| 14 | - return y->ptr() | (static_cast<ObjectPair>(x->ptr()) << 32); | ||
| 15 | + return y.ptr() | (static_cast<ObjectPair>(x.ptr()) << 32); | ||
| 16 | #else | ||
| 17 | #error Unknown endianness | ||
| 18 | #endif | ||
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/mips-less-memory.patch b/meta-oe/recipes-devtools/nodejs/nodejs/mips-less-memory.patch deleted file mode 100644 index 16776cb762..0000000000 --- a/meta-oe/recipes-devtools/nodejs/nodejs/mips-less-memory.patch +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | Description: mksnapshot uses too much memory on 32-bit mipsel | ||
| 2 | Author: Jérémy Lal <kapouer@melix.org> | ||
| 3 | Last-Update: 2020-06-03 | ||
| 4 | Forwarded: https://bugs.chromium.org/p/v8/issues/detail?id=10586 | ||
| 5 | |||
| 6 | This ensures that we reserve 500M instead of 2G range for codegen | ||
| 7 | ensures that qemu-mips can allocate such large ranges | ||
| 8 | |||
| 9 | Upstream-Status: Inappropriate [embedded specific] | ||
| 10 | |||
| 11 | Imported from debian https://salsa.debian.org/js-team/nodejs/-/blob/master-12.x/debian/patches/mips-less-memory.patch | ||
| 12 | https://buildd.debian.org/status/fetch.php?pkg=nodejs&arch=mipsel&ver=12.17.0~dfsg-2&stamp=1591050388&raw=0 | ||
| 13 | |||
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 15 | |||
| 16 | --- a/deps/v8/src/common/globals.h | ||
| 17 | +++ b/deps/v8/src/common/globals.h | ||
| 18 | @@ -224,7 +224,7 @@ constexpr size_t kMinimumCodeRangeSize = | ||
| 19 | constexpr size_t kMinExpectedOSPageSize = 64 * KB; // OS page on PPC Linux | ||
| 20 | #elif V8_TARGET_ARCH_MIPS | ||
| 21 | constexpr bool kPlatformRequiresCodeRange = false; | ||
| 22 | -constexpr size_t kMaximalCodeRangeSize = 2048LL * MB; | ||
| 23 | +constexpr size_t kMaximalCodeRangeSize = 512 * MB; | ||
| 24 | constexpr size_t kMinimumCodeRangeSize = 0 * MB; | ||
| 25 | constexpr size_t kMinExpectedOSPageSize = 4 * KB; // OS page. | ||
| 26 | #else | ||
| 27 | --- a/deps/v8/src/codegen/mips/constants-mips.h | ||
| 28 | +++ b/deps/v8/src/codegen/mips/constants-mips.h | ||
| 29 | @@ -140,7 +140,7 @@ const uint32_t kLeastSignificantByteInIn | ||
| 30 | namespace v8 { | ||
| 31 | namespace internal { | ||
| 32 | |||
| 33 | -constexpr size_t kMaxPCRelativeCodeRangeInMB = 4096; | ||
| 34 | +constexpr size_t kMaxPCRelativeCodeRangeInMB = 1024; | ||
| 35 | |||
| 36 | // ----------------------------------------------------------------------------- | ||
| 37 | // Registers and FPURegisters. | ||
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_18.17.1.bb b/meta-oe/recipes-devtools/nodejs/nodejs_20.5.1.bb index ee5e848bf8..6bb0f7fabd 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs_18.17.1.bb +++ b/meta-oe/recipes-devtools/nodejs/nodejs_20.5.1.bb | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript" | 1 | DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript" |
| 2 | HOMEPAGE = "http://nodejs.org" | 2 | HOMEPAGE = "http://nodejs.org" |
| 3 | LICENSE = "MIT & ISC & BSD-2-Clause & BSD-3-Clause & Artistic-2.0 & Apache-2.0" | 3 | LICENSE = "MIT & ISC & BSD-2-Clause & BSD-3-Clause & Artistic-2.0 & Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=bc1f9ebe76be76f163e3b675303ad9cd" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=059ecf3a6f87111685e51b611b9563e5" |
| 5 | 5 | ||
| 6 | CVE_PRODUCT = "nodejs node.js" | 6 | CVE_PRODUCT = "nodejs node.js" |
| 7 | 7 | ||
| @@ -22,11 +22,8 @@ COMPATIBLE_HOST:powerpc = "null" | |||
| 22 | SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ | 22 | SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ |
| 23 | file://0001-Disable-running-gyp-files-for-bundled-deps.patch \ | 23 | file://0001-Disable-running-gyp-files-for-bundled-deps.patch \ |
| 24 | file://0004-v8-don-t-override-ARM-CFLAGS.patch \ | 24 | file://0004-v8-don-t-override-ARM-CFLAGS.patch \ |
| 25 | file://big-endian.patch \ | ||
| 26 | file://mips-less-memory.patch \ | ||
| 27 | file://system-c-ares.patch \ | 25 | file://system-c-ares.patch \ |
| 28 | file://0001-liftoff-Correct-function-signatures.patch \ | 26 | file://0001-liftoff-Correct-function-signatures.patch \ |
| 29 | file://0001-mips-Use-32bit-cast-for-operand-on-mips32.patch \ | ||
| 30 | file://run-ptest \ | 27 | file://run-ptest \ |
| 31 | " | 28 | " |
| 32 | 29 | ||
| @@ -39,7 +36,7 @@ SRC_URI:append:toolchain-clang:x86 = " \ | |||
| 39 | SRC_URI:append:toolchain-clang:powerpc64le = " \ | 36 | SRC_URI:append:toolchain-clang:powerpc64le = " \ |
| 40 | file://0001-ppc64-Do-not-use-mminimal-toc-with-clang.patch \ | 37 | file://0001-ppc64-Do-not-use-mminimal-toc-with-clang.patch \ |
| 41 | " | 38 | " |
| 42 | SRC_URI[sha256sum] = "f215cf03d0f00f07ac0b674c6819f804c1542e16f152da04980022aeccf5e65a" | 39 | SRC_URI[sha256sum] = "439c71aa2f38c2861657bfa538e99191a571258066cbfd4548586049c8134190" |
| 43 | 40 | ||
| 44 | S = "${WORKDIR}/node-v${PV}" | 41 | S = "${WORKDIR}/node-v${PV}" |
| 45 | 42 | ||
| @@ -148,8 +145,6 @@ do_configure () { | |||
| 148 | # $TARGET_ARCH settings don't match --dest-cpu settings | 145 | # $TARGET_ARCH settings don't match --dest-cpu settings |
| 149 | python3 configure.py --verbose --prefix=${prefix} \ | 146 | python3 configure.py --verbose --prefix=${prefix} \ |
| 150 | --shared-openssl \ | 147 | --shared-openssl \ |
| 151 | --without-dtrace \ | ||
| 152 | --without-etw \ | ||
| 153 | --dest-cpu="${@map_nodejs_arch(d.getVar('TARGET_ARCH'), d)}" \ | 148 | --dest-cpu="${@map_nodejs_arch(d.getVar('TARGET_ARCH'), d)}" \ |
| 154 | --dest-os=linux \ | 149 | --dest-os=linux \ |
| 155 | --libdir=${baselib} \ | 150 | --libdir=${baselib} \ |
