summaryrefslogtreecommitdiff
path: root/components/libc/compilers/gcc/partial/mips/SConscript
blob: 7651233d461ca15f48ccaf4010e45bc6b8fe345a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from shutil import copy
from building import *

Import('rtconfig')

src   = []
cwd   = GetCurrentDir()
CPPPATH = [cwd]
group = []

if rtconfig.PLATFORM == 'gcc' and ('mips' in rtconfig.PREFIX): # identify mips gcc tool chain
    try:
        # There is no 'sys/select.h' in tthe mips gcc toolchain; it will be copied from 'nogcc/sys/select.h'
        copy("../../../common/nogcc/sys/select.h", "./sys/select.h")
    except:
        pass

    group = DefineGroup('libc', src, depend = [], CPPPATH = CPPPATH)

Return('group')