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.
|
|
|
|
if rtconfig.CC == 'armcc':
|
|
|
|
src_local = Glob(path + '/*.c') + Glob(path + '/*_rvds.s') + Glob(comm + '/*.c')
|
|
|
|
|
|
|
|
if rtconfig.CC == 'gcc':
|
|
|
|
src_local = Glob(path + '/*.c') + Glob(path + '/*_gcc.s') + Glob(comm + '/*.c')
|
|
|
|
|
2009-10-20 17:18:45 +08:00
|
|
|
if rtconfig.CC == 'iar':
|
|
|
|
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')
|