summaryrefslogtreecommitdiff
path: root/bsp/stm32f411-nucleo/Libraries/CMSIS/SConscript
blob: c54d81671646a50efd03fda29287819956019398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# RT-Thread building script for component

Import('rtconfig')
from building import *

cwd = GetCurrentDir()
src = Split('''
Device/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c
''')
CPPPATH = [cwd + '/Device/ST/STM32F4xx/Include', cwd + '/Include']
CPPDEFINES = [rtconfig.PART_TYPE] #stm32f411xe

# add for startup script 
if rtconfig.CROSS_TOOL == 'gcc':
     folder = 'gcc'
elif rtconfig.CROSS_TOOL == 'keil':
     folder = 'arm'
elif rtconfig.CROSS_TOOL == 'iar':
     folder = 'iar'
#Device/ST/STM32F4xx/Source/Templates/iar/startup_stm32f411xe.s     
src += ['Device/ST/STM32F4xx/Source/Templates/' + folder + '/startup_' + rtconfig.PART_TYPE+ '.s']

group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)

Return('group')