rtt-f030/bsp/stm32h743-nucleo/Libraries/CMSIS/SConscript

24 lines
754 B
Python
Raw Normal View History

# RT-Thread building script for component
Import('rtconfig')
from building import *
cwd = GetCurrentDir()
src = Split('''
Device/ST/STM32H7xx/Source/Templates/system_stm32h7xx.c
''')
CPPPATH = [cwd + '/Device/ST/STM32H7xx/Include', cwd + '/Include']
CPPDEFINES = [rtconfig.STM32_TYPE]
# add for startup script
if rtconfig.CROSS_TOOL == 'gcc':
src += ['Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h743xx.s']
elif rtconfig.CROSS_TOOL == 'keil':
src += ['Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h743xx.s']
elif rtconfig.CROSS_TOOL == 'iar':
src += ['Device/ST/STM32H7xx/Source/Templates/iar/startup_stm32h743xx.s']
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
Return('group')