cmake.firmware/fw_utils

cmake.firmware/fw_utils.disassemble(EXE)

This function disassembles the given executable target to generate an assembly file.

The function retrieves the binary directory of the target, sets the output assembly file name, and adds a custom command to disassemble the executable and store the result in the specified file.

Parameters:

EXE (string) – The executable target.

cmake.firmware/fw_utils.gen_hex_files(EXE **kwargs)

This function generates hex files for the given executable target.

The function retrieves the binary directory of the target, parses the width arguments, and includes a utility script to find Python. It then retrieves binary file properties from the target, sets the appropriate sections for the bootloader, and generates hex files for each specified width.

Parameters:

EXE (string) – The executable target.

cmake.firmware/fw_utils.set_linker_scripts(EXE **kwargs)

This function sets linker scripts for the given executable target.

The function parses the linker script arguments and sets them as link options for the target. It also sets a property on the target to store the list of linker scripts.

Parameters:

EXE (string) – The executable target.