Lines Matching full:toolchain
48 class Toolchain: class
49 """A single toolchain
55 arch: Architecture of toolchain as determined from the first
57 priority: Toolchain priority (0=highest, 20=lowest)
61 """Create a new toolchain object.
65 test: True to run the toolchain to test it
67 priority: Priority to use for this toolchain, or PRIORITY_CALC to
112 """Return the priority of the toolchain.
118 fname: Filename of toolchain
120 Priority of toolchain, PRIORITY_CALC=highest, 20=lowest.
132 """Get toolchain wrapper from the setting file.
135 for name, value in bsettings.GetItems('toolchain-wrapper'):
144 """Returns an environment for using the toolchain.
172 We select one toolchain for each architecture type
175 toolchains: Dict of Toolchain objects, keyed by architecture name
177 be a full path and toolchain prefix, for example
191 """Get a list of available toolchain paths
197 List of strings, each a path to a toolchain mentioned in the
198 [toolchain] section of the settings file.
200 toolchains = bsettings.GetItems('toolchain')
204 "add a [toolchain] section to your buildman config file "
217 """Get toolchain settings from the settings file.
222 self.prefixes = bsettings.GetItems('toolchain-prefix')
227 """Add a toolchain to our list
229 We select the given toolchain as our preferred one for its
233 fname: Filename of toolchain's gcc driver
234 test: True to run the toolchain to test it
235 priority: Priority to use for this toolchain
236 arch: Toolchain architecture, or None if not known
238 toolchain = Toolchain(fname, test, verbose, priority, arch)
239 add_it = toolchain.ok
240 if toolchain.arch in self.toolchains:
241 add_it = (toolchain.priority <
242 self.toolchains[toolchain.arch].priority)
244 self.toolchains[toolchain.arch] = toolchain
246 print ("Toolchain '%s' at priority %d will be ignored because "
247 "another toolchain for arch '%s' has priority %d" %
248 (toolchain.gcc, toolchain.priority, toolchain.arch,
249 self.toolchains[toolchain.arch].priority))
252 """Scan a path for a valid toolchain
290 highest priority toolchain for each arch.
329 """Returns the toolchain for a given architecture
335 toolchain object, or None if none found
337 for tag, value in bsettings.GetItems('toolchain-alias'):
418 """Find a toolchain available online
430 URL containing this toolchain, if avaialble, else None
509 """Check if buildman will find this toolchain
530 """Fetch and install a new toolchain
537 print col.Color(col.BLUE, "Downloading toolchain for arch '%s'" % arch)
540 print ("Cannot find toolchain for arch '%s' - use 'list' to list" %
548 # Download the tar file for this toolchain and unpack it
559 # Check that the toolchain works
569 toolchain = Toolchain(compiler_fname_list[0], True, True)
575 bsettings.SetItem('toolchain', 'download', '%s/*/*' % dest)