[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

@@ -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')