Skip to content

Commit 42e61f7

Browse files
committed
[libc]解决龙芯内置工具链没有sys/select.h的问题
1 parent aa8a493 commit 42e61f7

File tree

10 files changed

+33
-0
lines changed

10 files changed

+33
-0
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# RT-Thread building script for bridge
2+
3+
import os
4+
from building import *
5+
6+
cwd = GetCurrentDir()
7+
objs = []
8+
list = os.listdir(cwd)
9+
10+
for d in list:
11+
path = os.path.join(cwd, d)
12+
if os.path.isfile(os.path.join(path, 'SConscript')):
13+
objs = objs + SConscript(os.path.join(d, 'SConscript'))
14+
15+
Return('objs')
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from shutil import copy
2+
from building import *
3+
4+
Import('rtconfig')
5+
6+
src = []
7+
cwd = GetCurrentDir()
8+
CPPPATH = [cwd]
9+
group = []
10+
11+
# There is no 'sys/select.h' in these bsp's gcc toolchain; thus, we need to copy this file from 'nogcc/sys/select.h'
12+
if GetDepend('SOC_LS1B') or GetDepend('SOC_LS1C300'):
13+
copy("../../nogcc/sys/select.h", "sys/select.h")
14+
if GetDepend('RT_USING_LIBC'):
15+
src += Glob('*.c')
16+
group = DefineGroup('libc', src, depend = [], CPPPATH = CPPPATH)
17+
18+
Return('group')

0 commit comments

Comments
 (0)