2009-10-14 17:49:02 +08:00
|
|
|
Import('env')
|
|
|
|
Import('rtconfig')
|
2009-10-22 07:50:25 +08:00
|
|
|
Import('RTT_ROOT')
|
2009-10-14 17:49:02 +08:00
|
|
|
|
|
|
|
comm = rtconfig.ARCH + '/common'
|
|
|
|
path = rtconfig.ARCH + '/' + rtconfig.CPU
|
|
|
|
|
|
|
|
# The set of source files associated with this SConscript file.
|
2009-10-22 17:44:08 +08:00
|
|
|
if rtconfig.PLATFORM == 'armcc':
|
2009-10-14 17:49:02 +08:00
|
|
|
src_local = Glob(path + '/*.c') + Glob(path + '/*_rvds.s') + Glob(comm + '/*.c')
|
|
|
|
|
2009-10-22 17:44:08 +08:00
|
|
|
if rtconfig.PLATFORM == 'gcc':
|
2009-10-14 17:49:02 +08:00
|
|
|
src_local = Glob(path + '/*.c') + Glob(path + '/*_gcc.s') + Glob(comm + '/*.c')
|
|
|
|
|
2009-10-22 17:44:08 +08:00
|
|
|
if rtconfig.PLATFORM == 'iar':
|
2009-10-20 17:18:45 +08:00
|
|
|
src_local = Glob(path + '/*.c') + Glob(path + '/*_iar.s') + Glob(comm + '/*.c')
|
|
|
|
|
2009-10-22 07:50:25 +08:00
|
|
|
env.Append(CPPPATH = [RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/' + rtconfig.CPU])
|
2009-10-14 17:49:02 +08:00
|
|
|
obj = env.Object(src_local)
|
2009-10-22 07:50:25 +08:00
|
|
|
|
2009-10-14 17:49:02 +08:00
|
|
|
Return('obj')
|