[bsp][stm32] modify board/SConscript

This commit is contained in:
SummerGift 2018-12-13 15:09:35 +08:00
parent 6df6a7519a
commit 6ef13c82aa
8 changed files with 24 additions and 32 deletions

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']