forked from ~ljy/RK356X_SDK_RELEASE

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