4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-07 11:34:33 +08:00

16 lines
448 B
Python
Raw Normal View History

Import('env')
Import('rtconfig')
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')
obj = env.Object(src_local)
Return('obj')