Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Side by Side Diff: build/config/mips.gni

Issue 1934713002: Set ARM/MIPS configuration for both host and target if needed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/arm.gni ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 if (current_cpu == "mipsel") { 5 if (current_cpu == "mipsel" || target_cpu == "mipsel") {
6 declare_args() { 6 declare_args() {
7 # MIPS arch variant. Possible values are: 7 # MIPS arch variant. Possible values are:
8 # "r1" 8 # "r1"
9 # "r2" 9 # "r2"
10 # "r6" 10 # "r6"
11 mips_arch_variant = "r1" 11 mips_arch_variant = "r1"
12 12
13 # MIPS DSP ASE revision. Possible values are: 13 # MIPS DSP ASE revision. Possible values are:
14 # 0: unavailable 14 # 0: unavailable
15 # 1: revision 1 15 # 1: revision 1
16 # 2: revision 2 16 # 2: revision 2
17 mips_dsp_rev = 0 17 mips_dsp_rev = 0
18 18
19 # MIPS floating-point ABI. Possible values are: 19 # MIPS floating-point ABI. Possible values are:
20 # "hard": sets the GCC -mhard-float option. 20 # "hard": sets the GCC -mhard-float option.
21 # "soft": sets the GCC -msoft-float option. 21 # "soft": sets the GCC -msoft-float option.
22 mips_float_abi = "hard" 22 mips_float_abi = "hard"
23 23
24 # MIPS32 floating-point register width. Possible values are: 24 # MIPS32 floating-point register width. Possible values are:
25 # "fp32": sets the GCC -mfp32 option. 25 # "fp32": sets the GCC -mfp32 option.
26 # "fp64": sets the GCC -mfp64 option. 26 # "fp64": sets the GCC -mfp64 option.
27 # "fpxx": sets the GCC -mfpxx option. 27 # "fpxx": sets the GCC -mfpxx option.
28 mips_fpu_mode = "fp32" 28 mips_fpu_mode = "fp32"
29 } 29 }
30 } else if (current_cpu == "mips64el") { 30 } else if (current_cpu == "mips64el" || target_cpu == "mips64el") {
31 # MIPS arch variant. Possible values are: 31 # MIPS arch variant. Possible values are:
32 # "r2" 32 # "r2"
33 # "r6" 33 # "r6"
34 if (is_android) { 34 if (current_os == "android" || target_os == "android") {
35 declare_args() { 35 declare_args() {
36 mips_arch_variant = "r6" 36 mips_arch_variant = "r6"
37 } 37 }
38 } else { 38 } else {
39 declare_args() { 39 declare_args() {
40 mips_arch_variant = "r2" 40 mips_arch_variant = "r2"
41 } 41 }
42 } 42 }
43 } 43 }
OLDNEW
« no previous file with comments | « build/config/arm.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698