diff options
| author | Meco Man <[email protected]> | 2024-11-25 00:43:12 -0500 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2024-11-25 14:28:36 +0800 |
| commit | 9afe6a51826fb84de229de220dab2077aa5734b2 (patch) | |
| tree | 9d1b4a03e269c391d71dfc26f0bcc14375ffd8b1 /src/klibc/SConscript | |
| parent | f849afb5ca40f4843d86d6bd55253b2db57a7ad4 (diff) | |
[klibc] separate klibc Kconfig
Diffstat (limited to 'src/klibc/SConscript')
| -rw-r--r-- | src/klibc/SConscript | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/klibc/SConscript b/src/klibc/SConscript index 4a17403c20..eb629ef725 100644 --- a/src/klibc/SConscript +++ b/src/klibc/SConscript @@ -2,7 +2,16 @@ from building import * import os cwd = GetCurrentDir() -src = Glob('*.c') +src = ['kerrno.c', 'kstdio.c', 'kstring.c'] + +if not GetDepend(['RT_KLIBC_USING_LIBC_VSNPRINTF']): + if GetDepend(['RT_KLIBC_USING_VSNPRINTF_STANDARD']): + src += ['rt_vsnprintf_std.c'] + else: + src += ['rt_vsnprintf_tiny.c'] + +if not GetDepend(['RT_KLIBC_USING_LIBC_VSSCANF']): + src += ['rt_vsscanf.c'] group = DefineGroup('klibc', src, depend = ['']) |
