Chromium Code Reviews

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

Issue 2027873004: sysroot installer: Don't error out for unknown target archs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« 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 89 matching lines...)
100 if target_arch == 'x64': 100 if target_arch == 'x64':
101 return 'amd64' 101 return 'amd64'
102 elif target_arch == 'ia32': 102 elif target_arch == 'ia32':
103 return 'i386' 103 return 'i386'
104 elif target_arch == 'arm': 104 elif target_arch == 'arm':
105 return 'arm' 105 return 'arm'
106 elif target_arch == 'arm64': 106 elif target_arch == 'arm64':
107 return 'arm64' 107 return 'arm64'
108 elif target_arch == 'mipsel': 108 elif target_arch == 'mipsel':
109 return 'mips' 109 return 'mips'
110 elif target_arch:
111 raise Error('Unrecognized target_arch: %s' % target_arch)
112 110
113 return None 111 return None
114 112
115 113
116 def InstallDefaultSysroots(): 114 def InstallDefaultSysroots():
117 """Install the default set of sysroot images. 115 """Install the default set of sysroot images.
118 116
119 This includes at least the sysroot for host architecture, and the 32-bit 117 This includes at least the sysroot for host architecture, and the 32-bit
120 sysroot for building the v8 snapshot image. It can also include the cross 118 sysroot for building the v8 snapshot image. It can also include the cross
121 compile sysroot for ARM/MIPS if cross compiling environment can be detected. 119 compile sysroot for ARM/MIPS if cross compiling environment can be detected.
(...skipping 93 matching lines...)
215 with open(stamp, 'w') as s: 213 with open(stamp, 'w') as s:
216 s.write(url) 214 s.write(url)
217 215
218 216
219 if __name__ == '__main__': 217 if __name__ == '__main__':
220 try: 218 try:
221 sys.exit(main(sys.argv[1:])) 219 sys.exit(main(sys.argv[1:]))
222 except Error as e: 220 except Error as e:
223 sys.stderr.write(str(e) + '\n') 221 sys.stderr.write(str(e) + '\n')
224 sys.exit(1) 222 sys.exit(1)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine