[libc] support external third pary libc software package (#7425)

This commit is contained in:
Man, Jianting (Meco)
2023-04-30 00:19:57 -04:00
committed by GitHub
parent 74719aafc8
commit d580042145
5 changed files with 13 additions and 31 deletions

View File

@@ -1,5 +1,8 @@
menu "C/C++ and POSIX layer"
config RT_USING_EXTERNAL_LIBC
bool
config RT_LIBC_DEFAULT_TIMEZONE
int "Set the default time zone (UTC+)"
range -12 12

View File

@@ -5,10 +5,10 @@ Import('rtconfig')
group = []
libc_name, libc_version = GetGCCLibcNameVersion(rtconfig)
musllibc_version = GetMuslVersion(rtconfig)
if libc_name == 'musl':
print('Musl version: ' + libc_version)
if musllibc_version:
print('Musl version: ' + musllibc_version)
cwd = GetCurrentDir()
src = Glob('*.c')

View File

@@ -5,10 +5,10 @@ Import('rtconfig')
group = []
libc_name, libc_version = GetGCCLibcNameVersion(rtconfig)
newlib_version = GetNewLibVersion(rtconfig)
if libc_name == 'newlib':
print('Newlib version: ' + libc_version)
if newlib_version and not GetDepend('RT_USING_EXTERNAL_LIBC'):
print('Newlib version: ' + newlib_version)
cwd = GetCurrentDir()
src = Glob('*.c')