summaryrefslogtreecommitdiff
path: root/components/libc/compilers
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-09-15 11:39:01 -0400
committerMeco Man <[email protected]>2021-09-15 11:50:53 -0400
commit9f55c88ddde6d55524217a2ae609df83cd6c09d2 (patch)
treeb504aaed8683d71bd9c4f6fcbb64429b23423b63 /components/libc/compilers
parent5c058b624f01c0026b8683c3561124838a0a46cc (diff)
刷新龙芯工程
Diffstat (limited to 'components/libc/compilers')
-rw-r--r--components/libc/compilers/common/partial/ls/SConscript23
-rw-r--r--components/libc/compilers/common/partial/ls/readme.md (renamed from components/libc/compilers/common/partial/ls1/readme.md)1
-rw-r--r--components/libc/compilers/common/partial/ls/sys/select.h (renamed from components/libc/compilers/common/partial/ls1/sys/select.h)0
-rw-r--r--components/libc/compilers/common/partial/ls1/SConscript23
4 files changed, 24 insertions, 23 deletions
diff --git a/components/libc/compilers/common/partial/ls/SConscript b/components/libc/compilers/common/partial/ls/SConscript
new file mode 100644
index 0000000000..2665bee078
--- /dev/null
+++ b/components/libc/compilers/common/partial/ls/SConscript
@@ -0,0 +1,23 @@
+from shutil import copy
+from building import *
+
+Import('rtconfig')
+
+src = []
+cwd = GetCurrentDir()
+CPPPATH = [cwd]
+group = []
+
+if rtconfig.PLATFORM == 'gcc' and GetDepend('SOC_LS'):
+ try:
+ # There is no 'sys/select.h' in these bsp's gcc toolchain; thus, we need to copy this file from 'nogcc/sys/select.h'
+ copy("../../nogcc/sys/select.h", "./sys/select.h")
+ except:
+ pass
+
+ if GetDepend('RT_USING_LIBC'):
+ src += Glob('*.c')
+
+ group = DefineGroup('libc', src, depend = [], CPPPATH = CPPPATH)
+
+Return('group')
diff --git a/components/libc/compilers/common/partial/ls1/readme.md b/components/libc/compilers/common/partial/ls/readme.md
index 575d713442..fa68e1e84a 100644
--- a/components/libc/compilers/common/partial/ls1/readme.md
+++ b/components/libc/compilers/common/partial/ls/readme.md
@@ -2,6 +2,7 @@ This folder will be included when compiling the BSPs as follow:
- ls1bdev
- ls1cdev
+- ls2kdev
These files will be generated by scons automatically , and **DO NOT** change them:
diff --git a/components/libc/compilers/common/partial/ls1/sys/select.h b/components/libc/compilers/common/partial/ls/sys/select.h
index 575ad3a1b5..575ad3a1b5 100644
--- a/components/libc/compilers/common/partial/ls1/sys/select.h
+++ b/components/libc/compilers/common/partial/ls/sys/select.h
diff --git a/components/libc/compilers/common/partial/ls1/SConscript b/components/libc/compilers/common/partial/ls1/SConscript
deleted file mode 100644
index b988f7cf5f..0000000000
--- a/components/libc/compilers/common/partial/ls1/SConscript
+++ /dev/null
@@ -1,23 +0,0 @@
-from shutil import copy
-from building import *
-
-Import('rtconfig')
-
-src = []
-cwd = GetCurrentDir()
-CPPPATH = [cwd]
-group = []
-
-if rtconfig.PLATFORM == 'gcc':
- if GetDepend('SOC_LS1B') or GetDepend('SOC_LS1C300'):
- try:
- # There is no 'sys/select.h' in these bsp's gcc toolchain; thus, we need to copy this file from 'nogcc/sys/select.h'
- copy("../../nogcc/sys/select.h", "./sys/select.h")
- except:
- pass
- if GetDepend('RT_USING_LIBC'):
- src += Glob('*.c')
-
- group = DefineGroup('libc', src, depend = [], CPPPATH = CPPPATH)
-
-Return('group')