diff --git a/components/libc/compilers/common/none-gcc/SConscript b/components/libc/compilers/common/nogcc/SConscript similarity index 100% rename from components/libc/compilers/common/none-gcc/SConscript rename to 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 similarity index 100% rename from components/libc/compilers/common/none-gcc/readme.md rename to 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 similarity index 100% rename from components/libc/compilers/common/none-gcc/sys/errno.h rename to 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 similarity index 100% rename from components/libc/compilers/common/none-gcc/sys/select.h rename to 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 similarity index 100% rename from components/libc/compilers/common/none-gcc/sys/stat.h rename to 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 similarity index 100% rename from components/libc/compilers/common/none-gcc/sys/types.h rename to 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 similarity index 100% rename from components/libc/compilers/common/none-gcc/sys/unistd.h rename to 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 similarity index 100% rename from components/libc/compilers/common/none-gcc/unistd.h rename to 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 0000000000000000000000000000000000000000..4c815c49b835a3a5ea61f337dc17154dd316d7d1 --- /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 0000000000000000000000000000000000000000..4820098b98ae6f357dfd3b63c6a55736eba7d078 --- /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')