[cef] Stop using cros-toolchain
[AGL/meta-agl-demo.git] / recipes-wam / cef / files / chromium / 0034-v8-qemu-wrapper.patch
1 From 733559e6f2c26ccbce97354a2341b14c63563dab Mon Sep 17 00:00:00 2001
2 From: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
3 Date: Tue, 7 Nov 2017 15:24:32 +0100
4 Subject: [PATCH] v8: qemu wrapper
5
6 The patch below makes the V8 binaries run during the build be invoked through
7 QEMU, as they are built for the target.
8
9 Upstream-Status: Inappropriate [embedder specific]
10
11 Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
12 Signed-off-by: Maksim Sisov <msisov@igalia.com>
13
14 ---
15  tools/v8_context_snapshot/BUILD.gn | 1 +
16  v8/BUILD.gn                        | 4 ++++
17  2 files changed, 5 insertions(+)
18
19 diff --git a/tools/v8_context_snapshot/BUILD.gn b/tools/v8_context_snapshot/BUILD.gn
20 index 52504f4..40425d6 100644
21 --- a/tools/v8_context_snapshot/BUILD.gn
22 +++ b/tools/v8_context_snapshot/BUILD.gn
23 @@ -44,6 +44,7 @@ if (use_v8_context_snapshot) {
24        output_path = rebase_path(output_file, root_build_dir)
25
26        args = [
27 +        "./v8-qemu-wrapper.sh",
28          "./" + rebase_path(get_label_info(":v8_context_snapshot_generator",
29                                            "root_out_dir") +
30                                 "/v8_context_snapshot_generator",
31 diff --git a/v8/BUILD.gn b/v8/BUILD.gn
32 index 025203d..0c196bb 100644
33 --- a/v8/BUILD.gn
34 +++ b/v8/BUILD.gn
35 @@ -2134,6 +2134,7 @@ template("run_torque") {
36      }
37
38      args = [
39 +      "./v8-qemu-wrapper.sh",
40        "./" + rebase_path(
41                get_label_info(":torque($toolchain)", "root_out_dir") + "/torque",
42                root_build_dir),
43 @@ -2291,6 +2292,7 @@ action("generate_bytecode_builtins_list") {
44    outputs = [ "$target_gen_dir/builtins-generated/bytecodes-builtins-list.h" ]
45    deps = [ ":bytecode_builtins_list_generator($v8_generator_toolchain)" ]
46    args = [
47 +    "./v8-qemu-wrapper.sh",
48      "./" + rebase_path(
49              get_label_info(
50                      ":bytecode_builtins_list_generator($v8_generator_toolchain)",
51 @@ -2330,6 +2332,7 @@ template("run_mksnapshot") {
52      data = []
53
54      args = [
55 +      "./v8-qemu-wrapper.sh",
56        "./" + rebase_path(get_label_info(":mksnapshot($v8_snapshot_toolchain)",
57                                          "root_out_dir") + "/mksnapshot",
58                           root_build_dir),
59 @@ -6931,6 +6934,7 @@ if (v8_enable_i18n_support) {
60      outputs = [ output_file ]
61
62      args = [
63 +      "./v8-qemu-wrapper.sh",
64        "./" + rebase_path(
65                get_label_info(
66                        ":gen-regexp-special-case($v8_generator_toolchain)",