summaryrefslogtreecommitdiff
path: root/components/libc/posix/src/SConscript
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-11-07 21:03:16 -0500
committerMeco Man <[email protected]>2021-11-07 21:10:29 -0500
commit2639171885a86a5b169a63a95cd2fb2776b97641 (patch)
tree3b13532d2ac9e0f74b0793cefa85fc66d576dcd1 /components/libc/posix/src/SConscript
parent910961c09115fc87a5634929182d408b77bc6c3d (diff)
add RT_USING_POSIX_DELAY
Diffstat (limited to 'components/libc/posix/src/SConscript')
-rw-r--r--components/libc/posix/src/SConscript8
1 files changed, 6 insertions, 2 deletions
diff --git a/components/libc/posix/src/SConscript b/components/libc/posix/src/SConscript
index ab649ec6bc..4c6d3e3b7b 100644
--- a/components/libc/posix/src/SConscript
+++ b/components/libc/posix/src/SConscript
@@ -1,7 +1,8 @@
+# RT-Thread building script for component
+
from building import *
-Import('rtconfig')
-src = ['libc.c','delay.c','unistd.c']
+src = ['libc.c', 'unistd.c']
cwd = GetCurrentDir()
CPPPATH = [cwd]
@@ -11,6 +12,9 @@ if GetDepend('RT_USING_POSIX_POLL'):
if GetDepend('RT_USING_POSIX_SELECT'):
src += ['select.c']
+if GetDepend('RT_USING_POSIX_DELAY'):
+ src += ['delay.c']
+
group = DefineGroup('POSIX', src, depend = ['RT_USING_POSIX'], CPPPATH = CPPPATH)
Return('group')