| 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 = '3b5d58f57cb0935f90416a201ba65060c08126cd' | 38 REVISION_AMD64 = 'c52471d9dec240c8d0a88fa98aa1eefeee32e22f' |
| 39 REVISION_ARM = '3b5d58f57cb0935f90416a201ba65060c08126cd' | 39 REVISION_ARM = 'c52471d9dec240c8d0a88fa98aa1eefeee32e22f' |
| 40 REVISION_ARM64 = 'bd10c315594d2a20e31a94a7a6c7adb9a0961c56' | 40 REVISION_ARM64 = 'bd10c315594d2a20e31a94a7a6c7adb9a0961c56' |
| 41 REVISION_I386 = '3b5d58f57cb0935f90416a201ba65060c08126cd' | 41 REVISION_I386 = 'c52471d9dec240c8d0a88fa98aa1eefeee32e22f' |
| 42 REVISION_MIPS = '3b5d58f57cb0935f90416a201ba65060c08126cd' | 42 REVISION_MIPS = 'c52471d9dec240c8d0a88fa98aa1eefeee32e22f' |
| 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 = 'cbb927a98dfb9c9b6222f7ec6bf93056cd28f047' | 48 TARBALL_AMD64_SHA1SUM = 'ca4ed6e7c9e333b046be19d38584a11f6785eea6' |
| 49 TARBALL_ARM_SHA1SUM = 'c2ccfb5ce6d1f509ad05e5b7ce9608b0800d1cdc' | 49 TARBALL_ARM_SHA1SUM = '1fab0c2b1e93a933ddc593df3b43872b0ba5ded2' |
| 50 TARBALL_ARM64_SHA1SUM = '0db3be51912e0be46bb1b906fc196c5c1dfc090f' | 50 TARBALL_ARM64_SHA1SUM = '0db3be51912e0be46bb1b906fc196c5c1dfc090f' |
| 51 TARBALL_I386_SHA1SUM = 'c299787b6c6e4f8f08167f657643effebac8a77a' | 51 TARBALL_I386_SHA1SUM = '80c48c303319af2284e4a104c882d888af75ba81' |
| 52 TARBALL_MIPS_SHA1SUM = 'bb292b47a372aeadc92f04b553fb03622897dfad' | 52 TARBALL_MIPS_SHA1SUM = '01da32a35288627e05cfca193b7f3659531c6f7d' |
| 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 |