blob: 4948935e17ac6bd5620784ce83fbf749f4f03ac5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
add_custom_command(
OUTPUT "${PROJECT_SOURCE_DIR}/${codal.output_folder}/${device.device}.hex"
COMMAND "${ARM_NONE_EABI_OBJCOPY}" -O ihex "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${device.device}" "${PROJECT_SOURCE_DIR}/${codal.output_folder}/${device.device}.hex"
DEPENDS ${device.device}
COMMENT "converting to hex file."
)
#specify a dependency on the elf file so that hex is automatically rebuilt when elf is changed.
add_custom_target(${device.device}_hex ALL DEPENDS "${PROJECT_SOURCE_DIR}/${codal.output_folder}/${device.device}.hex")
|