summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bsp/lpc408x/.config9
-rw-r--r--bsp/lpc408x/rtconfig.h3
-rw-r--r--components/libc/compilers/common/SConscript2
3 files changed, 4 insertions, 10 deletions
diff --git a/bsp/lpc408x/.config b/bsp/lpc408x/.config
index c57e7eb755..b07e256c26 100644
--- a/bsp/lpc408x/.config
+++ b/bsp/lpc408x/.config
@@ -176,14 +176,9 @@ CONFIG_RT_USING_PIN=y
#
# POSIX layer and C standard library
#
-CONFIG_RT_USING_LIBC=y
+# CONFIG_RT_USING_LIBC is not set
# CONFIG_RT_USING_PTHREADS is not set
-CONFIG_RT_USING_POSIX=y
-# CONFIG_RT_USING_POSIX_MMAP is not set
-# CONFIG_RT_USING_POSIX_TERMIOS is not set
-# CONFIG_RT_USING_POSIX_GETLINE is not set
-# CONFIG_RT_USING_POSIX_AIO is not set
-# CONFIG_RT_USING_MODULE is not set
+CONFIG_RT_LIBC_USING_TIME=y
#
# Network
diff --git a/bsp/lpc408x/rtconfig.h b/bsp/lpc408x/rtconfig.h
index d5e0c160be..25bba085a6 100644
--- a/bsp/lpc408x/rtconfig.h
+++ b/bsp/lpc408x/rtconfig.h
@@ -107,8 +107,7 @@
/* POSIX layer and C standard library */
-#define RT_USING_LIBC
-#define RT_USING_POSIX
+#define RT_LIBC_USING_TIME
/* Network */
diff --git a/components/libc/compilers/common/SConscript b/components/libc/compilers/common/SConscript
index a5f4a3fda6..18ff51d027 100644
--- a/components/libc/compilers/common/SConscript
+++ b/components/libc/compilers/common/SConscript
@@ -16,7 +16,7 @@ else:
if GetDepend('RT_USING_POSIX') == False:
SrcRemove(src, ['unistd.c'])
-if not GetDepend('RT_USING_MINILIBC') and GetDepend('RT_USING_LIBC'):
+if not GetDepend('RT_USING_MINILIBC') and (GetDepend('RT_USING_LIBC') or GetDepend('RT_LIBC_USING_TIME')):
group = DefineGroup('libc', src, depend = [''], CPPPATH = CPPPATH)
Return('group')