aboutsummaryrefslogtreecommitdiff
path: root/bl2
diff options
context:
space:
mode:
authorØyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>2020-04-02 15:34:50 +0200
committerAnton Komlev <Anton.Komlev@arm.com>2020-06-19 14:21:17 +0000
commit762415cf8eb5515a5bb4daa391ecb9c0e9a7db60 (patch)
treef732c86ab971a36d8e0dd7469da1673eac17fa54 /bl2
parente409401fdf0e769516cd784de6000a8eaa16b2b2 (diff)
downloadtrusted-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')
-rw-r--r--bl2/ext/mcuboot/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/bl2/ext/mcuboot/CMakeLists.txt b/bl2/ext/mcuboot/CMakeLists.txt
index faa101065..f073e6b60 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.