cmake: Reformat

pull/207/head
Yuri D'Elia 2022-10-10 14:18:09 +02:00
parent d287ab2357
commit 03e1757b0f
1 changed files with 9 additions and 7 deletions

View File

@ -168,14 +168,16 @@ if(CMAKE_CROSSCOMPILING)
# produce ASM listing # produce ASM listing
add_custom_command( add_custom_command(
TARGET firmware POST_BUILD TARGET firmware
COMMAND POST_BUILD
${CMAKE_OBJDUMP} --prefix ${CMAKE_SOURCE_DIR} -CSd firmware > firmware.asm COMMAND ${CMAKE_OBJDUMP} --prefix ${CMAKE_SOURCE_DIR} -CSd firmware > firmware.asm
) )
# inform about the firmware's size in terminal # inform about the firmware's size in terminal
add_custom_command( add_custom_command(
TARGET firmware POST_BUILD COMMAND ${CMAKE_SIZE_UTIL} -C --mcu=atmega32u4 firmware TARGET firmware
POST_BUILD
COMMAND ${CMAKE_SIZE_UTIL} -C --mcu=atmega32u4 firmware
) )
report_size(firmware) report_size(firmware)
@ -184,12 +186,12 @@ if(CMAKE_CROSSCOMPILING)
# Put Prusa Magic at the beginning of the hex # Put Prusa Magic at the beginning of the hex
add_custom_command( add_custom_command(
TARGET firmware POST_BUILD TARGET firmware
POST_BUILD
COMMAND COMMAND
${CMAKE_COMMAND} -D WORK_DIR=${CMAKE_BINARY_DIR} -D ${CMAKE_COMMAND} -D WORK_DIR=${CMAKE_BINARY_DIR} -D
HEX_NAME="MMU2SR_${PROJECT_VERSION}${PROJECT_VERSION_SUFFIX_SHORT}.hex" -P HEX_NAME="MMU2SR_${PROJECT_VERSION}${PROJECT_VERSION_SUFFIX_SHORT}.hex" -P
${CMAKE_SOURCE_DIR}/cmake/HexConcat.cmake ${CMAKE_SOURCE_DIR}/cmake/HexConcat.cmake DEPENDS firmware.hex
DEPENDS firmware.hex
) )
endif() endif()