SPEC-3723: restructure meta-agl-demo
[AGL/meta-agl-demo.git] / recipes-wam / chromium / chromium68 / v8-qemu-wrapper.patch
1 Upstream-Status: Inappropriate [embedder specific]
2
3 The patch below makes the V8 binaries run during the build be invoked through
4 QEMU, as they are built for the target.
5
6 Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
7 Signed-off-by: Maksim Sisov <msisov@igalia.com>
8
9 Index: git/src/tools/v8_context_snapshot/BUILD.gn
10 ===================================================================
11 --- git.orig/src/tools/v8_context_snapshot/BUILD.gn
12 +++ git/src/tools/v8_context_snapshot/BUILD.gn
13 @@ -62,6 +62,7 @@ if (use_v8_context_snapshot) {
14      output_path = rebase_path(output_file, root_build_dir)
15  
16      args = [
17 +      "./v8-qemu-wrapper.sh",
18        "./" + rebase_path(
19                get_label_info(
20                        ":v8_context_snapshot_generator($v8_snapshot_toolchain)",
21 Index: git/src/v8/BUILD.gn
22 ===================================================================
23 --- git.orig/src/v8/BUILD.gn
24 +++ git/src/v8/BUILD.gn
25 @@ -900,6 +900,7 @@ action("run_torque") {
26    }
27  
28    args = [
29 +    "./v8-qemu-wrapper.sh",
30      "./" + rebase_path(get_label_info(":torque($v8_torque_toolchain)",
31                                        "root_out_dir") + "/torque",
32                         root_build_dir),
33 @@ -977,6 +978,7 @@ template("run_mksnapshot") {
34      data = []
35  
36      args = [
37 +      "./v8-qemu-wrapper.sh",
38        "./" + rebase_path(get_label_info(":mksnapshot($v8_snapshot_toolchain)",
39                                          "root_out_dir") + "/mksnapshot",
40                           root_build_dir),