Toolchain#

The relenv toolchain command.

relenv.toolchain.build(arch, dirs, machine, ctngdir)#

Build a toolchaing for the given arch.

Parameters:
  • arch (str) – The architecture to build for

  • dirs (relenv.common.WorkDirs) – The working directories

  • machine (str) – The machine to build for

  • ctngdir (pathlib.Path) – The directory holding crosstool-ng

relenv.toolchain.fetch(arch, toolchain, clean=False, version='0.13.11')#

Fetch a toolchain and extract it to the filesystem.

Parameters:
  • arch (str) – The architecture of the toolchain

  • toolchain (str) – Where to extract the toolchain

  • clean (bool) – If true, clean the toolchain directories first

relenv.toolchain.main(args)#

The entrypoint into the relenv toolchain command.

Parameters:

args (argparse.Namespace) – The arguments for the command

relenv.toolchain.setup_parser(subparsers)#

Setup the subparser for the toolchain command.

Parameters:

subparsers (argparse._SubParsersAction) – The subparsers object returned from add_subparsers