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

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

Issue 2645523003: Build ozone/linux_os with jessie sysroot when use_ozone=true (Closed)
Patch Set: Created 3 years, 11 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
« build/config/sysroot.gni ('K') | « build/config/sysroot.gni ('k') | 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 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 InstallDefaultSysrootForArch(host_arch) 119 InstallDefaultSysrootForArch(host_arch)
120 120
121 if host_arch == 'amd64': 121 if host_arch == 'amd64':
122 InstallDefaultSysrootForArch('i386') 122 InstallDefaultSysrootForArch('i386')
123 123
124 # Desktop Chromium OS builds require the precise sysroot. 124 # Desktop Chromium OS builds require the precise sysroot.
125 # TODO(thomasanderson): only download this when the GN arg target_os 125 # TODO(thomasanderson): only download this when the GN arg target_os
126 # == 'chromeos', when the functionality to perform the check becomes 126 # == 'chromeos', when the functionality to perform the check becomes
127 # available. 127 # available.
128 InstallSysroot('Precise', 'amd64') 128 InstallSysroot('Precise', 'amd64')
129 InstallSysroot('Jessie', 'amd64')
Tom (Use chromium acct) 2017/01/18 19:02:18 remove this
tonikitoo 2017/01/20 20:26:21 Done.
129 130
130 # Finally, if we can detect a non-standard target_arch such as ARM or 131 # Finally, if we can detect a non-standard target_arch such as ARM or
131 # MIPS, then install the sysroot too. 132 # MIPS, then install the sysroot too.
132 # Don't attampt to install arm64 since this is currently and android-only 133 # Don't attampt to install arm64 since this is currently and android-only
133 # architecture. 134 # architecture.
134 target_arch = DetectTargetArch() 135 target_arch = DetectTargetArch()
135 if target_arch and target_arch not in (host_arch, 'i386'): 136 if target_arch and target_arch not in (host_arch, 'i386'):
136 InstallDefaultSysrootForArch(target_arch) 137 InstallDefaultSysrootForArch(target_arch)
137 138
138 139
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 with open(stamp, 'w') as s: 232 with open(stamp, 'w') as s:
232 s.write(url) 233 s.write(url)
233 234
234 235
235 if __name__ == '__main__': 236 if __name__ == '__main__':
236 try: 237 try:
237 sys.exit(main(sys.argv[1:])) 238 sys.exit(main(sys.argv[1:]))
238 except Error as e: 239 except Error as e:
239 sys.stderr.write(str(e) + '\n') 240 sys.stderr.write(str(e) + '\n')
240 sys.exit(1) 241 sys.exit(1)
OLDNEW
« build/config/sysroot.gni ('K') | « build/config/sysroot.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698