OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import sys | 6 import sys |
7 import pathtools | 7 import pathtools |
8 | 8 |
9 #TODO: DriverOpen/Close are in here because this is a low level lib without | 9 #TODO: DriverOpen/Close are in here because this is a low level lib without |
10 # any dependencies. Maybe they should go in another low level lib, or maybe | 10 # any dependencies. Maybe they should go in another low level lib, or maybe |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 'arm' : 'ARM', | 44 'arm' : 'ARM', |
45 'armv7' : 'ARM', | 45 'armv7' : 'ARM', |
46 'armv7a': 'ARM', | 46 'armv7a': 'ARM', |
47 | 47 |
48 'mips32': 'MIPS32', | 48 'mips32': 'MIPS32', |
49 'mips' : 'MIPS32', | 49 'mips' : 'MIPS32', |
50 'mipsel': 'MIPS32', | 50 'mipsel': 'MIPS32', |
51 | 51 |
52 'x86-32-linux': 'X8632_LINUX', | 52 'x86-32-linux': 'X8632_LINUX', |
| 53 'x86-64-linux': 'X8664_LINUX', |
53 'x86-32-mac': 'X8632_MAC', | 54 'x86-32-mac': 'X8632_MAC', |
54 'x86-32-nonsfi': 'X8632_NONSFI', | 55 'x86-32-nonsfi': 'X8632_NONSFI', |
55 'arm-nonsfi': 'ARM_NONSFI', | 56 'arm-nonsfi': 'ARM_NONSFI', |
56 } | 57 } |
57 if arch not in archfix: | 58 if arch not in archfix: |
58 Log.Fatal('Unrecognized arch "%s"!', arch) | 59 Log.Fatal('Unrecognized arch "%s"!', arch) |
59 return archfix[arch] | 60 return archfix[arch] |
60 | 61 |
61 driver_exit_funcs = [] | 62 driver_exit_funcs = [] |
62 def AtDriverExit(func): | 63 def AtDriverExit(func): |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 ret += " " | 156 ret += " " |
156 if grouping == 0: | 157 if grouping == 0: |
157 grouping = 1 | 158 grouping = 1 |
158 if a.startswith('-') and len(a) == 2: | 159 if a.startswith('-') and len(a) == 2: |
159 grouping = 2 | 160 grouping = 2 |
160 ret += a | 161 ret += a |
161 grouping -= 1 | 162 grouping -= 1 |
162 return ret | 163 return ret |
163 | 164 |
164 Log = LogManager() | 165 Log = LogManager() |
OLD | NEW |