diff options
author | Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no> | 2020-04-02 15:34:50 +0200 |
---|---|---|
committer | Anton Komlev <Anton.Komlev@arm.com> | 2020-06-19 14:21:17 +0000 |
commit | 762415cf8eb5515a5bb4daa391ecb9c0e9a7db60 (patch) | |
tree | f732c86ab971a36d8e0dd7469da1673eac17fa54 /bl2/ext | |
parent | e409401fdf0e769516cd784de6000a8eaa16b2b2 (diff) | |
download | trusted-firmware-m-762415cf8eb5515a5bb4daa391ecb9c0e9a7db60.tar.gz |
Build: Create hex and elf files of executables
Install hex and elf files to the same location as the axf and bin files
Change-Id: I20a54560e733df875705f98b0ec3c3a1f5a01657
Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
Diffstat (limited to 'bl2/ext')
-rw-r--r-- | bl2/ext/mcuboot/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bl2/ext/mcuboot/CMakeLists.txt b/bl2/ext/mcuboot/CMakeLists.txt index faa1010653..f073e6b603 100644 --- a/bl2/ext/mcuboot/CMakeLists.txt +++ b/bl2/ext/mcuboot/CMakeLists.txt @@ -187,6 +187,12 @@ endif() #Generate binary file from axf compiler_generate_binary_output(${PROJECT_NAME}) +#Generate intel hex file from axf +compiler_generate_hex_output(${PROJECT_NAME}) + +#Generate elf file from axf +compiler_generate_elf_output(${PROJECT_NAME}) + message("- MCUBOOT_REPO: '${MCUBOOT_REPO}'.") message("- MCUBOOT_IMAGE_NUMBER: '${MCUBOOT_IMAGE_NUMBER}'.") message("- MCUBOOT_UPGRADE_STRATEGY: '${MCUBOOT_UPGRADE_STRATEGY}'.") @@ -237,10 +243,14 @@ endif() #Collect executables to common location: build/install/outputs/ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.axf ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.bin + ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.hex + ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.elf DESTINATION outputs/${TARGET_PLATFORM}/) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.axf ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.bin + ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.hex + ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.elf DESTINATION outputs/fvp/) #Finally let cmake system apply changes after the whole project is defined. |