summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/nodejs
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/nodejs')
-rwxr-xr-xmeta-oe/recipes-devtools/nodejs/nodejs-oe-cache-22.16/oe-npm-cache (renamed from meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-20.17/oe-npm-cache)0
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_22.16.bb (renamed from meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_20.17.bb)3
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/0001-Disable-running-gyp-files-for-bundled-deps.patch15
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/0001-Do-not-use-glob-in-deps.patch22
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/0001-build-fix-build-with-Python-3.12.patch55
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/0001-custom-env.patch18
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/0001-deps-disable-io_uring-support-in-libuv.patch60
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/0001-gyp-resolve-python-3.12-issues.patch63
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/0001-liftoff-Correct-function-signatures.patch38
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/0001-positional-args.patch19
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/0004-v8-don-t-override-ARM-CFLAGS.patch11
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/182d9c05e78.patch182
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/libatomic.patch2
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/system-c-ares.patch12
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs_22.16.0.bb (renamed from meta-oe/recipes-devtools/nodejs/nodejs_20.17.0.bb)16
15 files changed, 171 insertions, 345 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-20.17/oe-npm-cache b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-22.16/oe-npm-cache
index eb0f143eae..eb0f143eae 100755
--- a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-20.17/oe-npm-cache
+++ b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-22.16/oe-npm-cache
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_20.17.bb b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_22.16.bb
index d4b818f967..1dcd1f7926 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_20.17.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs-oe-cache-native_22.16.bb
@@ -8,8 +8,7 @@ SRC_URI = "\
8 8
9inherit native 9inherit native
10 10
11S = "${WORKDIR}/sources" 11S = "${UNPACKDIR}"
12UNPACKDIR = "${S}"
13 12
14B = "${WORKDIR}/build" 13B = "${WORKDIR}/build"
15 14
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-Disable-running-gyp-files-for-bundled-deps.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-Disable-running-gyp-files-for-bundled-deps.patch
index 12f6cd8b96..f692eedd41 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs/0001-Disable-running-gyp-files-for-bundled-deps.patch
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-Disable-running-gyp-files-for-bundled-deps.patch
@@ -1,4 +1,4 @@
1From 7d94bfe53beeb2d25eb5f2ff6b1d509df7e6ab80 Mon Sep 17 00:00:00 2001 1From 689e098cbde130ecde523ae39df3567456271fda Mon Sep 17 00:00:00 2001
2From: Zuzana Svetlikova <zsvetlik@redhat.com> 2From: Zuzana Svetlikova <zsvetlik@redhat.com>
3Date: Thu, 27 Apr 2017 14:25:42 +0200 3Date: Thu, 27 Apr 2017 14:25:42 +0200
4Subject: [PATCH] Disable running gyp on shared deps 4Subject: [PATCH] Disable running gyp on shared deps
@@ -28,19 +28,20 @@ python prune_sources() {
28 shutil.rmtree(d.getVar('S') + '/deps/zlib') 28 shutil.rmtree(d.getVar('S') + '/deps/zlib')
29} 29}
30do_unpack[postfuncs] += "prune_sources" 30do_unpack[postfuncs] += "prune_sources"
31
32--- 31---
33 Makefile | 2 +- 32 Makefile | 2 +-
34 1 file changed, 1 insertion(+), 1 deletion(-) 33 1 file changed, 1 insertion(+), 1 deletion(-)
35 34
35diff --git a/Makefile b/Makefile
36index dba16e5e..da4faffc 100644
36--- a/Makefile 37--- a/Makefile
37+++ b/Makefile 38+++ b/Makefile
38@@ -169,7 +169,7 @@ with-code-cache test-code-cache: 39@@ -173,7 +173,7 @@ with-code-cache test-code-cache:
39 $(warning '$@' target is a noop) 40 $(warning '$@' target is a noop)
40 41
41 out/Makefile: config.gypi common.gypi node.gyp \ 42 out/Makefile: config.gypi common.gypi common_node.gypi node.gyp \
42- deps/uv/uv.gyp deps/llhttp/llhttp.gyp deps/zlib/zlib.gyp \ 43- deps/uv/uv.gyp deps/llhttp/llhttp.gyp deps/zlib/zlib.gyp \
43+ deps/llhttp/llhttp.gyp \ 44+ deps/llhttp/llhttp.gyp \
44 deps/simdutf/simdutf.gyp deps/ada/ada.gyp \ 45 deps/simdutf/simdutf.gyp deps/ada/ada.gyp deps/nbytes/nbytes.gyp \
45 tools/v8_gypfiles/toolchain.gypi tools/v8_gypfiles/features.gypi \ 46 tools/v8_gypfiles/toolchain.gypi \
46 tools/v8_gypfiles/inspector.gypi tools/v8_gypfiles/v8.gyp 47 tools/v8_gypfiles/features.gypi \
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-Do-not-use-glob-in-deps.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-Do-not-use-glob-in-deps.patch
new file mode 100644
index 0000000000..551869523e
--- /dev/null
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-Do-not-use-glob-in-deps.patch
@@ -0,0 +1,22 @@
1// Revert the patch found here https://github.com/nodejs/node/commit/fe1dd26398e1887b96b2dc51ab59371ad4d6bc20?diff=unified&w=0
2// so that the dependencies are still explicitly enumerated. That way we
3// can pick and choose which pieces to build and which to use existing system
4// packages for.
5
6Upstream-Status: Inappropriate [embedded specific]
7
8
9--- a/Makefile 2025-01-11 14:37:29.059536707 -0500
10+++ b/Makefile 2025-01-11 14:39:52.419867046 -0500
11@@ -171,7 +171,8 @@
12 $(warning '$@' target is a noop)
13
14 out/Makefile: config.gypi common.gypi common_node.gypi node.gyp \
15- deps/*/*.gyp \
16+ deps/uv/uv.gyp deps/llhttp/llhttp.gyp deps/zlib/zlib.gyp \
17+ deps/simdutf/simdutf.gyp deps/ada/ada.gyp deps/nbytes/nbytes.gyp \
18 tools/v8_gypfiles/toolchain.gypi \
19 tools/v8_gypfiles/features.gypi \
20 tools/v8_gypfiles/inspector.gypi tools/v8_gypfiles/v8.gyp
21
22
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-build-fix-build-with-Python-3.12.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-build-fix-build-with-Python-3.12.patch
deleted file mode 100644
index 39026d0742..0000000000
--- a/meta-oe/recipes-devtools/nodejs/nodejs/0001-build-fix-build-with-Python-3.12.patch
+++ /dev/null
@@ -1,55 +0,0 @@
1From 656f6c91f1da7f1e1ffb01e2de7d9026a84958b5 Mon Sep 17 00:00:00 2001
2From: Luigi Pinca <luigipinca@gmail.com>
3Date: Wed, 8 Nov 2023 21:20:53 +0100
4Subject: [PATCH] build: fix build with Python 3.12
5
6Replace `distutils.version.StrictVersion` with
7`packaging.version.Version`.
8
9Refs: https://github.com/nodejs/node/pull/50209#issuecomment-1795852539
10PR-URL: https://github.com/nodejs/node/pull/50582
11Reviewed-By: Richard Lau <rlau@redhat.com>
12Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
13
14Upstream-Status: Backport [https://github.com/nodejs/node/commit/95534ad82f4e33f53fd50efe633d43f8da70cba6]
15Signed-off-by: Alexander Kanavin <alex@linutronix.de>
16---
17 configure.py | 11 +++++------
18 1 file changed, 5 insertions(+), 6 deletions(-)
19
20diff --git a/configure.py b/configure.py
21index 62f041ce..18fe7c14 100755
22--- a/configure.py
23+++ b/configure.py
24@@ -14,8 +14,6 @@ import bz2
25 import io
26 from pathlib import Path
27
28-from distutils.version import StrictVersion
29-
30 # If not run from node/, cd to node/.
31 os.chdir(Path(__file__).parent)
32
33@@ -30,6 +28,7 @@ tools_path = Path('tools')
34
35 sys.path.insert(0, str(tools_path / 'gyp' / 'pylib'))
36 from gyp.common import GetFlavor
37+from packaging.version import Version
38
39 # imports in tools/configure.d
40 sys.path.insert(0, str(tools_path / 'configure.d'))
41@@ -1565,10 +1564,10 @@ def configure_openssl(o):
42 # supported asm compiler for AVX2. See https://github.com/openssl/openssl/
43 # blob/OpenSSL_1_1_0-stable/crypto/modes/asm/aesni-gcm-x86_64.pl#L52-L69
44 openssl110_asm_supported = \
45- ('gas_version' in variables and StrictVersion(variables['gas_version']) >= StrictVersion('2.23')) or \
46- ('xcode_version' in variables and StrictVersion(variables['xcode_version']) >= StrictVersion('5.0')) or \
47- ('llvm_version' in variables and StrictVersion(variables['llvm_version']) >= StrictVersion('3.3')) or \
48- ('nasm_version' in variables and StrictVersion(variables['nasm_version']) >= StrictVersion('2.10'))
49+ ('gas_version' in variables and Version(variables['gas_version']) >= Version('2.23')) or \
50+ ('xcode_version' in variables and Version(variables['xcode_version']) >= Version('5.0')) or \
51+ ('llvm_version' in variables and Version(variables['llvm_version']) >= Version('3.3')) or \
52+ ('nasm_version' in variables and Version(variables['nasm_version']) >= Version('2.10'))
53
54 if is_x86 and not openssl110_asm_supported:
55 error('''Did not find a new enough assembler, install one or build with
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-custom-env.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-custom-env.patch
new file mode 100644
index 0000000000..532d3c5f51
--- /dev/null
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-custom-env.patch
@@ -0,0 +1,18 @@
1From 9c1a31afdcf368f794b9f5378cb3fe759570f905 Mon Sep 17 00:00:00 2001
2From: Jason Schonberg <schonm@gmail.com>
3Date: Tue, 30 Apr 2024 21:48:33 -0400
4Subject: [PATCH] Update to nodejs 22.0.0
5
6Upstream-Status: Inappropriate [embedded specific]
7---
8 test/fixtures/run-script/node_modules/.bin/custom-env | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/test/fixtures/run-script/node_modules/.bin/custom-env b/test/fixtures/run-script/node_modules/.bin/custom-env
12index e6f291c6..1430f2e9 100755
13--- a/test/fixtures/run-script/node_modules/.bin/custom-env
14+++ b/test/fixtures/run-script/node_modules/.bin/custom-env
15@@ -1,2 +1,2 @@
16-#!/bin/bash
17+#!/bin/sh
18 echo "$CUSTOM_ENV"
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-deps-disable-io_uring-support-in-libuv.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-deps-disable-io_uring-support-in-libuv.patch
new file mode 100644
index 0000000000..01ae50cdc4
--- /dev/null
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-deps-disable-io_uring-support-in-libuv.patch
@@ -0,0 +1,60 @@
1From 79af9bd6ac1040f1fe3c6cab26b2d040ad907870 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Fri, 1 Mar 2024 15:46:11 +0800
4Subject: [PATCH] deps: disable io_uring support in libuv
5
6Refer [1], Pseudo fails to intercept some of the syscalls when io_uring
7enabled. Refer [2], always disable io_uring support in libuv to fix
8issue in [1].
9
10[1] https://git.openembedded.org/meta-openembedded/commit/?id=d08453978c31ee41d28206c6ff198d7d9d701d88
11[2] https://github.com/nodejs/node/commit/686da19abb
12
13Upstream-Status: Inappropriate [oe specific]
14
15Signed-off-by: Changqing Li <changqing.li@windriver.com>
16Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
17---
18 deps/uv/src/unix/linux.c | 29 +----------------------------
19 1 file changed, 1 insertion(+), 28 deletions(-)
20
21diff --git a/deps/uv/src/unix/linux.c b/deps/uv/src/unix/linux.c
22index 803a9a9d3f0..a4735f56cf0 100644
23--- a/deps/uv/src/unix/linux.c
24+++ b/deps/uv/src/unix/linux.c
25@@ -465,34 +465,7 @@ static int uv__use_io_uring(void) {
26 /* See https://github.com/libuv/libuv/issues/4283. */
27 return 0; /* Random SIGSEGV in signal handler. */
28 #else
29- /* Ternary: unknown=0, yes=1, no=-1 */
30- static _Atomic int use_io_uring;
31- char* val;
32- int use;
33-
34- use = atomic_load_explicit(&use_io_uring, memory_order_relaxed);
35-
36- if (use == 0) {
37- use = uv__kernel_version() >=
38-#if defined(__hppa__)
39- /* io_uring first supported on parisc in 6.1, functional in .51 */
40- /* https://lore.kernel.org/all/cb912694-b1fe-dbb0-4d8c-d608f3526905@gmx.de/ */
41- /* 6.1.51 */ 0x060133
42-#else
43- /* Older kernels have a bug where the sqpoll thread uses 100% CPU. */
44- /* 5.10.186 */ 0x050ABA
45-#endif
46- ? 1 : -1;
47-
48- /* But users can still enable it if they so desire. */
49- val = getenv("UV_USE_IO_URING");
50- if (val != NULL)
51- use = atoi(val) ? 1 : -1;
52-
53- atomic_store_explicit(&use_io_uring, use, memory_order_relaxed);
54- }
55-
56- return use > 0;
57+ return 0; /* pseudo doesn't support io_uring https://bugzilla.yoctoproject.org/show_bug.cgi?id=15244 */
58 #endif
59 }
60
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-gyp-resolve-python-3.12-issues.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-gyp-resolve-python-3.12-issues.patch
deleted file mode 100644
index 9d878dfb8d..0000000000
--- a/meta-oe/recipes-devtools/nodejs/nodejs/0001-gyp-resolve-python-3.12-issues.patch
+++ /dev/null
@@ -1,63 +0,0 @@
1From bf8c96ba6936050ed4a0de5bc8aeeaf2b3c50dc1 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Thu, 7 Dec 2023 12:54:30 +0100
4Subject: [PATCH] gyp: resolve python 3.12 issues
5
6Upstream has updated gyp wholesale in the main branch, so
7this patch can be dropped in due time.
8
9Upstream-Status: Inappropriate [issue will be fixed upstream with the next nodejs LTS update]
10
11Signed-off-by: Alexander Kanavin <alex@linutronix.de>
12---
13 deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py | 4 ++--
14 tools/gyp/pylib/gyp/input.py | 4 ++--
15 2 files changed, 4 insertions(+), 4 deletions(-)
16
17diff --git a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py
18index d9699a0a..173e9465 100644
19--- a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py
20+++ b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py
21@@ -16,7 +16,7 @@ import subprocess
22 import sys
23 import threading
24 import traceback
25-from distutils.version import StrictVersion
26+from packaging.version import Version
27 from gyp.common import GypError
28 from gyp.common import OrderedSet
29
30@@ -1183,7 +1183,7 @@ def EvalSingleCondition(cond_expr, true_dict, false_dict, phase, variables, buil
31 else:
32 ast_code = compile(cond_expr_expanded, "<string>", "eval")
33 cached_conditions_asts[cond_expr_expanded] = ast_code
34- env = {"__builtins__": {}, "v": StrictVersion}
35+ env = {"__builtins__": {}, "v": Version}
36 if eval(ast_code, env, variables):
37 return true_dict
38 return false_dict
39diff --git a/tools/gyp/pylib/gyp/input.py b/tools/gyp/pylib/gyp/input.py
40index 354958bf..ab6112e5 100644
41--- a/tools/gyp/pylib/gyp/input.py
42+++ b/tools/gyp/pylib/gyp/input.py
43@@ -16,7 +16,7 @@ import subprocess
44 import sys
45 import threading
46 import traceback
47-from distutils.version import StrictVersion
48+from packaging.version import Version
49 from gyp.common import GypError
50 from gyp.common import OrderedSet
51
52@@ -1190,7 +1190,7 @@ def EvalSingleCondition(cond_expr, true_dict, false_dict, phase, variables, buil
53 else:
54 ast_code = compile(cond_expr_expanded, "<string>", "eval")
55 cached_conditions_asts[cond_expr_expanded] = ast_code
56- env = {"__builtins__": {}, "v": StrictVersion}
57+ env = {"__builtins__": {}, "v": Version}
58 if eval(ast_code, env, variables):
59 return true_dict
60 return false_dict
61--
622.39.2
63
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 5af87d866e..5e617e6554 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,7 +1,7 @@
1From dc3652c0abcdf8573fd044907b19d8eda7ca1124 Mon Sep 17 00:00:00 2001 1From 33393507ba8209f0d6b85b391c525b4c70807275 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 3 Jul 2023 12:33:16 +0000 3Date: Mon, 3 Jul 2023 12:33:16 +0000
4Subject: [PATCH] [liftoff] Correct function signatures 4Subject: [PATCH] Correct function signatures
5 5
6Fixes builds on mips where clang reports an error 6Fixes builds on mips where clang reports an error
7../deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h:661:5: error: no matching member function for call to 'Move' 7../deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h:661:5: error: no matching member function for call to 'Move'
@@ -13,15 +13,15 @@ Upstream-Status: Submitted [https://chromium-review.googlesource.com/c/v8/v8/+/3
13Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> 13Signed-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/mips64/liftoff-assembler-mips64.h | 2 +- 16 .../src/wasm/baseline/mips64/liftoff-assembler-mips64-inl.h | 2 +-
17 deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64.h | 2 +- 17 .../src/wasm/baseline/riscv/liftoff-assembler-riscv64-inl.h | 2 +-
18 3 files changed, 5 insertions(+), 5 deletions(-) 18 3 files changed, 5 insertions(+), 5 deletions(-)
19 19
20diff --git a/deps/v8/src/wasm/baseline/liftoff-assembler.h b/deps/v8/src/wasm/baseline/liftoff-assembler.h 20diff --git a/deps/v8/src/wasm/baseline/liftoff-assembler.h b/deps/v8/src/wasm/baseline/liftoff-assembler.h
21index aef63c64..f2a11b01 100644 21index 7cb2f500..713d16db 100644
22--- a/deps/v8/src/wasm/baseline/liftoff-assembler.h 22--- a/deps/v8/src/wasm/baseline/liftoff-assembler.h
23+++ b/deps/v8/src/wasm/baseline/liftoff-assembler.h 23+++ b/deps/v8/src/wasm/baseline/liftoff-assembler.h
24@@ -717,7 +717,7 @@ class LiftoffAssembler : public MacroAssembler { 24@@ -681,7 +681,7 @@ class LiftoffAssembler : public MacroAssembler {
25 void FinishCall(const ValueKindSig*, compiler::CallDescriptor*); 25 void FinishCall(const ValueKindSig*, compiler::CallDescriptor*);
26 26
27 // Move {src} into {dst}. {src} and {dst} must be different. 27 // Move {src} into {dst}. {src} and {dst} must be different.
@@ -30,7 +30,7 @@ index aef63c64..f2a11b01 100644
30 30
31 // 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
32 // {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
33@@ -884,8 +884,8 @@ class LiftoffAssembler : public MacroAssembler { 33@@ -851,8 +851,8 @@ class LiftoffAssembler : public MacroAssembler {
34 inline void MoveStackValue(uint32_t dst_offset, uint32_t src_offset, 34 inline void MoveStackValue(uint32_t dst_offset, uint32_t src_offset,
35 ValueKind); 35 ValueKind);
36 36
@@ -41,24 +41,24 @@ index aef63c64..f2a11b01 100644
41 41
42 inline void Spill(int offset, LiftoffRegister, ValueKind); 42 inline void Spill(int offset, LiftoffRegister, ValueKind);
43 inline void Spill(int offset, WasmValue); 43 inline void Spill(int offset, WasmValue);
44diff --git a/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h b/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h 44diff --git a/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64-inl.h b/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64-inl.h
45index 96cba24c..53e1842d 100644 45index bd59f162..56b4d70c 100644
46--- a/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h 46--- a/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64-inl.h
47+++ b/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h 47+++ b/deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64-inl.h
48@@ -592,7 +592,7 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg, 48@@ -672,7 +672,7 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg,
49 pinned.set(dst_op.rm()); 49 pinned.set(dst_op.rm());
50 LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned); 50 LiftoffRegister tmp = kScratchReg2;
51 // Save original value. 51 // Save original value.
52- Move(tmp, src, type.value_type()); 52- Move(tmp, src, type.value_type());
53+ Move(tmp, src, type.value_type().kind()); 53+ Move(tmp, src, type.value_type().kind());
54 54
55 src = tmp; 55 src = tmp;
56 pinned.set(tmp); 56 pinned.set(tmp);
57diff --git a/deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64.h b/deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64.h 57diff --git a/deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64-inl.h b/deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64-inl.h
58index 1d6ae09e..397e82b2 100644 58index a3c94af0..456e5334 100644
59--- a/deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64.h 59--- a/deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64-inl.h
60+++ b/deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64.h 60+++ b/deps/v8/src/wasm/baseline/riscv/liftoff-assembler-riscv64-inl.h
61@@ -286,7 +286,7 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg, 61@@ -452,7 +452,7 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg,
62 pinned.set(dst_op.rm()); 62 pinned.set(dst_op.rm());
63 LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned); 63 LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned);
64 // Save original value. 64 // Save original value.
@@ -67,5 +67,3 @@ index 1d6ae09e..397e82b2 100644
67 67
68 src = tmp; 68 src = tmp;
69 pinned.set(tmp); 69 pinned.set(tmp);
70--
712.40.0
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-positional-args.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-positional-args.patch
new file mode 100644
index 0000000000..5fd6aee351
--- /dev/null
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-positional-args.patch
@@ -0,0 +1,19 @@
1From 07ee84863fa4a9e4d5f155632478587b0acbf71a Mon Sep 17 00:00:00 2001
2From: Jason Schonberg <schonm@gmail.com>
3Date: Tue, 30 Apr 2024 21:48:33 -0400
4Subject: [PATCH] Update to nodejs 22.0.0
5
6Upstream-Status: Inappropriate [embedded specific]
7---
8 test/fixtures/run-script/node_modules/.bin/positional-args | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/test/fixtures/run-script/node_modules/.bin/positional-args b/test/fixtures/run-script/node_modules/.bin/positional-args
12index 2d809237..3dc5314f 100755
13--- a/test/fixtures/run-script/node_modules/.bin/positional-args
14+++ b/test/fixtures/run-script/node_modules/.bin/positional-args
15@@ -1,3 +1,3 @@
16-#!/bin/bash
17+#!/bin/sh
18 echo "Arguments: '$@'"
19 echo "The total number of arguments are: $#"
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0004-v8-don-t-override-ARM-CFLAGS.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0004-v8-don-t-override-ARM-CFLAGS.patch
index 97ed972cee..cc920118a2 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs/0004-v8-don-t-override-ARM-CFLAGS.patch
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/0004-v8-don-t-override-ARM-CFLAGS.patch
@@ -1,4 +1,4 @@
1From 47ee5cc5501289205d3e8e9f27ea9daf18cebac1 Mon Sep 17 00:00:00 2001 1From afc085af7b6b935a5e14fc3f40db47df02ca3af2 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <git@andred.net> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <git@andred.net>
3Date: Sat, 9 Nov 2019 14:45:30 +0000 3Date: Sat, 9 Nov 2019 14:45:30 +0000
4Subject: [PATCH] v8: don't override ARM CFLAGS 4Subject: [PATCH] v8: don't override ARM CFLAGS
@@ -28,10 +28,10 @@ Signed-off-by: André Draszik <git@andred.net>
28 1 file changed, 2 insertions(+), 50 deletions(-) 28 1 file changed, 2 insertions(+), 50 deletions(-)
29 29
30diff --git a/tools/v8_gypfiles/toolchain.gypi b/tools/v8_gypfiles/toolchain.gypi 30diff --git a/tools/v8_gypfiles/toolchain.gypi b/tools/v8_gypfiles/toolchain.gypi
31index 264b3e478e..0b41848145 100644 31index 9d1b0987..4df15e60 100644
32--- a/tools/v8_gypfiles/toolchain.gypi 32--- a/tools/v8_gypfiles/toolchain.gypi
33+++ b/tools/v8_gypfiles/toolchain.gypi 33+++ b/tools/v8_gypfiles/toolchain.gypi
34@@ -211,31 +211,7 @@ 34@@ -203,31 +203,7 @@
35 'target_conditions': [ 35 'target_conditions': [
36 ['_toolset=="host"', { 36 ['_toolset=="host"', {
37 'conditions': [ 37 'conditions': [
@@ -64,7 +64,7 @@ index 264b3e478e..0b41848145 100644
64 # Host not built with an Arm CXX compiler (simulator build). 64 # Host not built with an Arm CXX compiler (simulator build).
65 'conditions': [ 65 'conditions': [
66 [ 'arm_float_abi=="hard"', { 66 [ 'arm_float_abi=="hard"', {
67@@ -254,31 +230,7 @@ 67@@ -246,31 +222,7 @@
68 }], # _toolset=="host" 68 }], # _toolset=="host"
69 ['_toolset=="target"', { 69 ['_toolset=="target"', {
70 'conditions': [ 70 'conditions': [
@@ -97,6 +97,3 @@ index 264b3e478e..0b41848145 100644
97 # Target not built with an Arm CXX compiler (simulator build). 97 # Target not built with an Arm CXX compiler (simulator build).
98 'conditions': [ 98 'conditions': [
99 [ 'arm_float_abi=="hard"', { 99 [ 'arm_float_abi=="hard"', {
100--
1012.20.1
102
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/182d9c05e78.patch b/meta-oe/recipes-devtools/nodejs/nodejs/182d9c05e78.patch
deleted file mode 100644
index 689512cb64..0000000000
--- a/meta-oe/recipes-devtools/nodejs/nodejs/182d9c05e78.patch
+++ /dev/null
@@ -1,182 +0,0 @@
1From 182d9c05e78b1ddb1cb8242cd3628a7855a0336f Mon Sep 17 00:00:00 2001
2From: Andrey Kosyakov <caseq@chromium.org>
3Date: Thu, 17 Aug 2023 13:50:11 -0700
4Subject: [PATCH] Define UChar as char16_t
5
6We used to have UChar defined as uint16_t which does not go along
7with STL these days if you try to have an std::basic_string<> of it,
8as there are no standard std::char_traits<> specialization for uint16_t.
9
10This switches UChar to char16_t where practical, introducing a few
11compatibility shims to keep CL size small, as (1) this would likely
12have to be back-ported and (2) crdtp extensively uses uint16_t for
13wide chars.
14
15Bug: b:296390693
16Change-Id: I66a32d8f0050915225b187de56896c26dd76163d
17Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4789966
18Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
19Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
20Auto-Submit: Andrey Kosyakov <caseq@chromium.org>
21Cr-Commit-Position: refs/heads/main@{#89559}
22
23Upstream-Status: Backport [https://chromium-review.googlesource.com/c/v8/v8/+/4789966]
24Signed-off-by: Khem Raj <raj.khem@gmail.com>
25---
26 src/inspector/string-16.cc | 8 +++++++-
27 src/inspector/string-16.h | 10 ++++++++--
28 src/inspector/v8-string-conversions.cc | 6 +++---
29 src/inspector/v8-string-conversions.h | 6 ++++--
30 .../inspector_protocol/crdtp/test_platform_v8.cc | 9 ++++++---
31 5 files changed, 28 insertions(+), 11 deletions(-)
32
33--- a/deps/v8/src/inspector/string-16.cc
34+++ b/deps/v8/src/inspector/string-16.cc
35@@ -27,7 +27,7 @@ bool isSpaceOrNewLine(UChar c) {
36 return isASCII(c) && c <= ' ' && (c == ' ' || (c <= 0xD && c >= 0x9));
37 }
38
39-int64_t charactersToInteger(const UChar* characters, size_t length,
40+int64_t charactersToInteger(const uint16_t* characters, size_t length,
41 bool* ok = nullptr) {
42 std::vector<char> buffer;
43 buffer.reserve(length + 1);
44@@ -50,6 +50,8 @@ int64_t charactersToInteger(const UChar*
45
46 String16::String16(const UChar* characters, size_t size)
47 : m_impl(characters, size) {}
48+String16::String16(const uint16_t* characters, size_t size)
49+ : m_impl(reinterpret_cast<const UChar*>(characters), size) {}
50
51 String16::String16(const UChar* characters) : m_impl(characters) {}
52
53@@ -241,6 +243,10 @@ String16 String16::fromUTF16LE(const UCh
54 #endif // V8_TARGET_BIG_ENDIAN
55 }
56
57+String16 String16::fromUTF16LE(const uint16_t* stringStart, size_t length) {
58+ return fromUTF16LE(reinterpret_cast<const UChar*>(stringStart), length);
59+}
60+
61 std::string String16::utf8() const {
62 return UTF16ToUTF8(m_impl.data(), m_impl.size());
63 }
64--- a/deps/v8/src/inspector/string-16.h
65+++ b/deps/v8/src/inspector/string-16.h
66@@ -6,6 +6,7 @@
67 #define V8_INSPECTOR_STRING_16_H_
68
69 #include <stdint.h>
70+#include <uchar.h>
71
72 #include <cctype>
73 #include <climits>
74@@ -17,7 +18,7 @@
75
76 namespace v8_inspector {
77
78-using UChar = uint16_t;
79+using UChar = char16_t;
80
81 class String16 {
82 public:
83@@ -27,6 +28,7 @@ class String16 {
84 String16(const String16&) V8_NOEXCEPT = default;
85 String16(String16&&) V8_NOEXCEPT = default;
86 String16(const UChar* characters, size_t size);
87+ String16(const uint16_t* characters, size_t size);
88 V8_EXPORT String16(const UChar* characters);
89 V8_EXPORT String16(const char* characters);
90 String16(const char* characters, size_t size);
91@@ -48,7 +50,9 @@ class String16 {
92 int toInteger(bool* ok = nullptr) const;
93 std::pair<size_t, size_t> getTrimmedOffsetAndLength() const;
94 String16 stripWhiteSpace() const;
95- const UChar* characters16() const { return m_impl.c_str(); }
96+ const uint16_t* characters16() const {
97+ return reinterpret_cast<const uint16_t*>(m_impl.c_str());
98+ }
99 size_t length() const { return m_impl.length(); }
100 bool isEmpty() const { return !m_impl.length(); }
101 UChar operator[](size_t index) const { return m_impl[index]; }
102@@ -78,6 +82,8 @@ class String16 {
103 // On Big endian architectures, byte order needs to be flipped.
104 V8_EXPORT static String16 fromUTF16LE(const UChar* stringStart,
105 size_t length);
106+ V8_EXPORT static String16 fromUTF16LE(const uint16_t* stringStart,
107+ size_t length);
108
109 std::size_t hash() const {
110 if (!hash_code) {
111--- a/deps/v8/src/inspector/v8-string-conversions.cc
112+++ b/deps/v8/src/inspector/v8-string-conversions.cc
113@@ -12,7 +12,7 @@
114
115 namespace v8_inspector {
116 namespace {
117-using UChar = uint16_t;
118+using UChar = char16_t;
119 using UChar32 = uint32_t;
120
121 bool isASCII(UChar c) { return !(c & ~0x7F); }
122@@ -386,7 +386,7 @@ std::string UTF16ToUTF8(const UChar* str
123
124 std::basic_string<UChar> UTF8ToUTF16(const char* stringStart, size_t length) {
125 if (!stringStart || !length) return std::basic_string<UChar>();
126- std::vector<uint16_t> buffer(length);
127+ std::vector<UChar> buffer(length);
128 UChar* bufferStart = buffer.data();
129
130 UChar* bufferCurrent = bufferStart;
131@@ -395,7 +395,7 @@ std::basic_string<UChar> UTF8ToUTF16(con
132 reinterpret_cast<const char*>(stringStart + length),
133 &bufferCurrent, bufferCurrent + buffer.size(), nullptr,
134 true) != conversionOK)
135- return std::basic_string<uint16_t>();
136+ return std::basic_string<UChar>();
137 size_t utf16Length = bufferCurrent - bufferStart;
138 return std::basic_string<UChar>(bufferStart, bufferStart + utf16Length);
139 }
140--- a/deps/v8/src/inspector/v8-string-conversions.h
141+++ b/deps/v8/src/inspector/v8-string-conversions.h
142@@ -5,14 +5,16 @@
143 #ifndef V8_INSPECTOR_V8_STRING_CONVERSIONS_H_
144 #define V8_INSPECTOR_V8_STRING_CONVERSIONS_H_
145
146+#include <uchar.h>
147+
148 #include <cstdint>
149 #include <string>
150
151 // Conversion routines between UT8 and UTF16, used by string-16.{h,cc}. You may
152 // want to use string-16.h directly rather than these.
153 namespace v8_inspector {
154-std::basic_string<uint16_t> UTF8ToUTF16(const char* stringStart, size_t length);
155-std::string UTF16ToUTF8(const uint16_t* stringStart, size_t length);
156+std::basic_string<char16_t> UTF8ToUTF16(const char* stringStart, size_t length);
157+std::string UTF16ToUTF8(const char16_t* stringStart, size_t length);
158 } // namespace v8_inspector
159
160 #endif // V8_INSPECTOR_V8_STRING_CONVERSIONS_H_
161--- a/deps/v8/third_party/inspector_protocol/crdtp/test_platform_v8.cc
162+++ b/deps/v8/third_party/inspector_protocol/crdtp/test_platform_v8.cc
163@@ -11,13 +11,16 @@
164 namespace v8_crdtp {
165
166 std::string UTF16ToUTF8(span<uint16_t> in) {
167- return v8_inspector::UTF16ToUTF8(in.data(), in.size());
168+ return v8_inspector::UTF16ToUTF8(reinterpret_cast<const char16_t*>(in.data()),
169+ in.size());
170 }
171
172 std::vector<uint16_t> UTF8ToUTF16(span<uint8_t> in) {
173- std::basic_string<uint16_t> utf16 = v8_inspector::UTF8ToUTF16(
174+ std::basic_string<char16_t> utf16 = v8_inspector::UTF8ToUTF16(
175 reinterpret_cast<const char*>(in.data()), in.size());
176- return std::vector<uint16_t>(utf16.begin(), utf16.end());
177+ return std::vector<uint16_t>(
178+ reinterpret_cast<const uint16_t*>(utf16.data()),
179+ reinterpret_cast<const uint16_t*>(utf16.data()) + utf16.size());
180 }
181
182 } // namespace v8_crdtp
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/libatomic.patch b/meta-oe/recipes-devtools/nodejs/nodejs/libatomic.patch
index bc51f99d85..d987ac50be 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs/libatomic.patch
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/libatomic.patch
@@ -29,7 +29,7 @@ index b425f443..f296f35c 100644
29@@ -487,7 +487,18 @@ 29@@ -487,7 +487,18 @@
30 ], 30 ],
31 }], 31 }],
32 ['OS == "linux" and llvm_version != "0.0"', { 32 ['OS=="linux" and clang==1', {
33- 'libraries': ['-latomic'], 33- 'libraries': ['-latomic'],
34+ 'target_conditions': [ 34+ 'target_conditions': [
35+ ['_toolset=="host"', { 35+ ['_toolset=="host"', {
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/system-c-ares.patch b/meta-oe/recipes-devtools/nodejs/nodejs/system-c-ares.patch
index 141889ad23..6f08c71e18 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs/system-c-ares.patch
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/system-c-ares.patch
@@ -1,11 +1,19 @@
1keep nodejs compatible with c-ares 1.17.1 1From ce931ad5f5aba60e8e77f39e0af43bce7d25d287 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 4 Mar 2024 11:05:25 -0500
4Subject: [PATCH] keep nodejs compatible with c-ares 1.17.1
2 5
3Upstream-Status: Inappropriate [c-ares specific] 6Upstream-Status: Inappropriate [c-ares specific]
4Signed-off-by: Khem Raj <raj.khem@gmail.com> 7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 src/cares_wrap.h | 10 +++++++++-
10 1 file changed, 9 insertions(+), 1 deletion(-)
5 11
12diff --git a/src/cares_wrap.h b/src/cares_wrap.h
13index 021ef1c9..820c5d88 100644
6--- a/src/cares_wrap.h 14--- a/src/cares_wrap.h
7+++ b/src/cares_wrap.h 15+++ b/src/cares_wrap.h
8@@ -22,7 +22,15 @@ 16@@ -23,7 +23,15 @@
9 # include <netdb.h> 17 # include <netdb.h>
10 #endif // __POSIX__ 18 #endif // __POSIX__
11 19
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_20.17.0.bb b/meta-oe/recipes-devtools/nodejs/nodejs_22.16.0.bb
index 38e5ca9ff1..4bc829f140 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs_20.17.0.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_22.16.0.bb
@@ -1,7 +1,7 @@
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 & Apache-2.0" 3LICENSE = "MIT & ISC & BSD-2-Clause & BSD-3-Clause & Artistic-2.0 & Apache-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=2ab85b3bae451276a10919163bcc5b74" 4LIC_FILES_CHKSUM = "file://LICENSE;md5=b4f41dcacabc8f07b9ca7dee2f188a00"
5 5
6CVE_PRODUCT = "nodejs node.js" 6CVE_PRODUCT = "nodejs node.js"
7 7
@@ -18,14 +18,18 @@ COMPATIBLE_MACHINE:mips64 = "(!.*mips64).*"
18COMPATIBLE_HOST:riscv64 = "null" 18COMPATIBLE_HOST:riscv64 = "null"
19COMPATIBLE_HOST:riscv32 = "null" 19COMPATIBLE_HOST:riscv32 = "null"
20COMPATIBLE_HOST:powerpc = "null" 20COMPATIBLE_HOST:powerpc = "null"
21COMPATIBLE_HOST:powerpc64le = "null"
21 22
22SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ 23SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \
24 file://0001-Do-not-use-glob-in-deps.patch \
23 file://0001-Disable-running-gyp-files-for-bundled-deps.patch \ 25 file://0001-Disable-running-gyp-files-for-bundled-deps.patch \
24 file://0004-v8-don-t-override-ARM-CFLAGS.patch \ 26 file://0004-v8-don-t-override-ARM-CFLAGS.patch \
25 file://system-c-ares.patch \ 27 file://system-c-ares.patch \
26 file://0001-liftoff-Correct-function-signatures.patch \ 28 file://0001-liftoff-Correct-function-signatures.patch \
27 file://libatomic.patch \ 29 file://libatomic.patch \
28 file://182d9c05e78.patch \ 30 file://0001-deps-disable-io_uring-support-in-libuv.patch \
31 file://0001-positional-args.patch \
32 file://0001-custom-env.patch \
29 file://run-ptest \ 33 file://run-ptest \
30 " 34 "
31SRC_URI:append:class-target = " \ 35SRC_URI:append:class-target = " \
@@ -34,9 +38,9 @@ SRC_URI:append:class-target = " \
34SRC_URI:append:toolchain-clang:powerpc64le = " \ 38SRC_URI:append:toolchain-clang:powerpc64le = " \
35 file://0001-ppc64-Do-not-use-mminimal-toc-with-clang.patch \ 39 file://0001-ppc64-Do-not-use-mminimal-toc-with-clang.patch \
36 " 40 "
37SRC_URI[sha256sum] = "9abf03ac23362c60387ebb633a516303637145cb3c177be3348b16880fd8b28c" 41SRC_URI[sha256sum] = "720894f323e5c1ac24968eb2676660c90730d715cb7f090be71a668662a17c37"
38 42
39S = "${WORKDIR}/node-v${PV}" 43S = "${UNPACKDIR}/node-v${PV}"
40 44
41CVE_PRODUCT += "node.js" 45CVE_PRODUCT += "node.js"
42 46
@@ -98,7 +102,7 @@ do_unpack[postfuncs] += "prune_sources"
98# 1. If host and target have the different bit width, run those 102# 1. If host and target have the different bit width, run those
99# binaries for the target and run them on the host with QEMU. 103# binaries for the target and run them on the host with QEMU.
100# 2. If host and target have the same bit width, enable upstream 104# 2. If host and target have the same bit width, enable upstream
101# cross crompile support and no QEMU 105# cross compile support and no QEMU
102python do_create_v8_qemu_wrapper () { 106python do_create_v8_qemu_wrapper () {
103 """Creates a small wrapper that invokes QEMU to run some target V8 binaries 107 """Creates a small wrapper that invokes QEMU to run some target V8 binaries
104 on the host.""" 108 on the host."""
@@ -192,7 +196,7 @@ python set_gyp_variables () {
192 d.setVar("LDFLAGS_host", d.getVar("LDFLAGS")) 196 d.setVar("LDFLAGS_host", d.getVar("LDFLAGS"))
193 d.setVar("AR_host", d.getVar("AR")) 197 d.setVar("AR_host", d.getVar("AR"))
194 elif d.getVar("HOST_AND_TARGET_SAME_WIDTH") == "1": 198 elif d.getVar("HOST_AND_TARGET_SAME_WIDTH") == "1":
195 # Enable upstream cross crompile support 199 # Enable upstream cross compile support
196 d.setVar("CC_host", d.getVar("BUILD_CC")) 200 d.setVar("CC_host", d.getVar("BUILD_CC"))
197 d.setVar("CFLAGS_host", d.getVar("BUILD_CFLAGS")) 201 d.setVar("CFLAGS_host", d.getVar("BUILD_CFLAGS"))
198 d.setVar("CXX_host", d.getVar("BUILD_CXX")) 202 d.setVar("CXX_host", d.getVar("BUILD_CXX"))