chore: Use CMake way for linker options (#4396)

Co-authored-by: Richard Li <richard.li@ces.hk>
This commit is contained in:
Raphael Coeffic
2023-12-14 09:12:31 +10:00
committed by GitHub
co-authored by Richard Li
parent f10e5e879f
commit 42e245b1da
8 changed files with 76 additions and 43 deletions
@@ -3,6 +3,12 @@ set(MCU cortex-m3)
set(FPU_FLAGS "")
if(NOT NATIVE_BUILD)
# Add MCU specific flags
add_link_options(
-mcpu=cortex-m3 -mfloat-abi=soft
)
# STM32 HAL/LL library
set(STM32CUBE_DIR ${THIRDPARTY_DIR}/STM32F2xx_HAL_Driver)
include_directories(${STM32CUBE_DIR}/Inc)