3.1.7. waf_tools.bingen

Generation of raw binary files from linked ELF outputs.

This waf tool converts a linked ELF executable into a raw binary file using the TI tiobj2bin utility (OBJ2BIN). The binary generation task is automatically appended after the link step for task generators with the cprogram feature when the TI ARM CGT toolchain is active.

3.1.7.1. Usage

  1. The tool is loaded and configured by waf_tools.ti_arm_cgt.find_bingen():

    # in ti_arm_cgt.py
    @conf
    def find_bingen(ctx):
        ctx.load("bingen", tooldir=TOOL_DIR)
    
  2. The add_bingen_task feature hook runs automatically after linking for any task generator that uses the cprogram feature and the armcl compiler.

3.1.7.2. Dependencies

  • TI tiobj2bin utility (OBJ2BIN environment variable)

  • TI ARM CGT toolchain (CC_NAME == "armcl")

Functions

add_bingen_task(self)

Append a binary-generation task after the link step.

configure(ctx)

Configure the binary generation tool.

Classes

bingen(*k, **kw)

Task that converts a linked ELF file into a raw binary.