diff options
| author | Meco Man <[email protected]> | 2021-09-14 22:21:13 -0400 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-09-14 22:46:06 -0400 |
| commit | 42e61f7a631da09d9574448b9e4cf7183de00211 (patch) | |
| tree | 74c23dac663b19e9b239756f1bc733b20b40dfe9 /components/libc/compilers | |
| parent | aa8a493c3c0fbc269a8e66286e3c7b4c28a1b2d5 (diff) | |
[libc]解决龙芯内置工具链没有sys/select.h的问题
Diffstat (limited to 'components/libc/compilers')
| -rw-r--r-- | components/libc/compilers/common/nogcc/SConscript (renamed from components/libc/compilers/common/none-gcc/SConscript) | 0 | ||||
| -rw-r--r-- | components/libc/compilers/common/nogcc/readme.md (renamed from components/libc/compilers/common/none-gcc/readme.md) | 0 | ||||
| -rw-r--r-- | components/libc/compilers/common/nogcc/sys/errno.h (renamed from components/libc/compilers/common/none-gcc/sys/errno.h) | 0 | ||||
| -rw-r--r-- | components/libc/compilers/common/nogcc/sys/select.h (renamed from components/libc/compilers/common/none-gcc/sys/select.h) | 0 | ||||
| -rw-r--r-- | components/libc/compilers/common/nogcc/sys/stat.h (renamed from components/libc/compilers/common/none-gcc/sys/stat.h) | 0 | ||||
| -rw-r--r-- | components/libc/compilers/common/nogcc/sys/types.h (renamed from components/libc/compilers/common/none-gcc/sys/types.h) | 0 | ||||
| -rw-r--r-- | components/libc/compilers/common/nogcc/sys/unistd.h (renamed from components/libc/compilers/common/none-gcc/sys/unistd.h) | 0 | ||||
| -rw-r--r-- | components/libc/compilers/common/nogcc/unistd.h (renamed from components/libc/compilers/common/none-gcc/unistd.h) | 0 | ||||
| -rw-r--r-- | components/libc/compilers/common/partial/SConscript | 15 | ||||
| -rw-r--r-- | components/libc/compilers/common/partial/ls1/SConscript | 18 |
10 files changed, 33 insertions, 0 deletions
diff --git a/components/libc/compilers/common/none-gcc/SConscript b/components/libc/compilers/common/nogcc/SConscript index c766c8f82d..c766c8f82d 100644 --- a/components/libc/compilers/common/none-gcc/SConscript +++ b/components/libc/compilers/common/nogcc/SConscript diff --git a/components/libc/compilers/common/none-gcc/readme.md b/components/libc/compilers/common/nogcc/readme.md index b10940d003..b10940d003 100644 --- a/components/libc/compilers/common/none-gcc/readme.md +++ b/components/libc/compilers/common/nogcc/readme.md diff --git a/components/libc/compilers/common/none-gcc/sys/errno.h b/components/libc/compilers/common/nogcc/sys/errno.h index ff1abca387..ff1abca387 100644 --- a/components/libc/compilers/common/none-gcc/sys/errno.h +++ b/components/libc/compilers/common/nogcc/sys/errno.h diff --git a/components/libc/compilers/common/none-gcc/sys/select.h b/components/libc/compilers/common/nogcc/sys/select.h index 575ad3a1b5..575ad3a1b5 100644 --- a/components/libc/compilers/common/none-gcc/sys/select.h +++ b/components/libc/compilers/common/nogcc/sys/select.h diff --git a/components/libc/compilers/common/none-gcc/sys/stat.h b/components/libc/compilers/common/nogcc/sys/stat.h index 107c15decf..107c15decf 100644 --- a/components/libc/compilers/common/none-gcc/sys/stat.h +++ b/components/libc/compilers/common/nogcc/sys/stat.h diff --git a/components/libc/compilers/common/none-gcc/sys/types.h b/components/libc/compilers/common/nogcc/sys/types.h index 2c4c12055f..2c4c12055f 100644 --- a/components/libc/compilers/common/none-gcc/sys/types.h +++ b/components/libc/compilers/common/nogcc/sys/types.h diff --git a/components/libc/compilers/common/none-gcc/sys/unistd.h b/components/libc/compilers/common/nogcc/sys/unistd.h index 6195c4c2aa..6195c4c2aa 100644 --- a/components/libc/compilers/common/none-gcc/sys/unistd.h +++ b/components/libc/compilers/common/nogcc/sys/unistd.h diff --git a/components/libc/compilers/common/none-gcc/unistd.h b/components/libc/compilers/common/nogcc/unistd.h index cd77a12e3b..cd77a12e3b 100644 --- a/components/libc/compilers/common/none-gcc/unistd.h +++ b/components/libc/compilers/common/nogcc/unistd.h diff --git a/components/libc/compilers/common/partial/SConscript b/components/libc/compilers/common/partial/SConscript new file mode 100644 index 0000000000..4c815c49b8 --- /dev/null +++ b/components/libc/compilers/common/partial/SConscript @@ -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') diff --git a/components/libc/compilers/common/partial/ls1/SConscript b/components/libc/compilers/common/partial/ls1/SConscript new file mode 100644 index 0000000000..4820098b98 --- /dev/null +++ b/components/libc/compilers/common/partial/ls1/SConscript @@ -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') |
