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' : '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba', | 41 'Revision' : '76b5bff8f195819fe17b2e0f773d0a5b427c75f5', |
42 'Tarball' : 'debian_wheezy_amd64_sysroot.tgz', | 42 'Tarball' : 'debian_wheezy_amd64_sysroot.tgz', |
43 'Sha1Sum' : 'a7f3df28b02799fbd7675c2ab24f1924c104c0ee', | 43 'Sha1Sum' : '9fdebab9633a0337a5b0e6d1c01ab15e25a5dbc7', |
44 'SysrootDir' : 'debian_wheezy_amd64-sysroot' | 44 'SysrootDir' : 'debian_wheezy_amd64-sysroot' |
45 }, | 45 }, |
46 ('Wheezy', 'arm'): { | 46 ('Wheezy', 'arm'): { |
47 'Revision' : '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba', | 47 'Revision' : '76b5bff8f195819fe17b2e0f773d0a5b427c75f5', |
48 'Tarball' : 'debian_wheezy_arm_sysroot.tgz', | 48 'Tarball' : 'debian_wheezy_arm_sysroot.tgz', |
49 'Sha1Sum' : '2df01b8173a363977daf04e176b8c7dba5b0b933', | 49 'Sha1Sum' : '0abadf3af78ce18147426bd017933899bae3f0ad', |
50 'SysrootDir' : 'debian_wheezy_arm-sysroot' | 50 'SysrootDir' : 'debian_wheezy_arm-sysroot' |
51 }, | 51 }, |
52 ('Wheezy', 'i386'): { | 52 ('Wheezy', 'i386'): { |
53 'Revision' : '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba', | 53 'Revision' : '76b5bff8f195819fe17b2e0f773d0a5b427c75f5', |
54 'Tarball' : 'debian_wheezy_i386_sysroot.tgz', | 54 'Tarball' : 'debian_wheezy_i386_sysroot.tgz', |
55 'Sha1Sum' : 'e2c7131fa5f711de28c37fd9442e77d32abfb3ff', | 55 'Sha1Sum' : '970d5e7eb9c43f20f862690fc88577aacaada27e', |
56 'SysrootDir' : 'debian_wheezy_i386-sysroot' | 56 'SysrootDir' : 'debian_wheezy_i386-sysroot' |
57 }, | 57 }, |
58 ('Wheezy', 'mips'): { | 58 ('Wheezy', 'mips'): { |
59 'Revision' : '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba', | 59 'Revision' : '76b5bff8f195819fe17b2e0f773d0a5b427c75f5', |
60 'Tarball' : 'debian_wheezy_mips_sysroot.tgz', | 60 'Tarball' : 'debian_wheezy_mips_sysroot.tgz', |
61 'Sha1Sum' : '22fe7b45b144691aeb515083025f0fceb131d724', | 61 'Sha1Sum' : 'df5adf99d64a65eec7e93c4ea2bfec21aab3ae63', |
62 'SysrootDir' : 'debian_wheezy_mips-sysroot' | 62 'SysrootDir' : 'debian_wheezy_mips-sysroot' |
63 }, | 63 }, |
64 ('Jessie', 'arm64'): { | 64 ('Jessie', 'arm64'): { |
65 'Revision' : '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba', | 65 'Revision' : '76b5bff8f195819fe17b2e0f773d0a5b427c75f5', |
66 'Tarball' : 'debian_jessie_arm64_sysroot.tgz', | 66 'Tarball' : 'debian_jessie_arm64_sysroot.tgz', |
67 'Sha1Sum' : 'df9270e00c258e6cd80f8172b1bfa39aafc4756f', | 67 'Sha1Sum' : 'a485259703842bf24c81b05e94f7d09e5dd3a8a2', |
68 'SysrootDir' : 'debian_jessie_arm64-sysroot' | 68 'SysrootDir' : 'debian_jessie_arm64-sysroot' |
69 }, | 69 }, |
70 ('Precise', 'amd64'): { | 70 ('Precise', 'amd64'): { |
71 'Revision' : '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba', | 71 'Revision' : '76b5bff8f195819fe17b2e0f773d0a5b427c75f5', |
72 'Tarball' : 'ubuntu_precise_amd64_sysroot.tgz', | 72 'Tarball' : 'ubuntu_precise_amd64_sysroot.tgz', |
73 'Sha1Sum' : '67985675e64e1d3cf6574088f36f89092ae9e86b', | 73 'Sha1Sum' : 'a3dba43c6be4410df7bd0e251fe7483936c62e32', |
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 |