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

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

Issue 2343643004: Build with jessie sysroots (Closed)
Patch Set: Fix compile error related to GNOME keyring Created 4 years, 3 months 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 | « build/config/sysroot.gni ('k') | components/os_crypt/key_storage_keyring.cc » ('j') | 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 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 19 matching lines...) Expand all
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 38
39 SYSROOTS = { 39 SYSROOTS = {
40 ('Wheezy', 'amd64'): { 40 ('Jessie', 'amd64'): {
41 'Revision' : '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba', 41 'Revision' : '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba',
42 'Tarball' : 'debian_wheezy_amd64_sysroot.tgz', 42 'Tarball' : 'debian_jessie_amd64_sysroot.tgz',
43 'Sha1Sum' : 'a7f3df28b02799fbd7675c2ab24f1924c104c0ee', 43 'Sha1Sum' : '0fefbf3abc4428451a2eb44cc9916f27bb0e1a13',
44 'SysrootDir' : 'debian_wheezy_amd64-sysroot' 44 'SysrootDir' : 'debian_jessie_amd64-sysroot'
45 }, 45 },
46 ('Wheezy', 'arm'): { 46 ('Jessie', 'arm'): {
47 'Revision' : '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba', 47 'Revision' : '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba',
48 'Tarball' : 'debian_wheezy_arm_sysroot.tgz', 48 'Tarball' : 'debian_jessie_arm_sysroot.tgz',
49 'Sha1Sum' : '2df01b8173a363977daf04e176b8c7dba5b0b933', 49 'Sha1Sum' : 'a33b7430b7c81a96ee399793a464f95d1d048a52',
50 'SysrootDir' : 'debian_wheezy_arm-sysroot' 50 'SysrootDir' : 'debian_jessie_arm-sysroot'
51 }, 51 },
52 ('Wheezy', 'i386'): { 52 ('Jessie', 'i386'): {
53 'Revision' : '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba', 53 'Revision' : '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba',
54 'Tarball' : 'debian_wheezy_i386_sysroot.tgz', 54 'Tarball' : 'debian_jessie_i386_sysroot.tgz',
55 'Sha1Sum' : 'e2c7131fa5f711de28c37fd9442e77d32abfb3ff', 55 'Sha1Sum' : '35f551e58c20770c6106f4e3668760f51b733374',
56 'SysrootDir' : 'debian_wheezy_i386-sysroot' 56 'SysrootDir' : 'debian_jessie_i386-sysroot'
57 }, 57 },
58 ('Wheezy', 'mips'): { 58 ('Jessie', 'mips'): {
59 'Revision' : '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba', 59 'Revision' : '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba',
60 'Tarball' : 'debian_wheezy_mips_sysroot.tgz', 60 'Tarball' : 'debian_jessie_mips_sysroot.tgz',
61 'Sha1Sum' : '22fe7b45b144691aeb515083025f0fceb131d724', 61 'Sha1Sum' : 'aac4a31ef858c663c69d69700b61d2c4969c4e25',
62 'SysrootDir' : 'debian_wheezy_mips-sysroot' 62 'SysrootDir' : 'debian_jessie_mips-sysroot'
63 }, 63 },
64 ('Jessie', 'arm64'): { 64 ('Jessie', 'arm64'): {
65 'Revision' : '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba', 65 'Revision' : '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba',
66 'Tarball' : 'debian_jessie_arm64_sysroot.tgz', 66 'Tarball' : 'debian_jessie_arm64_sysroot.tgz',
67 'Sha1Sum' : 'df9270e00c258e6cd80f8172b1bfa39aafc4756f', 67 'Sha1Sum' : 'df9270e00c258e6cd80f8172b1bfa39aafc4756f',
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' : '24f935a3d8cdfcdfbabd23928a42304b1ffc52ba',
72 'Tarball' : 'ubuntu_precise_amd64_sysroot.tgz', 72 'Tarball' : 'ubuntu_precise_amd64_sysroot.tgz',
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 else: 186 else:
187 if not options.arch: 187 if not options.arch:
188 print 'You much specify either --arch or --running-as-hook' 188 print 'You much specify either --arch or --running-as-hook'
189 return 1 189 return 1
190 InstallDefaultSysrootForArch(options.arch) 190 InstallDefaultSysrootForArch(options.arch)
191 191
192 return 0 192 return 0
193 193
194 def InstallDefaultSysrootForArch(target_arch): 194 def InstallDefaultSysrootForArch(target_arch):
195 if target_arch == 'amd64': 195 if target_arch == 'amd64':
196 InstallSysroot('Wheezy', 'amd64') 196 InstallSysroot('Jessie', 'amd64')
197 elif target_arch == 'arm': 197 elif target_arch == 'arm':
198 InstallSysroot('Wheezy', 'arm') 198 InstallSysroot('Jessie', 'arm')
199 elif target_arch == 'arm64': 199 elif target_arch == 'arm64':
200 InstallSysroot('Jessie', 'arm64') 200 InstallSysroot('Jessie', 'arm64')
201 elif target_arch == 'i386': 201 elif target_arch == 'i386':
202 InstallSysroot('Wheezy', 'i386') 202 InstallSysroot('Jessie', 'i386')
203 elif target_arch == 'mips': 203 elif target_arch == 'mips':
204 InstallSysroot('Wheezy', 'mips') 204 InstallSysroot('Jessie', 'mips')
205 else: 205 else:
206 raise Error('Unknown architecture: %s' % target_arch) 206 raise Error('Unknown architecture: %s' % target_arch)
207 207
208 def InstallSysroot(target_platform, target_arch): 208 def InstallSysroot(target_platform, target_arch):
209 # The sysroot directory should match the one specified in build/common.gypi. 209 # The sysroot directory should match the one specified in build/common.gypi.
210 # TODO(thestig) Consider putting this else where to avoid having to recreate 210 # TODO(thestig) Consider putting this else where to avoid having to recreate
211 # it on every build. 211 # it on every build.
212 linux_dir = os.path.dirname(SCRIPT_DIR) 212 linux_dir = os.path.dirname(SCRIPT_DIR)
213 213
214 if (target_platform, target_arch) not in SYSROOTS: 214 if (target_platform, target_arch) not in SYSROOTS:
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 with open(stamp, 'w') as s: 250 with open(stamp, 'w') as s:
251 s.write(url) 251 s.write(url)
252 252
253 253
254 if __name__ == '__main__': 254 if __name__ == '__main__':
255 try: 255 try:
256 sys.exit(main(sys.argv[1:])) 256 sys.exit(main(sys.argv[1:]))
257 except Error as e: 257 except Error as e:
258 sys.stderr.write(str(e) + '\n') 258 sys.stderr.write(str(e) + '\n')
259 sys.exit(1) 259 sys.exit(1)
OLDNEW
« no previous file with comments | « build/config/sysroot.gni ('k') | components/os_crypt/key_storage_keyring.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698