• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3# found in the LICENSE file.
4
5if (current_cpu == "mipsel" || target_cpu == "mipsel") {
6  declare_args() {
7    # MIPS arch variant. Possible values are:
8    #   "r1"
9    #   "r2"
10    #   "r6"
11    mips_arch_variant = "r1"
12
13    # MIPS DSP ASE revision. Possible values are:
14    #   0: unavailable
15    #   1: revision 1
16    #   2: revision 2
17    mips_dsp_rev = 0
18
19    # MIPS floating-point ABI. Possible values are:
20    #   "hard": sets the GCC -mhard-float option.
21    #   "soft": sets the GCC -msoft-float option.
22    mips_float_abi = "hard"
23
24    # MIPS32 floating-point register width. Possible values are:
25    #   "fp32": sets the GCC -mfp32 option.
26    #   "fp64": sets the GCC -mfp64 option.
27    #   "fpxx": sets the GCC -mfpxx option.
28    mips_fpu_mode = "fp32"
29  }
30} else if (current_cpu == "mips64el" || target_cpu == "mips64el") {
31  # MIPS arch variant. Possible values are:
32  #   "r2"
33  #   "r6"
34  if (current_os == "android" || target_os == "android") {
35    declare_args() {
36      mips_arch_variant = "r6"
37    }
38  } else {
39    declare_args() {
40      mips_arch_variant = "r2"
41    }
42  }
43}
44