From c51352d7cbbb4228c586e68612860a14bd80d5b6 Mon Sep 17 00:00:00 2001 From: Willian Chan Date: Wed, 11 Sep 2019 18:16:31 +0800 Subject: [PATCH] [bsp][stm32f7]Fix "scons --dist" error in stm32f7's bsp Signed-off-by: Willian Chan --- bsp/stm32/libraries/templates/stm32f7xx/SConstruct | 3 +++ bsp/stm32/stm32f767-st-nucleo/SConstruct | 3 +++ bsp/stm32/stm32f769-st-disco/SConstruct | 3 +++ 3 files changed, 9 insertions(+) diff --git a/bsp/stm32/libraries/templates/stm32f7xx/SConstruct b/bsp/stm32/libraries/templates/stm32f7xx/SConstruct index 012e6b41bf..782c1e6311 100644 --- a/bsp/stm32/libraries/templates/stm32f7xx/SConstruct +++ b/bsp/stm32/libraries/templates/stm32f7xx/SConstruct @@ -36,6 +36,9 @@ Export('rtconfig') # prepare building environment objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False) +stm32_library = 'STM32F7xx_HAL' +rtconfig.BSP_LIBRARY_TYPE = stm32_library + SDK_ROOT = os.path.abspath('./') # include drivers diff --git a/bsp/stm32/stm32f767-st-nucleo/SConstruct b/bsp/stm32/stm32f767-st-nucleo/SConstruct index 012e6b41bf..782c1e6311 100644 --- a/bsp/stm32/stm32f767-st-nucleo/SConstruct +++ b/bsp/stm32/stm32f767-st-nucleo/SConstruct @@ -36,6 +36,9 @@ Export('rtconfig') # prepare building environment objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False) +stm32_library = 'STM32F7xx_HAL' +rtconfig.BSP_LIBRARY_TYPE = stm32_library + SDK_ROOT = os.path.abspath('./') # include drivers diff --git a/bsp/stm32/stm32f769-st-disco/SConstruct b/bsp/stm32/stm32f769-st-disco/SConstruct index 012e6b41bf..782c1e6311 100644 --- a/bsp/stm32/stm32f769-st-disco/SConstruct +++ b/bsp/stm32/stm32f769-st-disco/SConstruct @@ -36,6 +36,9 @@ Export('rtconfig') # prepare building environment objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False) +stm32_library = 'STM32F7xx_HAL' +rtconfig.BSP_LIBRARY_TYPE = stm32_library + SDK_ROOT = os.path.abspath('./') # include drivers