[cef][wam] Make the recipe work with official chromium release tarballs
[AGL/meta-agl-demo.git] / recipes-wam / cef / files / chromium / 0010-meta-browser-BUILD-do-not-specify-march-on-arm.patch
1 From 5d216a0f4d6312531bc03ce8c878dc251b67c589 Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Tue, 22 Jan 2019 00:17:41 -0800
4 Subject: [PATCH 10/33] [meta-browser] BUILD: do not specify march on arm
5
6 Do not try to set the guessed values for march/mtune/float-abi
7 OE config machinary has computed these values already and fed it
8 via compiler cmdline to chromium build
9
10 I think upstream should check for the values on compiler cmdline
11 before overriding these
12
13 Upstream-Status: Inappropriate [OE-Specific]
14
15 Signed-off-by: Khem Raj <raj.khem@gmail.com>
16 ---
17  build/config/compiler/BUILD.gn | 10 ----------
18  1 file changed, 10 deletions(-)
19
20 diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
21 index db763b998c4fb..6d87a2b03fa04 100644
22 --- a/build/config/compiler/BUILD.gn
23 +++ b/build/config/compiler/BUILD.gn
24 @@ -1111,16 +1111,6 @@ config("compiler_cpu_abi") {
25            "-msse3",
26          ]
27        }
28 -    } else if (current_cpu == "arm") {
29 -      if (!is_nacl) {
30 -        cflags += [
31 -          "-march=$arm_arch",
32 -          "-mfloat-abi=$arm_float_abi",
33 -        ]
34 -      }
35 -      if (arm_tune != "") {
36 -        cflags += [ "-mtune=$arm_tune" ]
37 -      }
38      } else if (current_cpu == "mipsel" && !is_nacl) {
39        ldflags += [ "-Wl,--hash-style=sysv" ]
40        if (custom_toolchain == "") {
41 -- 
42 2.42.1
43