Lines Matching +full:- +full:- +full:target +full:- +full:list
3 # SPDX-License-Identifier: GPL-2.0+
26 After the parser runs, self.links will be set to a list of the links
36 self._match = '_%s-' % arch
54 cross: Cross compile string, e.g. 'arm-linux-'
56 component of the filename. E.g. arm-linux-gcc becomes arm
73 # Find the CROSS_COMPILE prefix to use for U-Boot. For example,
74 # 'arm-linux-gnueabihf-gcc' turns into 'arm-linux-gnueabihf-'.
76 pos = basename.rfind('-')
77 self.cross = basename[:pos + 1] if pos != -1 else ''
80 pos = self.cross.find('-')
84 self.arch = self.cross[:pos] if pos != -1 else 'sandbox'
88 # As a basic sanity check, run the C compiler with --version
89 cmd = [fname, '--version']
122 priority_list = ['-elf', '-unknown-linux-gnu', '-linux',
123 '-none-linux-gnueabi', '-none-linux-gnueabihf', '-uclinux',
124 '-none-eabi', '-gentoo-linux-gnu', '-linux-gnueabi',
125 '-linux-gnueabihf', '-le-linux', '-uclinux']
135 for name, value in bsettings.GetItems('toolchain-wrapper'):
170 """Manage a list of toolchains for building U-Boot
178 {'x86', 'opt/i386-linux/bin/i386-linux-'}, or the name of
180 {'arm', 'arm-linux-gnueabihf-'}. Wildcards are not supported.
181 paths: List of paths to check for toolchains (may contain wildcards)
188 self._make_flags = dict(bsettings.GetItems('make-flags'))
191 """Get a list of available toolchain paths
197 List of strings, each a path to a toolchain mentioned in the
203 "--fetch-arch all' to download all available toolchains, or "
222 self.prefixes = bsettings.GetItems('toolchain-prefix')
227 """Add a toolchain to our list
263 if verbose: print " - looking in '%s'" % dirname
265 if verbose: print " - found '%s'" % fname
275 List of matching pathanames, or [] if none
297 if verbose: print " - scanning prefix '%s'" % value
312 if verbose: print " - scanning path '%s'" % path
317 def List(self): member in Toolchains
318 """List out the selected toolchains for each architecture"""
320 print col.Color(col.BLUE, 'List of available toolchains (%d):' %
324 print '%-10s: %s' % (key, value.gcc)
337 for tag, value in bsettings.GetItems('toolchain-alias'):
369 re_var = re.compile('(\$\{[-_a-z0-9A-Z]{1,}\})')
375 lookup = m.group(0)[2:-1]
383 The flags are in a section called 'make-flags'. Flags are named
384 after the target they represent, for example snapper9260=TESTING=1
390 [make-flags]
391 at91-boards=ENABLE_AT91_TEST=1
392 snapper9260=${at91-boards} BUILD_TAG=442
393 snapper9g45=${at91-boards} BUILD_TAG=443
398 A special 'target' variable is set to the board target.
405 self._make_flags['target'] = board.target
407 self._make_flags.get(board.target, ''))
424 arch: Architecture to look for, or 'list' for all
426 If fetch_arch is 'list', a tuple:
428 List of toolchains
432 arch = command.OutputOneLine('uname', '-m')
443 if fetch_arch == 'list':
447 if fetch_arch == 'list':
463 leaf = url.split('/')[-1]
469 size = int(meta.getheaders('Content-Length')[0])
505 stdout = command.Output('tar', 'xvfJ', fname, '-C', dest)
506 return stdout.splitlines()[0][:-1]
518 """List architectures with available toolchains to download"""
519 host_arch, archives = self.LocateArchUrl('list')
520 re_arch = re.compile('[-a-z0-9.]*_([^-]*)-.*')
533 Architecture to fetch, or 'list' to list
540 print ("Cannot find toolchain for arch '%s' - use 'list' to list" %
544 dest = os.path.join(home, '.buildman-toolchains')
564 print 'Could not locate C compiler - fetch failed.'