add IAR support for G0 with cmake

This commit is contained in:
hathach
2023-06-02 13:27:18 +07:00
parent e7090c7514
commit fcf7791454
21 changed files with 222 additions and 171 deletions

View File

@@ -59,7 +59,7 @@ if (NOT TARGET ${BOARD_TARGET})
if (TOOLCHAIN STREQUAL "gcc")
target_link_options(${BOARD_TARGET} PUBLIC
"LINKER:--script=${LD_FILE_gcc}"
"LINKER:--script=${LD_FILE_GCC}"
-nostartfiles
# nanolib
--specs=nosys.specs
@@ -68,7 +68,7 @@ if (NOT TARGET ${BOARD_TARGET})
else ()
# TODO support IAR
target_link_options(${BOARD_TARGET} PUBLIC
"LINKER:--config=${LD_FILE_iar}"
"LINKER:--config=${LD_FILE_IAR}"
)
endif ()
endif () # BOARD_TARGET