rt-thread/bsp/nuvoton/libraries/m460/Device/SConscript

26 lines
675 B
Python

import rtconfig
Import('RTT_ROOT')
from building import *
# get current directory
cwd = GetCurrentDir()
# The set of source files associated with this SConscript file.
src = Split("""
Nuvoton/m460/Source/system_m460.c
""")
# add for startup script
if rtconfig.PLATFORM in ['gcc']:
src = src + ['Nuvoton/m460/Source/GCC/startup_M460.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['Nuvoton/m460/Source/ARM/startup_m460.s']
elif rtconfig.PLATFORM in ['iccarm']:
src = src + ['Nuvoton/m460/Source/IAR/startup_M460.s']
path = [cwd + '/Nuvoton/m460/Include',]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
Return('group')