3.1.34. waf_tools.ti_arm_cgt
Integration of the TI ARM Code Generation Tools into the Waf build system.
This waf tool configures the TI ARM CGT compiler toolchain
(https://www.ti.com/tool/ARM-CGT) for cross-compiling C code targeting
ARM Cortex-R microcontrollers. It replaces the standard GCC-based cc
tool and provides additional features such as hex/binary generation,
preprocessing, symbol listing, and linker-script handling.
3.1.34.1. Usage
Load the tool during
optionsandconfigure:def options(opt): opt.load("ti_arm_cgt", tooldir=TOOLDIR) def configure(ctx): ctx.load("ti_arm_cgt", tooldir=TOOLDIR)
Build a program target using the TI ARM CGT toolchain:
def build(bld): bld.objects( source="abc.c", target="abc", )
Optionally enable preprocessing or listing generation:
waf build_app_ti_arm_cgt --preprocess-files waf build_app_ti_arm_cgt --generate-listings
3.1.34.2. Dependencies
TI ARM CGT (armcl, armar, armasm, armhex, armofd, tiobj2bin, …)
Ruby (for HALCoGen code generation in related tools)
waf tools:
nm,size,hexgen,bingen(this toolchain)
Functions
|
Register XML link-info and map-file as additional link task outputs. |
|
Inject command files as |
|
Add a hex-file generation task after linking. |
|
Wrap library lists in |
|
Add preinclude dependencies to C and assembly tasks. |
Adjust assembler flags for |
|
Adjust |
|
|
Configure the TI ARM CGT embedded compiler toolchain. |
|
Locate additional tools distributed with the TI ARM CGT compiler. |
|
Find the TI ARM CGT archiver and store it in |
|
Find the TI ARM CGT assembler and store it in |
|
Find the TI ARM CGT compiler and store it in |
|
Find the TI ARM CGT symbol listing tool and store it in |
|
Find the TI ARM CGT size tool and store it in |
|
Find the TI ARM CGT binary generation tool and store it in |
|
Find the TI ARM CGT hex generation tool and store it in |
Detect the TI ARM CGT compiler version. |
|
|
Create preprocessing tasks for each C source file. |
|
Register command-line options for TI ARM CGT builds. |
Copy the compiler flags into the link task's flags, stripping |
|
|
Add the linker script to the link command and register it as a dependency. |
Set default compiler, linker, and assembler flags for the TI ARM CGT toolchain on |
|
Set default include and library search paths for the TI ARM CGT toolchain on |