OLD | NEW |
1 # | 1 # |
2 # Copyright 2015 Google Inc. | 2 # Copyright 2015 Google Inc. |
3 # | 3 # |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 # | 6 # |
7 | 7 |
8 #!/usr/bin/env python | 8 #!/usr/bin/env python |
9 | 9 |
10 usage = ''' | 10 usage = ''' |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 return { | 208 return { |
209 'Arm64': 'arm64', | 209 'Arm64': 'arm64', |
210 'x86': 'x86', | 210 'x86': 'x86', |
211 'x86_64': 'x86_64', | 211 'x86_64': 'x86_64', |
212 'Mips': 'mips', | 212 'Mips': 'mips', |
213 'Mips64': 'mips64', | 213 'Mips64': 'mips64', |
214 'MipsDSP2': 'mips_dsp2', | 214 'MipsDSP2': 'mips_dsp2', |
215 }.get(builder_dict['target_arch'], 'arm_v7_neon') | 215 }.get(builder_dict['target_arch'], 'arm_v7_neon') |
216 elif builder_dict.get('os') == 'Android': | 216 elif builder_dict.get('os') == 'Android': |
217 return { | 217 return { |
218 'AndroidOne': 'arm_v7_neon', | 218 'AndroidOne': 'arm_v7_neon', |
219 'GalaxyS3': 'arm_v7_neon', | 219 'GalaxyS3': 'arm_v7_neon', |
220 'GalaxyS4': 'arm_v7_neon', | 220 'GalaxyS4': 'arm_v7_neon', |
221 'Nexus5': 'arm_v7', # This'd be 'nexus_5', but we simulate no-NEON Clank. | |
222 'Nexus6': 'arm_v7_neon', | |
223 'Nexus7': 'nexus_7', | |
224 'Nexus9': 'nexus_9', | |
225 'Nexus10': 'nexus_10', | |
226 'NexusPlayer': 'x86', | |
227 'NVIDIA_Shield': 'arm64', | 221 'NVIDIA_Shield': 'arm64', |
| 222 'Nexus10': 'arm_v7_neon', |
| 223 'Nexus5': 'arm_v7_neon', |
| 224 'Nexus6': 'arm_v7_neon', |
| 225 'Nexus7': 'arm_v7_neon', |
| 226 'Nexus9': 'arm64', |
| 227 'NexusPlayer': 'x86', |
228 }[builder_dict['model']] | 228 }[builder_dict['model']] |
229 | 229 |
230 # ChromeOS. | 230 # ChromeOS. |
231 if 'CrOS' in builder_dict.get('extra_config', ''): | 231 if 'CrOS' in builder_dict.get('extra_config', ''): |
232 if 'Link' in builder_dict['extra_config']: | 232 if 'Link' in builder_dict['extra_config']: |
233 return 'link' | 233 return 'link' |
234 if 'Daisy' in builder_dict['extra_config']: | 234 if 'Daisy' in builder_dict['extra_config']: |
235 return 'daisy' | 235 return 'daisy' |
236 elif builder_dict.get('os') == 'ChromeOS': | 236 elif builder_dict.get('os') == 'ChromeOS': |
237 return { | 237 return { |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 365 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
366 self_test() | 366 self_test() |
367 sys.exit(0) | 367 sys.exit(0) |
368 | 368 |
369 if len(sys.argv) != 3: | 369 if len(sys.argv) != 3: |
370 print usage | 370 print usage |
371 sys.exit(1) | 371 sys.exit(1) |
372 | 372 |
373 with open(sys.argv[1], 'w') as out: | 373 with open(sys.argv[1], 'w') as out: |
374 json.dump(get_builder_spec(sys.argv[2]), out) | 374 json.dump(get_builder_spec(sys.argv[2]), out) |
OLD | NEW |