1From 6b188e734a8cfa68f5c14e46e90fc89cbcb8313c Mon Sep 17 00:00:00 2001
2From: Johannes Pointner <johannes.pointner@br-automation.com>
3Date: Fri, 3 May 2019 09:12:38 +0200
4Subject: [PATCH] chromium: Do not try to set the guessed values for
5
6 march/mtune/float-abi OE config machinary has computed these values already
7 and fed it via compiler cmdline to chromium build
8
9I think upstream should check for the values on compiler cmdline
10before overriding these
11
12Upstream-Status: Inappropriate [OE-Specific]
13
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15Signed-off-by: Johannes Pointner <johannes.pointner@br-automation.com>
16
17%% original patch: 0005-chromium-Do-not-try-to-set-the-guessed-values-for-ma.patch
18---
19 chromium/build/config/compiler/BUILD.gn | 9 ---------
20 1 file changed, 9 deletions(-)
21
22diff --git a/chromium/build/config/compiler/BUILD.gn b/chromium/build/config/compiler/BUILD.gn
23index b628042bc21..0b9476b33af 100644
24--- a/chromium/build/config/compiler/BUILD.gn
25+++ b/chromium/build/config/compiler/BUILD.gn
26@@ -784,15 +784,6 @@ config("compiler_cpu_abi") {
27     } else if (current_cpu == "arm") {
28       if (is_clang && !is_android && !is_nacl) {
29       }
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 == "arm64") {
40       if (is_clang && !is_android && !is_nacl && !is_fuchsia) {
41       }
42