2013-01-08 22:40:58 +08:00
|
|
|
# for libc component
|
|
|
|
import os
|
2014-10-28 11:45:43 +08:00
|
|
|
Import('rtconfig')
|
|
|
|
|
|
|
|
from building import *
|
2013-01-08 22:40:58 +08:00
|
|
|
|
|
|
|
objs = []
|
|
|
|
|
2014-10-28 11:45:43 +08:00
|
|
|
if GetDepend('RT_USING_LIBC'):
|
|
|
|
if rtconfig.PLATFORM == 'gcc':
|
|
|
|
objs = objs + SConscript('newlib/SConscript')
|
|
|
|
elif rtconfig.PLATFORM == 'armcc':
|
|
|
|
objs = objs + SConscript('armlibc/SConscript')
|
2015-01-31 21:59:58 +08:00
|
|
|
elif rtconfig.PLATFORM == 'iar':
|
|
|
|
objs = objs + SConscript('dlib/SConscript')
|
2014-10-28 11:45:43 +08:00
|
|
|
else:
|
2016-04-24 19:59:48 +08:00
|
|
|
if rtconfig.PLATFORM == 'gcc' and rtconfig.ARCH != 'sim':
|
2014-10-28 11:45:43 +08:00
|
|
|
objs = objs + SConscript('minilibc/SConscript')
|
2013-01-08 22:40:58 +08:00
|
|
|
|
2016-07-13 10:49:21 +08:00
|
|
|
if GetDepend('RT_USING_LIBC') and GetDepend('RT_USING_PTHREADS'):
|
|
|
|
objs = objs + SConscript('pthreads/SConscript')
|
|
|
|
|
|
|
|
if GetDepend('RT_USING_MODULE') and GetDepend('RT_USING_LIBDL'):
|
|
|
|
objs = objs + SConscript('libdl/SConscript')
|
2016-05-10 09:22:01 +08:00
|
|
|
|
2013-01-08 22:40:58 +08:00
|
|
|
Return('objs')
|