From 6b1c4efb94dcb82ab1334fe97aed2ac9e27f4714 Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Thu, 2 Feb 2023 16:13:29 +0000 Subject: [PATCH 1/2] stm32: remove readelf from post build commands Adds a lot of noise to build output for information that isn't useful most of the time. (`size` providing most of the useful info) Leaving the .hex output, which is also of questionable usefulness... --- 32blit-stm32/executable.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/32blit-stm32/executable.cmake b/32blit-stm32/executable.cmake index da8ff39bf..70b5196a3 100644 --- a/32blit-stm32/executable.cmake +++ b/32blit-stm32/executable.cmake @@ -10,7 +10,6 @@ function(blit_executable_common NAME) COMMAND ${CMAKE_OBJCOPY} -O ihex $ ${NAME}.hex COMMAND ${CMAKE_OBJCOPY} -O binary -S $ ${NAME}.bin COMMAND ${CMAKE_SIZE} $ - COMMAND ${CMAKE_READELF} -S $ ) endfunction() From 517ad83257173b81b5ac47b7076229c30efddaa8 Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Fri, 3 Feb 2023 12:46:55 +0000 Subject: [PATCH 2/2] stm32: no hexes --- 32blit-stm32/executable.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/32blit-stm32/executable.cmake b/32blit-stm32/executable.cmake index 70b5196a3..b7a3f61d3 100644 --- a/32blit-stm32/executable.cmake +++ b/32blit-stm32/executable.cmake @@ -7,7 +7,6 @@ function(blit_executable_common NAME) set_property(TARGET ${NAME} APPEND_STRING PROPERTY LINK_FLAGS " -Wl,-Map=${NAME}.map,--cref") add_custom_command(TARGET ${NAME} POST_BUILD COMMENT "Building ${NAME}.bin" - COMMAND ${CMAKE_OBJCOPY} -O ihex $ ${NAME}.hex COMMAND ${CMAKE_OBJCOPY} -O binary -S $ ${NAME}.bin COMMAND ${CMAKE_SIZE} $ )