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