提交 6ef13c82 编写于 作者: S SummerGift

[bsp][stm32] modify board/SConscript

上级 6df6a751
......@@ -2,6 +2,8 @@ import os
import rtconfig
from building import *
Import('SDK_LIB')
cwd = GetCurrentDir()
# add general drivers
......@@ -11,10 +13,7 @@ src += Glob('CubeMX_Config/Src/stm32f1xx_hal_msp.c')
path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
if os.path.exists(cwd + '/../libraries'):
startup_path_prefix = cwd + '/../libraries'
else:
startup_path_prefix = cwd + '/../../libraries'
startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc':
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xb.s']
......
......@@ -2,6 +2,8 @@ import os
import rtconfig
from building import *
Import('SDK_LIB')
cwd = GetCurrentDir()
# add general drivers
......@@ -11,10 +13,7 @@ src += Glob('CubeMX_Config/Src/stm32f4xx_hal_msp.c')
path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
if os.path.exists(cwd + '/../libraries'):
startup_path_prefix = cwd + '/../libraries'
else:
startup_path_prefix = cwd + '/../../libraries'
startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc':
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f407xx.s']
......
......@@ -2,6 +2,8 @@ import os
import rtconfig
from building import *
Import('SDK_LIB')
cwd = GetCurrentDir()
# add general drivers
......@@ -11,10 +13,7 @@ src += Glob('CubeMX_Config/Src/stm32l4xx_hal_msp.c')
path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
if os.path.exists(cwd + '/../libraries'):
startup_path_prefix = cwd + '/../libraries'
else:
startup_path_prefix = cwd + '/../../libraries'
startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc':
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l475xx.s']
......
......@@ -2,6 +2,8 @@ import os
import rtconfig
from building import *
Import('SDK_LIB')
cwd = GetCurrentDir()
# add general drivers
......@@ -15,10 +17,7 @@ path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
path += [cwd + '/ports']
if os.path.exists(cwd + '/../libraries'):
startup_path_prefix = cwd + '/../libraries'
else:
startup_path_prefix = cwd + '/../../libraries'
startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc':
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xb.s']
......
......@@ -2,6 +2,8 @@ import os
import rtconfig
from building import *
Import('SDK_LIB')
cwd = GetCurrentDir()
# add general drivers
......@@ -18,10 +20,7 @@ path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
path += [cwd + '/ports']
if os.path.exists(cwd + '/../libraries'):
startup_path_prefix = cwd + '/../libraries'
else:
startup_path_prefix = cwd + '/../../libraries'
startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc':
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xe.s']
......
......@@ -2,6 +2,8 @@ import os
import rtconfig
from building import *
Import('SDK_LIB')
cwd = GetCurrentDir()
# add general drivers
......@@ -18,10 +20,7 @@ path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
path += [cwd + '/ports']
if os.path.exists(cwd + '/../libraries'):
startup_path_prefix = cwd + '/../libraries'
else:
startup_path_prefix = cwd + '/../../libraries'
startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc':
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f407xx.s']
......
......@@ -2,6 +2,8 @@ import os
import rtconfig
from building import *
Import('SDK_LIB')
cwd = GetCurrentDir()
# add general drivers
......@@ -18,10 +20,7 @@ path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
path += [cwd + '/ports']
if os.path.exists(cwd + '/../libraries'):
startup_path_prefix = cwd + '/../libraries'
else:
startup_path_prefix = cwd + '/../../libraries'
startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc':
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f429xx.s']
......
......@@ -2,6 +2,8 @@ import os
import rtconfig
from building import *
Import('SDK_LIB')
cwd = GetCurrentDir()
# add general drivers
......@@ -18,10 +20,7 @@ path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
path += [cwd + '/ports']
if os.path.exists(cwd + '/../libraries'):
startup_path_prefix = cwd + '/../libraries'
else:
startup_path_prefix = cwd + '/../../libraries'
startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc':
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f429xx.s']
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册