Hi,
I have an NRF5340 application based on zephyr which produces a combined merged_domains.hex file.
I need to add a post build command after the "merge_domains.hex" file is generated to rename the "merge_domains.hex" file to "WECG_MODULE_revision_num.hex" . I have the cMakeLists.txt code as mentioned below.
set(REVISION_NUMBER "00_01_01") #revision number
set(HEX_FILE_NAME "${CMAKE_BINARY_DIR}/zephyr/WECG_MODULE_${REVISION_NUMBER}.hex")
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/zephyr/merged_domains.hex ${HEX_FILE_NAME}
)
I need to know in which CMakeLists.txt file can I add the above code?
Thanks and regards,
Ajit S J