Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: build/linux/sysroot_scripts/install-sysroot.py

Issue 1534873002: Download sysroot from "commondatastorage.googleapis.com" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bumm, just change the url "genius" :) Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 Wheezy sysroots for building chromium. 6 """Install Debian Wheezy 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. This script can be run manually but 10 # the oldest supported linux distribution. This script can be run manually but
(...skipping 14 matching lines...) Expand all
25 import subprocess 25 import subprocess
26 import sys 26 import sys
27 27
28 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) 28 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
29 sys.path.append(os.path.dirname(os.path.dirname(SCRIPT_DIR))) 29 sys.path.append(os.path.dirname(os.path.dirname(SCRIPT_DIR)))
30 import detect_host_arch 30 import detect_host_arch
31 import gyp_chromium 31 import gyp_chromium
32 import gyp_environment 32 import gyp_environment
33 33
34 34
35 URL_PREFIX = 'http://storage.googleapis.com' 35 URL_PREFIX = 'http://commondatastorage.googleapis.com'
36 URL_PATH = 'chrome-linux-sysroot/toolchain' 36 URL_PATH = 'chrome-linux-sysroot/toolchain'
37 REVISION_AMD64 = 'bd0a221bc45ed0e70fcce0ce79f6dd86f4dfda07' 37 REVISION_AMD64 = 'bd0a221bc45ed0e70fcce0ce79f6dd86f4dfda07'
38 REVISION_ARM = 'bd0a221bc45ed0e70fcce0ce79f6dd86f4dfda07' 38 REVISION_ARM = 'bd0a221bc45ed0e70fcce0ce79f6dd86f4dfda07'
39 REVISION_I386 = 'bd0a221bc45ed0e70fcce0ce79f6dd86f4dfda07' 39 REVISION_I386 = 'bd0a221bc45ed0e70fcce0ce79f6dd86f4dfda07'
40 REVISION_MIPS = 'bd0a221bc45ed0e70fcce0ce79f6dd86f4dfda07' 40 REVISION_MIPS = 'bd0a221bc45ed0e70fcce0ce79f6dd86f4dfda07'
41 TARBALL_AMD64 = 'debian_wheezy_amd64_sysroot.tgz' 41 TARBALL_AMD64 = 'debian_wheezy_amd64_sysroot.tgz'
42 TARBALL_ARM = 'debian_wheezy_arm_sysroot.tgz' 42 TARBALL_ARM = 'debian_wheezy_arm_sysroot.tgz'
43 TARBALL_I386 = 'debian_wheezy_i386_sysroot.tgz' 43 TARBALL_I386 = 'debian_wheezy_i386_sysroot.tgz'
44 TARBALL_MIPS = 'debian_wheezy_mips_sysroot.tgz' 44 TARBALL_MIPS = 'debian_wheezy_mips_sysroot.tgz'
45 TARBALL_AMD64_SHA1SUM = 'a0c85e8c964638ea4e442cb6d59b8f478830a453' 45 TARBALL_AMD64_SHA1SUM = 'a0c85e8c964638ea4e442cb6d59b8f478830a453'
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 if __name__ == '__main__': 211 if __name__ == '__main__':
212 parser = optparse.OptionParser('usage: %prog [OPTIONS]', description=__doc__) 212 parser = optparse.OptionParser('usage: %prog [OPTIONS]', description=__doc__)
213 parser.add_option('--running-as-hook', action='store_true', 213 parser.add_option('--running-as-hook', action='store_true',
214 default=False, help='Used when running from gclient hooks.' 214 default=False, help='Used when running from gclient hooks.'
215 ' Installs default sysroot images.') 215 ' Installs default sysroot images.')
216 parser.add_option('--arch', type='choice', choices=valid_archs, 216 parser.add_option('--arch', type='choice', choices=valid_archs,
217 help='Sysroot architecture: %s' % ', '.join(valid_archs)) 217 help='Sysroot architecture: %s' % ', '.join(valid_archs))
218 options, _ = parser.parse_args() 218 options, _ = parser.parse_args()
219 sys.exit(main()) 219 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698