OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 declare_args() { | 5 declare_args() { |
6 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM | 6 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM |
7 # platforms. | 7 # platforms. |
8 arm_version = 7 | 8 arm_version = 7 |
9 | 9 |
10 # The ARM floating point mode. This is either the string "hard", "soft", or | 10 # The ARM floating point mode. This is either the string "hard", "soft", or |
(...skipping 22 matching lines...) Expand all Loading... |
33 if (arm_float_abi == "") { | 33 if (arm_float_abi == "") { |
34 arm_float_abi = "softfp" | 34 arm_float_abi = "softfp" |
35 } | 35 } |
36 arm_fpu = "vfp" | 36 arm_fpu = "vfp" |
37 # Thumb is a reduced instruction set available on some ARM processors that | 37 # Thumb is a reduced instruction set available on some ARM processors that |
38 # has increased code density. | 38 # has increased code density. |
39 arm_use_thumb = false | 39 arm_use_thumb = false |
40 | 40 |
41 } else if (arm_version == 7) { | 41 } else if (arm_version == 7) { |
42 arm_arch = "armv7-a" | 42 arm_arch = "armv7-a" |
43 arm_tune = "cortex-a8" | 43 arm_tune = "" |
44 if (arm_float_abi == "") { | 44 if (arm_float_abi == "") { |
45 arm_float_abi = "softfp" | 45 arm_float_abi = "softfp" |
46 } | 46 } |
47 arm_use_thumb = true | 47 arm_use_thumb = true |
48 | 48 |
49 if (arm_use_neon) { | 49 if (arm_use_neon) { |
50 arm_fpu = "neon" | 50 arm_fpu = "neon" |
51 } else { | 51 } else { |
52 arm_fpu = "vfpv3-d16" | 52 arm_fpu = "vfpv3-d16" |
53 } | 53 } |
54 } | 54 } |
OLD | NEW |