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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) | 29 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) |
30 sys.path.append(os.path.dirname(os.path.dirname(SCRIPT_DIR))) | 30 sys.path.append(os.path.dirname(os.path.dirname(SCRIPT_DIR))) |
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 REVISION_AMD64 = 'c09e94d74f6efc174bd88195eee902b4350fc006' | 38 REVISION_AMD64 = '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba' |
39 REVISION_ARM = 'c09e94d74f6efc174bd88195eee902b4350fc006' | 39 REVISION_ARM = '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba' |
40 REVISION_ARM64 = 'bd10c315594d2a20e31a94a7a6c7adb9a0961c56' | 40 REVISION_ARM64 = '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba' |
41 REVISION_I386 = 'c09e94d74f6efc174bd88195eee902b4350fc006' | 41 REVISION_I386 = '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba' |
42 REVISION_MIPS = 'c09e94d74f6efc174bd88195eee902b4350fc006' | 42 REVISION_MIPS = '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba' |
43 TARBALL_AMD64 = 'debian_wheezy_amd64_sysroot.tgz' | 43 TARBALL_AMD64 = 'debian_wheezy_amd64_sysroot.tgz' |
44 TARBALL_ARM = 'debian_wheezy_arm_sysroot.tgz' | 44 TARBALL_ARM = 'debian_wheezy_arm_sysroot.tgz' |
45 TARBALL_ARM64 = 'debian_jessie_arm64_sysroot.tgz' | 45 TARBALL_ARM64 = 'debian_jessie_arm64_sysroot.tgz' |
46 TARBALL_I386 = 'debian_wheezy_i386_sysroot.tgz' | 46 TARBALL_I386 = 'debian_wheezy_i386_sysroot.tgz' |
47 TARBALL_MIPS = 'debian_wheezy_mips_sysroot.tgz' | 47 TARBALL_MIPS = 'debian_wheezy_mips_sysroot.tgz' |
48 TARBALL_AMD64_SHA1SUM = 'dceb51a6bd358f7ef64062e813f4698464e89554' | 48 TARBALL_AMD64_SHA1SUM = 'a7f3df28b02799fbd7675c2ab24f1924c104c0ee' |
49 TARBALL_ARM_SHA1SUM = '9dfbf23878a75fc8d482f39b0569314bbb869d63' | 49 TARBALL_ARM_SHA1SUM = '2df01b8173a363977daf04e176b8c7dba5b0b933' |
50 TARBALL_ARM64_SHA1SUM = '0db3be51912e0be46bb1b906fc196c5c1dfc090f' | 50 TARBALL_ARM64_SHA1SUM = 'df9270e00c258e6cd80f8172b1bfa39aafc4756f' |
51 TARBALL_I386_SHA1SUM = '89da0ad90690c0bc71222caf0d55496f0ad8c201' | 51 TARBALL_I386_SHA1SUM = 'e2c7131fa5f711de28c37fd9442e77d32abfb3ff' |
52 TARBALL_MIPS_SHA1SUM = '652631078c59f1c1f2bbb24637ef33374a2e8cdf' | 52 TARBALL_MIPS_SHA1SUM = '22fe7b45b144691aeb515083025f0fceb131d724' |
53 SYSROOT_DIR_AMD64 = 'debian_wheezy_amd64-sysroot' | 53 SYSROOT_DIR_AMD64 = 'debian_wheezy_amd64-sysroot' |
54 SYSROOT_DIR_ARM = 'debian_wheezy_arm-sysroot' | 54 SYSROOT_DIR_ARM = 'debian_wheezy_arm-sysroot' |
55 SYSROOT_DIR_ARM64 = 'debian_jessie_arm64-sysroot' | 55 SYSROOT_DIR_ARM64 = 'debian_jessie_arm64-sysroot' |
56 SYSROOT_DIR_I386 = 'debian_wheezy_i386-sysroot' | 56 SYSROOT_DIR_I386 = 'debian_wheezy_i386-sysroot' |
57 SYSROOT_DIR_MIPS = 'debian_wheezy_mips-sysroot' | 57 SYSROOT_DIR_MIPS = 'debian_wheezy_mips-sysroot' |
58 | 58 |
59 valid_archs = ('arm', 'arm64', 'i386', 'amd64', 'mips') | 59 valid_archs = ('arm', 'arm64', 'i386', 'amd64', 'mips') |
60 | 60 |
61 | 61 |
62 class Error(Exception): | 62 class Error(Exception): |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 with open(stamp, 'w') as s: | 226 with open(stamp, 'w') as s: |
227 s.write(url) | 227 s.write(url) |
228 | 228 |
229 | 229 |
230 if __name__ == '__main__': | 230 if __name__ == '__main__': |
231 try: | 231 try: |
232 sys.exit(main(sys.argv[1:])) | 232 sys.exit(main(sys.argv[1:])) |
233 except Error as e: | 233 except Error as e: |
234 sys.stderr.write(str(e) + '\n') | 234 sys.stderr.write(str(e) + '\n') |
235 sys.exit(1) | 235 sys.exit(1) |
OLD | NEW |