Fix formatting
parent
0e427ae37c
commit
44454fd8d9
|
|
@ -105,10 +105,9 @@ if(CMAKE_CROSSCOMPILING)
|
||||||
set(CMAKE_C_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
|
set(CMAKE_C_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
|
||||||
set(CMAKE_C_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
|
set(CMAKE_C_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
|
||||||
|
|
||||||
# mcu related settings
|
# mcu related settings: It would be nice to add "-mrelax" but due to some avr-gcc/linker bug it
|
||||||
# Tt would be nice to add "-mrelax" but due to some avr-gcc/linker bug it breaks functionality of the FW
|
# breaks functionality of the FW (LoadFilament stopped working and only return Finished) The bad
|
||||||
# (LoadFilament stopped working and only return Finished)
|
# news is that -mrelax was saving ~450B of CPU FLASH
|
||||||
# The bad news is that -mrelax was saving ~450B of CPU FLASH
|
|
||||||
set(MCU_FLAGS -mmcu=atmega32u4 -DF_CPU=16000000L)
|
set(MCU_FLAGS -mmcu=atmega32u4 -DF_CPU=16000000L)
|
||||||
add_compile_options(${MCU_FLAGS})
|
add_compile_options(${MCU_FLAGS})
|
||||||
add_link_options(${MCU_FLAGS})
|
add_link_options(${MCU_FLAGS})
|
||||||
|
|
@ -180,7 +179,7 @@ if(CMAKE_CROSSCOMPILING)
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET firmware
|
TARGET firmware
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND ${CMAKE_SIZE_UTIL} -C --mcu=atmega32u4 firmware
|
COMMAND avr-size ARGS -C --mcu=atmega32u4 firmware
|
||||||
)
|
)
|
||||||
report_size(firmware)
|
report_size(firmware)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue