mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-19 05:51:24 +08:00
[libc]解决龙芯内置工具链没有sys/select.h的问题
This commit is contained in:
parent
aa8a493c3c
commit
42e61f7a63
15
components/libc/compilers/common/partial/SConscript
Normal file
15
components/libc/compilers/common/partial/SConscript
Normal file
@ -0,0 +1,15 @@
|
||||
# RT-Thread building script for bridge
|
||||
|
||||
import os
|
||||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
list = os.listdir(cwd)
|
||||
|
||||
for d in list:
|
||||
path = os.path.join(cwd, d)
|
||||
if os.path.isfile(os.path.join(path, 'SConscript')):
|
||||
objs = objs + SConscript(os.path.join(d, 'SConscript'))
|
||||
|
||||
Return('objs')
|
18
components/libc/compilers/common/partial/ls1/SConscript
Normal file
18
components/libc/compilers/common/partial/ls1/SConscript
Normal file
@ -0,0 +1,18 @@
|
||||
from shutil import copy
|
||||
from building import *
|
||||
|
||||
Import('rtconfig')
|
||||
|
||||
src = []
|
||||
cwd = GetCurrentDir()
|
||||
CPPPATH = [cwd]
|
||||
group = []
|
||||
|
||||
# There is no 'sys/select.h' in these bsp's gcc toolchain; thus, we need to copy this file from 'nogcc/sys/select.h'
|
||||
if GetDepend('SOC_LS1B') or GetDepend('SOC_LS1C300'):
|
||||
copy("../../nogcc/sys/select.h", "sys/select.h")
|
||||
if GetDepend('RT_USING_LIBC'):
|
||||
src += Glob('*.c')
|
||||
group = DefineGroup('libc', src, depend = [], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
Loading…
x
Reference in New Issue
Block a user