summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmeta-oe/recipes-devtools/nodejs/nodejs-oe-cache-18.12/oe-npm-cache (renamed from meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-16.18/oe-npm-cache)0
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_18.12.bb (renamed from meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_16.18.bb)0
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/0001-Using-native-binaries.patch24
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/0001-liftoff-Correct-function-signatures.patch32
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs_18.12.1.bb (renamed from meta-oe/recipes-devtools/nodejs/nodejs_16.18.1.bb)15
5 files changed, 42 insertions, 29 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-16.18/oe-npm-cache b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-18.12/oe-npm-cache
index f596207648..f596207648 100755
--- a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-16.18/oe-npm-cache
+++ b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-18.12/oe-npm-cache
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_16.18.bb b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_18.12.bb
index a61dd5018f..a61dd5018f 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_16.18.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_18.12.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 445aaf8398..feafe38fdb 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
@@ -5,32 +5,24 @@ Subject: [PATCH] Using native binaries
5 5
6Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> 6Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
7--- 7---
8 node.gyp | 2 ++ 8 node.gyp | 1 +
9 tools/v8_gypfiles/v8.gyp | 5 +++++ 9 tools/v8_gypfiles/v8.gyp | 5 +++++
10 2 files changed, 7 insertions(+) 10 2 files changed, 6 insertions(+)
11 11
12diff --git a/node.gyp b/node.gyp 12diff --git a/node.gyp b/node.gyp
13index 24505da7ba..7d41bd52db 100644 13index e8e1d9f9..e60ccc10 100644
14--- a/node.gyp 14--- a/node.gyp
15+++ b/node.gyp 15+++ b/node.gyp
16@@ -319,6 +319,7 @@ 16@@ -320,6 +320,7 @@
17 'action_name': 'run_mkcodecache',
18 'process_outputs_as_sources': 1,
19 'inputs': [
20+ '<(PRODUCT_DIR)/v8-qemu-wrapper.sh',
21 '<(mkcodecache_exec)',
22 ],
23 'outputs': [
24@@ -366,6 +367,7 @@
25 'action_name': 'node_mksnapshot', 17 'action_name': 'node_mksnapshot',
26 'process_outputs_as_sources': 1, 18 'process_outputs_as_sources': 1,
27 'inputs': [ 19 'inputs': [
28+ '<(PRODUCT_DIR)/v8-qemu-wrapper.sh', 20+ '<(PRODUCT_DIR)/v8-qemu-wrapper.sh',
29 '<(node_mksnapshot_exec)', 21 '<(node_mksnapshot_exec)',
22 '<(node_snapshot_main)',
30 ], 23 ],
31 'outputs': [
32diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp 24diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp
33index ed042f8829..371b8e02c2 100644 25index 42e26cd9..bc721991 100644
34--- a/tools/v8_gypfiles/v8.gyp 26--- a/tools/v8_gypfiles/v8.gyp
35+++ b/tools/v8_gypfiles/v8.gyp 27+++ b/tools/v8_gypfiles/v8.gyp
36@@ -68,6 +68,7 @@ 28@@ -68,6 +68,7 @@
@@ -57,7 +49,7 @@ index ed042f8829..371b8e02c2 100644
57 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)bytecode_builtins_list_generator<(EXECUTABLE_SUFFIX)', 49 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)bytecode_builtins_list_generator<(EXECUTABLE_SUFFIX)',
58 ], 50 ],
59 'outputs': [ 51 'outputs': [
60@@ -395,6 +398,7 @@ 52@@ -400,6 +403,7 @@
61 ], 53 ],
62 }, 54 },
63 'inputs': [ 55 'inputs': [
@@ -65,7 +57,7 @@ index ed042f8829..371b8e02c2 100644
65 '<(mksnapshot_exec)', 57 '<(mksnapshot_exec)',
66 ], 58 ],
67 'outputs': [ 59 'outputs': [
68@@ -1513,6 +1517,7 @@ 60@@ -1539,6 +1543,7 @@
69 { 61 {
70 'action_name': 'run_gen-regexp-special-case_action', 62 'action_name': 'run_gen-regexp-special-case_action',
71 'inputs': [ 63 'inputs': [
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 d7005ae972..c9a522d2e2 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
@@ -9,14 +9,20 @@ Fixes builds on mips where clang reports an error
9 ^~~~ 9 ^~~~
10 10
11Upstream-Status: Submitted [https://chromium-review.googlesource.com/c/v8/v8/+/3235674] 11Upstream-Status: Submitted [https://chromium-review.googlesource.com/c/v8/v8/+/3235674]
12Signed-off-by: Khem Raj <raj.khem@gmail.com> 12
13Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
13--- 14---
14 src/wasm/baseline/liftoff-assembler.h | 6 +++--- 15 deps/v8/src/wasm/baseline/liftoff-assembler.h | 6 +++---
15 1 file changed, 3 insertions(+), 3 deletions(-) 16 deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h | 2 +-
17 deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h | 2 +-
18 .../src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h | 2 +-
19 4 files changed, 6 insertions(+), 6 deletions(-)
16 20
21diff --git a/deps/v8/src/wasm/baseline/liftoff-assembler.h b/deps/v8/src/wasm/baseline/liftoff-assembler.h
22index 22c7f73a..db4cb168 100644
17--- a/deps/v8/src/wasm/baseline/liftoff-assembler.h 23--- a/deps/v8/src/wasm/baseline/liftoff-assembler.h
18+++ b/deps/v8/src/wasm/baseline/liftoff-assembler.h 24+++ b/deps/v8/src/wasm/baseline/liftoff-assembler.h
19@@ -613,7 +613,7 @@ class LiftoffAssembler : public TurboAss 25@@ -646,7 +646,7 @@ class LiftoffAssembler : public TurboAssembler {
20 void FinishCall(const ValueKindSig*, compiler::CallDescriptor*); 26 void FinishCall(const ValueKindSig*, compiler::CallDescriptor*);
21 27
22 // Move {src} into {dst}. {src} and {dst} must be different. 28 // Move {src} into {dst}. {src} and {dst} must be different.
@@ -25,7 +31,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
25 31
26 // Parallel register move: For a list of tuples <dst, src, kind>, move the 32 // Parallel register move: For a list of tuples <dst, src, kind>, move the
27 // {src} register of kind {kind} into {dst}. If {src} equals {dst}, ignore 33 // {src} register of kind {kind} into {dst}. If {src} equals {dst}, ignore
28@@ -759,8 +759,8 @@ class LiftoffAssembler : public TurboAss 34@@ -795,8 +795,8 @@ class LiftoffAssembler : public TurboAssembler {
29 inline void MoveStackValue(uint32_t dst_offset, uint32_t src_offset, 35 inline void MoveStackValue(uint32_t dst_offset, uint32_t src_offset,
30 ValueKind); 36 ValueKind);
31 37
@@ -36,10 +42,12 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
36 42
37 inline void Spill(int offset, LiftoffRegister, ValueKind); 43 inline void Spill(int offset, LiftoffRegister, ValueKind);
38 inline void Spill(int offset, WasmValue); 44 inline void Spill(int offset, WasmValue);
45diff --git a/deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h b/deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h
46index c76fd2f4..0fffe231 100644
39--- a/deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h 47--- a/deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h
40+++ b/deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h 48+++ b/deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h
41@@ -658,7 +658,7 @@ void LiftoffAssembler::Store(Register ds 49@@ -661,7 +661,7 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg,
42 pinned = pinned | LiftoffRegList::ForRegs(dst_op.rm(), src); 50 pinned = pinned | LiftoffRegList{dst_op.rm(), src};
43 LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned); 51 LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned);
44 // Save original value. 52 // Save original value.
45- Move(tmp, src, type.value_type()); 53- Move(tmp, src, type.value_type());
@@ -47,9 +55,11 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
47 55
48 src = tmp; 56 src = tmp;
49 pinned.set(tmp); 57 pinned.set(tmp);
58diff --git a/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h b/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h
59index 36413545..48207337 100644
50--- a/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h 60--- a/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h
51+++ b/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h 61+++ b/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h
52@@ -596,7 +596,7 @@ void LiftoffAssembler::Store(Register ds 62@@ -593,7 +593,7 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg,
53 pinned.set(dst_op.rm()); 63 pinned.set(dst_op.rm());
54 LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned); 64 LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned);
55 // Save original value. 65 // Save original value.
@@ -58,9 +68,11 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
58 68
59 src = tmp; 69 src = tmp;
60 pinned.set(tmp); 70 pinned.set(tmp);
71diff --git a/deps/v8/src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h b/deps/v8/src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h
72index 642a7d2a..56ffcc2a 100644
61--- a/deps/v8/src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h 73--- a/deps/v8/src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h
62+++ b/deps/v8/src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h 74+++ b/deps/v8/src/wasm/baseline/riscv64/liftoff-assembler-riscv64.h
63@@ -580,7 +580,7 @@ void LiftoffAssembler::Store(Register ds 75@@ -589,7 +589,7 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg,
64 pinned.set(dst_op.rm()); 76 pinned.set(dst_op.rm());
65 LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned); 77 LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned);
66 // Save original value. 78 // Save original value.
@@ -69,3 +81,5 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
69 81
70 src = tmp; 82 src = tmp;
71 pinned.set(tmp); 83 pinned.set(tmp);
84--
852.34.1
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_16.18.1.bb b/meta-oe/recipes-devtools/nodejs/nodejs_18.12.1.bb
index a67948320d..e96913e563 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs_16.18.1.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_18.12.1.bb
@@ -1,13 +1,13 @@
1DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript" 1DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript"
2HOMEPAGE = "http://nodejs.org" 2HOMEPAGE = "http://nodejs.org"
3LICENSE = "MIT & ISC & BSD-2-Clause & BSD-3-Clause & Artistic-2.0" 3LICENSE = "MIT & ISC & BSD-2-Clause & BSD-3-Clause & Artistic-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=6e54852cd826c41e80c6d80f6db00a85" 4LIC_FILES_CHKSUM = "file://LICENSE;md5=dfd7ae796baf5326016a3865ee1dc632"
5 5
6DEPENDS = "openssl" 6DEPENDS = "openssl"
7DEPENDS:append:class-target = " qemu-native" 7DEPENDS:append:class-target = " qemu-native"
8DEPENDS:append:class-native = " c-ares-native" 8DEPENDS:append:class-native = " c-ares-native"
9 9
10inherit pkgconfig python3native qemu 10inherit pkgconfig python3native qemu ptest
11 11
12COMPATIBLE_MACHINE:armv4 = "(!.*armv4).*" 12COMPATIBLE_MACHINE:armv4 = "(!.*armv4).*"
13COMPATIBLE_MACHINE:armv5 = "(!.*armv5).*" 13COMPATIBLE_MACHINE:armv5 = "(!.*armv5).*"
@@ -26,6 +26,7 @@ SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \
26 file://0001-liftoff-Correct-function-signatures.patch \ 26 file://0001-liftoff-Correct-function-signatures.patch \
27 file://0001-mips-Use-32bit-cast-for-operand-on-mips32.patch \ 27 file://0001-mips-Use-32bit-cast-for-operand-on-mips32.patch \
28 " 28 "
29
29SRC_URI:append:class-target = " \ 30SRC_URI:append:class-target = " \
30 file://0001-Using-native-binaries.patch \ 31 file://0001-Using-native-binaries.patch \
31 " 32 "
@@ -35,7 +36,7 @@ SRC_URI:append:toolchain-clang:x86 = " \
35SRC_URI:append:toolchain-clang:powerpc64le = " \ 36SRC_URI:append:toolchain-clang:powerpc64le = " \
36 file://0001-ppc64-Do-not-use-mminimal-toc-with-clang.patch \ 37 file://0001-ppc64-Do-not-use-mminimal-toc-with-clang.patch \
37 " 38 "
38SRC_URI[sha256sum] = "1f8051a88f86f42064f4415fe7a980e59b0a502ecc8def583f6303bc4d445238" 39SRC_URI[sha256sum] = "4fa406451bc52659a290e52cfdb2162a760bd549da4b8bbebe6a29f296d938df"
39 40
40S = "${WORKDIR}/node-v${PV}" 41S = "${WORKDIR}/node-v${PV}"
41 42
@@ -151,6 +152,7 @@ do_configure () {
151 152
152do_compile () { 153do_compile () {
153 export LD="${CXX}" 154 export LD="${CXX}"
155 install -D ${RECIPE_SYSROOT_NATIVE}/etc/ssl/openssl.cnf ${B}/deps/openssl/nodejs-openssl.cnf
154 install -D ${B}/v8-qemu-wrapper.sh ${B}/out/Release/v8-qemu-wrapper.sh 156 install -D ${B}/v8-qemu-wrapper.sh ${B}/out/Release/v8-qemu-wrapper.sh
155 oe_runmake BUILDTYPE=Release 157 oe_runmake BUILDTYPE=Release
156} 158}
@@ -159,10 +161,15 @@ do_install () {
159 oe_runmake install DESTDIR=${D} 161 oe_runmake install DESTDIR=${D}
160} 162}
161 163
164do_install_ptest () {
165 cp -r ${B}/out/Release/cctest ${D}${PTEST_PATH}/
166 cp -r ${B}/test ${D}${PTEST_PATH}
167 chown -R root:root ${D}${PTEST_PATH}
168}
169
162BINARIES = " \ 170BINARIES = " \
163 bytecode_builtins_list_generator \ 171 bytecode_builtins_list_generator \
164 ${@bb.utils.contains('PACKAGECONFIG', 'icu', 'gen-regexp-special-case', '', d)} \ 172 ${@bb.utils.contains('PACKAGECONFIG', 'icu', 'gen-regexp-special-case', '', d)} \
165 mkcodecache \
166 node_mksnapshot \ 173 node_mksnapshot \
167 torque \ 174 torque \
168" 175"