mlonmcu.target package
Subpackages
Submodules
mlonmcu.target.common module
Helper functions used by MLonMCU targets
- mlonmcu.target.common.add_common_options(parser: ArgumentParser, target)[source]
Add a set of common options to a command line parser.
- Parameters:
- parserargparse.ArgumentParser
The command line parser
- mlonmcu.target.common.cli(target, args: List[str] = None)[source]
Utility to handle the command line api for targets.
- Parameters:
- targetTarget
The target to be used.
- argslist
Interface to pass arguments to the command line parser from test functions.
mlonmcu.target.elf module
mlonmcu.target.host_x86 module
mlonmcu.target.metrics module
mlonmcu.target.target module
MLonMCU Target definitions
- class mlonmcu.target.target.Target(name: str, features: List[Feature] = None, config: dict = None)[source]
Bases:
objectBase target class
- Attributes:
- namestr
Default name of the target
- featureslist
List of target features which should be enabled
- configdict
User config defined via key-value pairs
- inspect_programstr
Program which can be used to inspect executables (i.e. readelf)
- inspect_program_argslist
List of additional arguments to the inspect_program
- envos._Environ
Optinal map of environment variables
- DEFAULTS = {'fclk': None, 'print_outputs': False, 'repeat': None, 'temp_dir_base': None}
- FEATURES = {'benchmark'}
- OPTIONAL = {}
- REQUIRED = {}
- exec(program: Path, *args, cwd='/home/docs/checkouts/readthedocs.org/user_builds/mlonmcu/checkouts/latest/docs', **kwargs)[source]
Use target to execute a executable with given arguments
- property fclk
- property print_outputs
- property repeat
- property supports_argv
- property supports_filesystem
- property supports_stdin
- property supports_stdout
- property supports_uart
- property temp_dir_base