fix(f2): F2 bootloader now requires HAL/LL as well.
This commit is contained in:
committed by
Raphael Coeffic
parent
84d8075794
commit
5219dd606d
@@ -2,6 +2,7 @@ set(CPU_FAMILY STM32)
|
|||||||
set(MCU cortex-m3)
|
set(MCU cortex-m3)
|
||||||
set(FPU_FLAGS "")
|
set(FPU_FLAGS "")
|
||||||
|
|
||||||
|
if(NOT NATIVE_BUILD)
|
||||||
# STM32 HAL/LL library
|
# STM32 HAL/LL library
|
||||||
set(STM32CUBE_DIR ${THIRDPARTY_DIR}/STM32F2xx_HAL_Driver)
|
set(STM32CUBE_DIR ${THIRDPARTY_DIR}/STM32F2xx_HAL_Driver)
|
||||||
include_directories(${STM32CUBE_DIR}/Inc)
|
include_directories(${STM32CUBE_DIR}/Inc)
|
||||||
@@ -25,6 +26,8 @@ target_include_directories(stm32cube_ll PRIVATE
|
|||||||
${THIRDPARTY_DIR}/CMSIS/Include)
|
${THIRDPARTY_DIR}/CMSIS/Include)
|
||||||
|
|
||||||
set(FIRMWARE_SRC ${FIRMWARE_SRC} $<TARGET_OBJECTS:stm32cube_ll>)
|
set(FIRMWARE_SRC ${FIRMWARE_SRC} $<TARGET_OBJECTS:stm32cube_ll>)
|
||||||
|
set(BOOTLOADER_SRC ${BOOTLOADER_SRC} $<TARGET_OBJECTS:stm32cube_ll>)
|
||||||
|
endif()
|
||||||
|
|
||||||
# StdPeriph library
|
# StdPeriph library
|
||||||
set(STM32LIB_DIR ${THIRDPARTY_DIR}/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries)
|
set(STM32LIB_DIR ${THIRDPARTY_DIR}/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries)
|
||||||
|
|||||||
Reference in New Issue
Block a user