| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 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 """Install Debian sysroots for building chromium. | 6 """Install Debian sysroots for building chromium. |
| 7 """ | 7 """ |
| 8 | 8 |
| 9 # The sysroot is needed to ensure that binaries will run on Debian Wheezy, | 9 # The sysroot is needed to ensure that binaries will run on Debian Wheezy, |
| 10 # the oldest supported linux distribution. For ARM64 linux, we have Debian | 10 # the oldest supported linux distribution. For ARM64 linux, we have Debian |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 import detect_host_arch | 31 import detect_host_arch |
| 32 import gyp_chromium | 32 import gyp_chromium |
| 33 import gyp_environment | 33 import gyp_environment |
| 34 | 34 |
| 35 | 35 |
| 36 URL_PREFIX = 'https://commondatastorage.googleapis.com' | 36 URL_PREFIX = 'https://commondatastorage.googleapis.com' |
| 37 URL_PATH = 'chrome-linux-sysroot/toolchain' | 37 URL_PATH = 'chrome-linux-sysroot/toolchain' |
| 38 | 38 |
| 39 SYSROOTS = { | 39 SYSROOTS = { |
| 40 ('Wheezy', 'amd64'): { | 40 ('Wheezy', 'amd64'): { |
| 41 'Revision' : '76b5bff8f195819fe17b2e0f773d0a5b427c75f5', | 41 'Revision' : 'e964581657e61f47a74b7e2e34e33744ac53d5a6', |
| 42 'Tarball' : 'debian_wheezy_amd64_sysroot.tgz', | 42 'Tarball' : 'debian_wheezy_amd64_sysroot.tgz', |
| 43 'Sha1Sum' : '9fdebab9633a0337a5b0e6d1c01ab15e25a5dbc7', | 43 'Sha1Sum' : 'd67377aedc8ca477a50cc75aeb59542c8cd98894', |
| 44 'SysrootDir' : 'debian_wheezy_amd64-sysroot' | 44 'SysrootDir' : 'debian_wheezy_amd64-sysroot' |
| 45 }, | 45 }, |
| 46 ('Wheezy', 'arm'): { | 46 ('Wheezy', 'arm'): { |
| 47 'Revision' : '76b5bff8f195819fe17b2e0f773d0a5b427c75f5', | 47 'Revision' : 'e964581657e61f47a74b7e2e34e33744ac53d5a6', |
| 48 'Tarball' : 'debian_wheezy_arm_sysroot.tgz', | 48 'Tarball' : 'debian_wheezy_arm_sysroot.tgz', |
| 49 'Sha1Sum' : '0abadf3af78ce18147426bd017933899bae3f0ad', | 49 'Sha1Sum' : 'ab538d29171823951a330ba7f8ac1502f3670ebe', |
| 50 'SysrootDir' : 'debian_wheezy_arm-sysroot' | 50 'SysrootDir' : 'debian_wheezy_arm-sysroot' |
| 51 }, | 51 }, |
| 52 ('Wheezy', 'i386'): { | 52 ('Wheezy', 'i386'): { |
| 53 'Revision' : '76b5bff8f195819fe17b2e0f773d0a5b427c75f5', | 53 'Revision' : 'e964581657e61f47a74b7e2e34e33744ac53d5a6', |
| 54 'Tarball' : 'debian_wheezy_i386_sysroot.tgz', | 54 'Tarball' : 'debian_wheezy_i386_sysroot.tgz', |
| 55 'Sha1Sum' : '970d5e7eb9c43f20f862690fc88577aacaada27e', | 55 'Sha1Sum' : '8d7f58fc77be09cad83f246a5d730de45ac48efb', |
| 56 'SysrootDir' : 'debian_wheezy_i386-sysroot' | 56 'SysrootDir' : 'debian_wheezy_i386-sysroot' |
| 57 }, | 57 }, |
| 58 ('Wheezy', 'mips'): { | 58 ('Wheezy', 'mips'): { |
| 59 'Revision' : '76b5bff8f195819fe17b2e0f773d0a5b427c75f5', | 59 'Revision' : 'e964581657e61f47a74b7e2e34e33744ac53d5a6', |
| 60 'Tarball' : 'debian_wheezy_mips_sysroot.tgz', | 60 'Tarball' : 'debian_wheezy_mips_sysroot.tgz', |
| 61 'Sha1Sum' : 'df5adf99d64a65eec7e93c4ea2bfec21aab3ae63', | 61 'Sha1Sum' : '9960b7398487038709bdb8419c144ebee5eff061', |
| 62 'SysrootDir' : 'debian_wheezy_mips-sysroot' | 62 'SysrootDir' : 'debian_wheezy_mips-sysroot' |
| 63 }, | 63 }, |
| 64 ('Jessie', 'arm64'): { | 64 ('Jessie', 'arm64'): { |
| 65 'Revision' : '76b5bff8f195819fe17b2e0f773d0a5b427c75f5', | 65 'Revision' : 'e964581657e61f47a74b7e2e34e33744ac53d5a6', |
| 66 'Tarball' : 'debian_jessie_arm64_sysroot.tgz', | 66 'Tarball' : 'debian_jessie_arm64_sysroot.tgz', |
| 67 'Sha1Sum' : 'a485259703842bf24c81b05e94f7d09e5dd3a8a2', | 67 'Sha1Sum' : '035e6abf3bd8e6c5e8ce27cf62b6502cbffefe6b', |
| 68 'SysrootDir' : 'debian_jessie_arm64-sysroot' | 68 'SysrootDir' : 'debian_jessie_arm64-sysroot' |
| 69 }, | 69 }, |
| 70 ('Precise', 'amd64'): { | 70 ('Precise', 'amd64'): { |
| 71 'Revision' : '76b5bff8f195819fe17b2e0f773d0a5b427c75f5', | 71 'Revision' : 'e964581657e61f47a74b7e2e34e33744ac53d5a6', |
| 72 'Tarball' : 'ubuntu_precise_amd64_sysroot.tgz', | 72 'Tarball' : 'ubuntu_precise_amd64_sysroot.tgz', |
| 73 'Sha1Sum' : 'a3dba43c6be4410df7bd0e251fe7483936c62e32', | 73 'Sha1Sum' : '9f13ac5b78027082ff7e7c34d55533dcb85a2c01', |
| 74 'SysrootDir' : 'ubuntu_precise_amd64-sysroot' | 74 'SysrootDir' : 'ubuntu_precise_amd64-sysroot' |
| 75 } | 75 } |
| 76 } | 76 } |
| 77 | 77 |
| 78 valid_archs = ('arm', 'arm64', 'i386', 'amd64', 'mips') | 78 valid_archs = ('arm', 'arm64', 'i386', 'amd64', 'mips') |
| 79 | 79 |
| 80 | 80 |
| 81 class Error(Exception): | 81 class Error(Exception): |
| 82 pass | 82 pass |
| 83 | 83 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 with open(stamp, 'w') as s: | 257 with open(stamp, 'w') as s: |
| 258 s.write(url) | 258 s.write(url) |
| 259 | 259 |
| 260 | 260 |
| 261 if __name__ == '__main__': | 261 if __name__ == '__main__': |
| 262 try: | 262 try: |
| 263 sys.exit(main(sys.argv[1:])) | 263 sys.exit(main(sys.argv[1:])) |
| 264 except Error as e: | 264 except Error as e: |
| 265 sys.stderr.write(str(e) + '\n') | 265 sys.stderr.write(str(e) + '\n') |
| 266 sys.exit(1) | 266 sys.exit(1) |
| OLD | NEW |