diff options
| author | mysterywolf <[email protected]> | 2020-09-05 19:47:34 +0800 |
|---|---|---|
| committer | mysterywolf <[email protected]> | 2020-09-05 19:47:34 +0800 |
| commit | 443978eb784e68c33b469e04f4105e87fdf2fa55 (patch) | |
| tree | a655963128432694e7bf43dde4b04b0a9692bb21 /components/libc | |
| parent | cf00e7f0a1c5d76fd990f37e72f165391ff2d595 (diff) | |
增加RT_USING_POSIX_GETLINE用于单独控制是否启用getline函数,并修改Kconfig增加对应选项
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/Kconfig | 8 | ||||
| -rw-r--r-- | components/libc/getline/SConscript | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/components/libc/Kconfig b/components/libc/Kconfig index 26e156522b..65c8d44225 100644 --- a/components/libc/Kconfig +++ b/components/libc/Kconfig @@ -22,11 +22,15 @@ if RT_USING_LIBC && RT_USING_DFS if RT_USING_POSIX config RT_USING_POSIX_MMAP - bool "Enable mmap() api" + bool "Enable mmap() API" default n config RT_USING_POSIX_TERMIOS - bool "Enable termios feature" + bool "Enable termios APIs" + default n + + config RT_USING_POSIX_GETLINE + bool "Enable getline()/getdelim() APIs" default n config RT_USING_POSIX_AIO diff --git a/components/libc/getline/SConscript b/components/libc/getline/SConscript index 7bede9f31b..fa4c8618c1 100644 --- a/components/libc/getline/SConscript +++ b/components/libc/getline/SConscript @@ -7,7 +7,7 @@ src = Glob('*.c') + Glob('*.cpp') CPPPATH = [cwd] group = DefineGroup('libc', src, - depend = ['RT_USING_LIBC', 'RT_USING_POSIX'], + depend = ['RT_USING_LIBC', 'RT_USING_POSIX','RT_USING_POSIX_GETLINE'], CPPPATH = CPPPATH) Return('group') |
