OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium 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 """Entry point for both build and try bots. | 6 """Entry point for both build and try bots. |
7 | 7 |
8 This script is invoked from XXX, usually without arguments | 8 This script is invoked from XXX, usually without arguments |
9 to package an SDK. It automatically determines whether | 9 to package an SDK. It automatically determines whether |
10 this SDK is for mac, win, linux. | 10 this SDK is for mac, win, linux. |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 ['irt_core_newlib_arm.nexe', 'irt_core_arm.nexe'], | 438 ['irt_core_newlib_arm.nexe', 'irt_core_arm.nexe'], |
439 ['nacl_helper_bootstrap', 'nacl_helper_bootstrap_arm'], | 439 ['nacl_helper_bootstrap', 'nacl_helper_bootstrap_arm'], |
440 ['nonsfi_loader_newlib_arm_nonsfi.nexe', 'nonsfi_loader_arm'], | 440 ['nonsfi_loader_newlib_arm_nonsfi.nexe', 'nonsfi_loader_arm'], |
441 ['sel_ldr', 'sel_ldr_arm'] | 441 ['sel_ldr', 'sel_ldr_arm'] |
442 ] | 442 ] |
443 InstallFiles(GetNinjaOutDir('arm'), tools_dir, arm_files) | 443 InstallFiles(GetNinjaOutDir('arm'), tools_dir, arm_files) |
444 | 444 |
445 for tc in toolchains: | 445 for tc in toolchains: |
446 if tc in ('host', 'clang-newlib'): | 446 if tc in ('host', 'clang-newlib'): |
447 continue | 447 continue |
448 # TODO(sbc): remove this once untrusted.gypi can build arm glibc targets | |
449 elif tc == 'arm_glibc': | |
450 continue | |
451 elif tc == 'pnacl': | 448 elif tc == 'pnacl': |
452 xarches = (None, 'ia32', 'x64', 'arm') | 449 xarches = (None, 'ia32', 'x64', 'arm') |
453 elif tc in ('x86_glibc', 'x86_newlib'): | 450 elif tc in ('x86_glibc', 'x86_newlib'): |
454 xarches = ('ia32', 'x64') | 451 xarches = ('ia32', 'x64') |
455 elif tc in ('arm_glibc', 'arm_newlib', 'arm_bionic'): | 452 elif tc in ('arm_glibc', 'arm_newlib', 'arm_bionic'): |
456 xarches = ('arm',) | 453 xarches = ('arm',) |
457 else: | 454 else: |
458 raise AssertionError('unexpected toolchain value: %s' % tc) | 455 raise AssertionError('unexpected toolchain value: %s' % tc) |
459 | 456 |
460 for xarch in xarches: | 457 for xarch in xarches: |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1158 BuildStepArchivePNaClComponent(chrome_revision) | 1155 BuildStepArchivePNaClComponent(chrome_revision) |
1159 | 1156 |
1160 return 0 | 1157 return 0 |
1161 | 1158 |
1162 | 1159 |
1163 if __name__ == '__main__': | 1160 if __name__ == '__main__': |
1164 try: | 1161 try: |
1165 sys.exit(main(sys.argv[1:])) | 1162 sys.exit(main(sys.argv[1:])) |
1166 except KeyboardInterrupt: | 1163 except KeyboardInterrupt: |
1167 buildbot_common.ErrorExit('build_sdk: interrupted') | 1164 buildbot_common.ErrorExit('build_sdk: interrupted') |
OLD | NEW |