You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
674 B
26 lines
674 B
10 months ago
|
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')
|