2.1.1.1. TI ARM CGT
The tool is located in tools/waf-tools.
2.1.1.1.1. Tool Documentation
Implements a waf tool to use TI ARM CGT (https://www.ti.com/tool/ARM-CGT).
- class f_ti_arm_cgt.AtTemplate(template)
Bases:
TemplateCustom ‘Template’-string to support the ‘@{abc}’ syntax
- f_ti_arm_cgt.accept_node_to_link(self, node)
Filters which output files are not meant to be linked
- class f_ti_arm_cgt.app_crc_gen(*args: Any, **kwargs: Any)
Bases:
TaskTask create the CRC file from the .bin file
- class f_ti_arm_cgt.asm(*args: Any, **kwargs: Any)
Bases:
Taskclass to run the TI ARM CGT compiler in compiler mode to create object files from assembler sources.
- f_ti_arm_cgt.asm_hook(self, node)
Creates the compiled task for assembler sources
f_ti_arm_cgt.create_compiled_task_asm().
- class f_ti_arm_cgt.bingen(*args: Any, **kwargs: Any)
Bases:
TaskTask create bin file from elf files
- class f_ti_arm_cgt.c(*args: Any, **kwargs: Any)
Bases:
TaskThis class implements the TI ARM CGT compiler in compiler mode to create object files from c sources. Additionally an aux file (user information file), a crl files (cross-reference listing file) and a rl file (output preprocessor listing) are generated.
- keyword()
Displayed keyword when source files are compiled
- f_ti_arm_cgt.c_hook(self, node)
Creates all related task generators for C sources, which are
- class f_ti_arm_cgt.c_pp(*args: Any, **kwargs: Any)
Bases:
Taskclass to run the TI ARM CGT compiler in “preproc_only” mode, to have a pp file that includes the preprocess information
- class f_ti_arm_cgt.c_ppd(*args: Any, **kwargs: Any)
Bases:
Taskclass to run the TI ARM CGT compiler in “preproc_dependency” mode, to have a ppd file that includes dependency information
- class f_ti_arm_cgt.c_ppi(*args: Any, **kwargs: Any)
Bases:
Taskclass to run the TI ARM CGT compiler in “preproc_includes” mode, to have a ppi file that includes the include information
- class f_ti_arm_cgt.c_ppm(*args: Any, **kwargs: Any)
Bases:
Taskclass to run the TI ARM CGT compiler in “preproc_macros” mode, to have a ppm file that includes all compile time macros
- f_ti_arm_cgt.cgt_flags(ctx)
Sets flags and related configuration options of the compiler.
- class f_ti_arm_cgt.clean_pp_file(*args: Any, **kwargs: Any)
Bases:
TaskTask to remove some information from the preprocessed files
- run()
Removes empty lines and strips some intrinsics that should not be included in the postprocessed file
- f_ti_arm_cgt.configure(ctx)
Configuration step of the TI ARM CGT compiler tool
- class f_ti_arm_cgt.copy_to_out_dir(*args: Any, **kwargs: Any)
Bases:
TaskThis class implements the copying of a node to another location in the build tree
- run()
Copy the generated elf file to build directory of the variant
- class f_ti_arm_cgt.cprogram(*args: Any, **kwargs: Any)
Bases:
link_taskclass to run the TI ARM CGT compiler in linker mode to create the target
- class f_ti_arm_cgt.create_app_build_cfg_source(*args: Any, **kwargs: Any)
Bases:
Taskcreates the app build configuration information file
- f_ti_arm_cgt.create_compiled_task_asm(self, name, node)
Creates the assembler task and binds it to the
f_ti_arm_cgt.asmclass.The created tasks are appended to the list of
compiled_tasks.
- f_ti_arm_cgt.create_compiled_task_c(self, name, node)
Creates the assembler task and binds it to the
f_ti_arm_cgt.cclass.The created tasks are appended to the list of
compiled_tasks.
- f_ti_arm_cgt.create_compiled_task_c_pp(self, name, node)
Creates the pp task and binds it to the
f_ti_arm_cgt.c_ppclass.
- f_ti_arm_cgt.create_compiled_task_c_ppd(self, name, node)
Creates the ppd task and binds it to the
f_ti_arm_cgt.c_ppdclass.
- f_ti_arm_cgt.create_compiled_task_c_ppi(self, name, node)
Creates the ppi task and binds it to the
f_ti_arm_cgt.c_ppiclass.
- f_ti_arm_cgt.create_compiled_task_c_ppm(self, name, node)
Creates the ppm task and binds it to the
f_ti_arm_cgt.c_ppmclass.
- class f_ti_arm_cgt.create_version_source(*args: Any, **kwargs: Any)
Bases:
Taskcreates the version information file
- class f_ti_arm_cgt.cstlib(*args: Any, **kwargs: Any)
Bases:
stlink_taskc static library
- f_ti_arm_cgt.find_armar(ctx)
Configures the archive tool
- f_ti_arm_cgt.find_armcl(ctx)
Configures the compiler, determines the compiler version, and sets the default include paths.
- class f_ti_arm_cgt.get_stack(*args: Any, **kwargs: Any)
Bases:
Taskgathers all stack information in one file
- run()
Gathers the stack usage information
- class f_ti_arm_cgt.hexgen(*args: Any, **kwargs: Any)
Bases:
TaskTask create hex file from elf files
- class f_ti_arm_cgt.nm(*args: Any, **kwargs: Any)
Bases:
TaskTask to run armnm on all input files
- f_ti_arm_cgt.options(opt)
Configurable options of the
f_ti_arm_cgttool.Furthermore the default formatter gets replaced by
f_ti_arm_cgt.armclFormatter.
- f_ti_arm_cgt.remove_targets(task)
General helper function to remove targets
- class f_ti_arm_cgt.size(*args: Any, **kwargs: Any)
Bases:
TaskTask to run size on all input files
- class f_ti_arm_cgt.stlink_task(*args: Any, **kwargs: Any)
Bases:
link_taskstatic link task
- f_ti_arm_cgt.tiprogram(bld: waflib.Build.BuildContext, *k, **kw)
Wrapper for bld.program for simpler target configuration. The linker script is added as env input/output dependency for the target. Based on the target name all related targets are created:
binary: <target>.<format>
linker information: <target>.<format>.xml
map information: <target>.<format>.map
- class f_ti_arm_cgt.update_lauterbach_script(*args: Any, **kwargs: Any)
Bases:
TaskTask create the CRC file from the .bin file