chore: Use CMake way for linker options (#4396)
Co-authored-by: Richard Li <richard.li@ces.hk>
This commit is contained in:
co-authored by
Richard Li
parent
f10e5e879f
commit
42e245b1da
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user