Skip to content

Commit

Permalink
Merge pull request #790 from 32blit/patch-no-readelf
Browse files Browse the repository at this point in the history
stm32: remove readelf from post build commands
  • Loading branch information
Gadgetoid authored Feb 3, 2023
2 parents 9ba701c + 517ad83 commit 40ff953
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions 32blit-stm32/executable.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ 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 $<TARGET_FILE:${NAME}> ${NAME}.hex
COMMAND ${CMAKE_OBJCOPY} -O binary -S $<TARGET_FILE:${NAME}> ${NAME}.bin
COMMAND ${CMAKE_SIZE} $<TARGET_FILE:${NAME}>
COMMAND ${CMAKE_READELF} -S $<TARGET_FILE:${NAME}>
)
endfunction()

Expand Down

0 comments on commit 40ff953

Please sign in to comment.