summaryrefslogtreecommitdiff
path: root/components/libc/SConscript
blob: 4ca00c5b8686ae13de5171c819f931448d7cf004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# for libc component
import os
Import('rtconfig')

from building import *

objs = []

if GetDepend('RT_USING_LIBC'):
    if rtconfig.PLATFORM == 'gcc':
        objs = objs + SConscript('newlib/SConscript')
    elif rtconfig.PLATFORM == 'armcc':
        objs = objs + SConscript('armlibc/SConscript')
    elif rtconfig.PLATFORM == 'iar':
        objs = objs + SConscript('dlib/SConscript')
else:
    if rtconfig.PLATFORM == 'gcc':
        objs = objs + SConscript('minilibc/SConscript')

Return('objs')