2018-12-05 11:44:53 +08:00
|
|
|
# RT-Thread building script for bridge
|
|
|
|
|
|
|
|
import os
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
Import('rtconfig')
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
objs = []
|
|
|
|
list = os.listdir(cwd)
|
|
|
|
CPPDEFINES = []
|
|
|
|
|
|
|
|
objs = objs + SConscript(os.path.join('drivers', 'SConscript'))
|
|
|
|
objs = objs + SConscript(os.path.join('utilities', 'SConscript'))
|
|
|
|
|
2022-05-31 06:04:05 +08:00
|
|
|
if rtconfig.PLATFORM in ['gcc']:
|
2018-12-05 11:44:53 +08:00
|
|
|
objs = objs + SConscript(os.path.join('gcc', 'SConscript'))
|
|
|
|
CPPDEFINES += ['__USE_CMSIS']
|
2022-04-20 09:56:04 +08:00
|
|
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
2018-12-05 11:44:53 +08:00
|
|
|
objs = objs + SConscript(os.path.join('arm', 'SConscript'))
|
2022-05-31 06:11:15 +08:00
|
|
|
elif rtconfig.PLATFORM in ['iccarm']:
|
2018-12-05 11:44:53 +08:00
|
|
|
objs = objs + SConscript(os.path.join('iar', 'SConscript'))
|
|
|
|
|
|
|
|
src = Split("""
|
|
|
|
system_LPC54114_cm4.c
|
|
|
|
""")
|
|
|
|
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
CPPDEFINES += ['CORE_M4', 'CPU_LPC54114', 'CPU_LPC54114J256BD64_cm4=1']
|
|
|
|
|
|
|
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
|
|
|
|
|
|
|
objs = objs + group
|
|
|
|
|
|
|
|
Return('objs')
|