rp2: Correctly determine path to arm-none-eabi-size.

Figure out path to arm-none-eabi-size the same way it's done for the
other binaries, instead of assuming it to be in the user's $PATH.

Signed-off-by: Jacob Siverskog <jacob@teenage.engineering>
This commit is contained in:
Jacob Siverskog 2022-08-09 14:21:05 +02:00 committed by Damien George
parent 71f6eb5ac9
commit 0546a12238
1 changed files with 3 additions and 1 deletions

View File

@ -412,9 +412,11 @@ endif()
pico_add_extra_outputs(${MICROPY_TARGET}) pico_add_extra_outputs(${MICROPY_TARGET})
pico_find_compiler(PICO_COMPILER_SIZE ${PICO_GCC_TRIPLE}-size)
add_custom_command(TARGET ${MICROPY_TARGET} add_custom_command(TARGET ${MICROPY_TARGET}
POST_BUILD POST_BUILD
COMMAND arm-none-eabi-size --format=berkeley ${PROJECT_BINARY_DIR}/${MICROPY_TARGET}.elf COMMAND ${PICO_COMPILER_SIZE} --format=berkeley ${PROJECT_BINARY_DIR}/${MICROPY_TARGET}.elf
VERBATIM VERBATIM
) )