cmake: mwdt bintools adopted to new toolchain abstraction

This commit converts the MWDT bintools implementation from the old
macro based approach and into the new toolchain property scheme.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
Torsten Rasmussen 2020-09-04 21:07:46 +02:00 committed by Maureen Helm
commit 571f48fc77
5 changed files with 186 additions and 335 deletions

View file

@ -1089,7 +1089,9 @@ if(CONFIG_OUTPUT_PRINT_MEMORY_USAGE)
# Or fix the output name, by the use of `get_property`
list(APPEND
post_build_commands
COMMAND ${memusage_build_command}
COMMAND $<TARGET_PROPERTY:bintools,memusage_command>
$<TARGET_PROPERTY:bintools,memusage_flag>
$<TARGET_PROPERTY:bintools,memusage_infile>${KERNEL_ELF_NAME}
)
# For now, the byproduct can only be supported upstream on byproducts name,