From d68ccd65524749e3768442cb309de6db3ccfd137 Mon Sep 17 00:00:00 2001 From: 3d-gussner <3d.gussner@gmail.com> Date: Fri, 29 Sep 2023 17:40:55 +0200 Subject: [PATCH] New naming for builds --- CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4efd932d..60149c28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -183,8 +183,10 @@ if(CMAKE_CROSSCOMPILING) COMMAND ${CMAKE_OBJCOPY} firmware -O binary --gap-fill 0xFF --pad-to 0x00007000 firmware.bin COMMAND ${CMAKE_COMMAND} -E cat firmware.bin bootloader.bin > fw_bootloader.bin COMMAND ${CMAKE_OBJCOPY} -I binary -O ihex fw_bootloader.bin - "MMU3_${PROJECT_VERSION}${PROJECT_VERSION_SUFFIX_SHORT}_bootloader.hex" - BYPRODUCTS bootloader.bin firmware.bin fw_bootloader.bin + "MMU2S_MMU3_BOOTLOADER_${PROJECT_VERSION}${PROJECT_VERSION_SUFFIX_SHORT}.hex" + COMMAND + ${CMAKE_COMMAND} -E copy "MMU2S_MMU3_BOOTLOADER_${PROJECT_VERSION}${PROJECT_VERSION_SUFFIX_SHORT}.hex" "MMU2S_MMU3_BOOTLOADER_${PROJECT_VERSION}.hex" + BYPRODUCTS bootloader.bin firmware.bin fw_bootloader.bin ) # produce ASM listing @@ -212,8 +214,10 @@ if(CMAKE_CROSSCOMPILING) POST_BUILD COMMAND ${CMAKE_COMMAND} -D WORK_DIR=${CMAKE_BINARY_DIR} -D - HEX_NAME="MMU3_${PROJECT_VERSION}${PROJECT_VERSION_SUFFIX_SHORT}.hex" -P + HEX_NAME="MMU2S_MMU3_FW${PROJECT_VERSION}${PROJECT_VERSION_SUFFIX_SHORT}.hex" -P ${CMAKE_SOURCE_DIR}/cmake/HexConcat.cmake DEPENDS firmware.hex + COMMAND + ${CMAKE_COMMAND} -E copy "MMU2S_MMU3_FW${PROJECT_VERSION}${PROJECT_VERSION_SUFFIX_SHORT}.hex" "MMU2S_MMU3_FW${PROJECT_VERSION}.hex" ) endif()