[libc]rename group name
This commit is contained in:
parent
ed09f38012
commit
c8dcf7cc68
|
@ -2,7 +2,7 @@ from building import *
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = []
|
src = []
|
||||||
depend = []
|
depend = ['']
|
||||||
|
|
||||||
CPPPATH = [cwd + '/../include']
|
CPPPATH = [cwd + '/../include']
|
||||||
group = []
|
group = []
|
||||||
|
|
|
@ -7,6 +7,6 @@ group = []
|
||||||
CPPDEFINES = ['RT_USING_ARM_LIBC']
|
CPPDEFINES = ['RT_USING_ARM_LIBC']
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
|
||||||
group = DefineGroup('compiler-libc', src, depend = [], CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Compiler', src, depend = [''], CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -155,7 +155,7 @@ int _sys_read(FILEHANDLE fh, unsigned char *buf, unsigned len, int mode)
|
||||||
#ifdef RT_USING_POSIX_DEVIO
|
#ifdef RT_USING_POSIX_DEVIO
|
||||||
if (libc_stdio_get_console() < 0)
|
if (libc_stdio_get_console() < 0)
|
||||||
{
|
{
|
||||||
LOG_W("Do not invoke standard output before initializing compiler-libc");
|
LOG_W("Do not invoke standard output before initializing Compiler");
|
||||||
return 0; /* error, but keep going */
|
return 0; /* error, but keep going */
|
||||||
}
|
}
|
||||||
size = read(STDIN_FILENO, buf, len);
|
size = read(STDIN_FILENO, buf, len);
|
||||||
|
@ -354,7 +354,7 @@ int fgetc(FILE *f)
|
||||||
|
|
||||||
if (libc_stdio_get_console() < 0)
|
if (libc_stdio_get_console() < 0)
|
||||||
{
|
{
|
||||||
LOG_W("Do not invoke standard output before initializing compiler-libc");
|
LOG_W("Do not invoke standard output before initializing Compiler");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ if rtconfig.CROSS_TOOL == 'keil':
|
||||||
|
|
||||||
src += Glob('*.c')
|
src += Glob('*.c')
|
||||||
|
|
||||||
group = DefineGroup('compiler-libc', src, depend = [], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Compiler', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
list = os.listdir(cwd)
|
list = os.listdir(cwd)
|
||||||
for item in list:
|
for item in list:
|
||||||
|
|
|
@ -10,5 +10,5 @@ group = []
|
||||||
src += Glob('*.c')
|
src += Glob('*.c')
|
||||||
|
|
||||||
if rtconfig.PLATFORM != 'gcc' or rtconfig.ARCH == 'sim':
|
if rtconfig.PLATFORM != 'gcc' or rtconfig.ARCH == 'sim':
|
||||||
group = DefineGroup('compiler-libc', src, depend = [], CPPPATH = CPPPATH)
|
group = DefineGroup('Compiler', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -15,6 +15,6 @@ if rtconfig.PLATFORM == 'iar':
|
||||||
if LooseVersion(IARVersion()) < LooseVersion("8.20.1"):
|
if LooseVersion(IARVersion()) < LooseVersion("8.20.1"):
|
||||||
CPPDEFINES = CPPDEFINES + ['_DLIB_THREAD_SUPPORT']
|
CPPDEFINES = CPPDEFINES + ['_DLIB_THREAD_SUPPORT']
|
||||||
|
|
||||||
group = DefineGroup('compiler-libc', src, depend = [], CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Compiler', src, depend = [''], CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -42,7 +42,7 @@ size_t __read(int handle, unsigned char *buf, size_t len)
|
||||||
#ifdef RT_USING_POSIX_DEVIO
|
#ifdef RT_USING_POSIX_DEVIO
|
||||||
if (libc_stdio_get_console() < 0)
|
if (libc_stdio_get_console() < 0)
|
||||||
{
|
{
|
||||||
LOG_W("Do not invoke standard input before initializing compiler-libc");
|
LOG_W("Do not invoke standard input before initializing Compiler");
|
||||||
return 0; /* error, but keep going */
|
return 0; /* error, but keep going */
|
||||||
}
|
}
|
||||||
return read(STDIN_FILENO, buf, len); /* return the length of the data read */
|
return read(STDIN_FILENO, buf, len); /* return the length of the data read */
|
||||||
|
|
|
@ -19,7 +19,7 @@ if rtconfig.PLATFORM == 'gcc':
|
||||||
# identify this is Newlib, and only enable POSIX.1-1990
|
# identify this is Newlib, and only enable POSIX.1-1990
|
||||||
CPPDEFINES = ['RT_USING_NEWLIB', '_POSIX_C_SOURCE=1']
|
CPPDEFINES = ['RT_USING_NEWLIB', '_POSIX_C_SOURCE=1']
|
||||||
|
|
||||||
group = DefineGroup('compiler-libc', src, depend = [], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES, LIBS = LIBS)
|
group = DefineGroup('Compiler', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES, LIBS = LIBS)
|
||||||
|
|
||||||
|
|
||||||
list = os.listdir(cwd)
|
list = os.listdir(cwd)
|
||||||
|
|
|
@ -15,6 +15,6 @@ if rtconfig.PLATFORM == 'gcc' and (CheckHeader(rtconfig, 'sys/select.h') == Fals
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
group = DefineGroup('libc', src, depend = [], CPPPATH = CPPPATH)
|
group = DefineGroup('Compiler', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -228,7 +228,7 @@ _ssize_t _read_r(struct _reent *ptr, int fd, void *buf, size_t nbytes)
|
||||||
#ifdef RT_USING_POSIX_DEVIO
|
#ifdef RT_USING_POSIX_DEVIO
|
||||||
if (libc_stdio_get_console() < 0)
|
if (libc_stdio_get_console() < 0)
|
||||||
{
|
{
|
||||||
LOG_W("Do not invoke standard input before initializing compiler-libc");
|
LOG_W("Do not invoke standard input before initializing Compiler");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -19,7 +19,7 @@ if GetDepend('RT_USING_POSIX_SELECT'):
|
||||||
flag = True
|
flag = True
|
||||||
|
|
||||||
if flag == True:
|
if flag == True:
|
||||||
group = DefineGroup('POSIX', src, depend = [], CPPPATH = CPPPATH)
|
group = DefineGroup('POSIX', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
list = os.listdir(cwd)
|
list = os.listdir(cwd)
|
||||||
for d in list:
|
for d in list:
|
||||||
|
|
|
@ -9,6 +9,6 @@ CPPPATH = [cwd]
|
||||||
if GetDepend('RT_USING_POSIX_POLL'):
|
if GetDepend('RT_USING_POSIX_POLL'):
|
||||||
src += ['poll.c']
|
src += ['poll.c']
|
||||||
|
|
||||||
group = DefineGroup('POSIX', src, depend = [], CPPPATH = CPPPATH)
|
group = DefineGroup('POSIX', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -15,6 +15,6 @@ if GetDepend('RT_USING_POSIX_MESSAGE_QUEUE'):
|
||||||
if GetDepend('RT_USING_POSIX_MESSAGE_SEMAPHORE'):
|
if GetDepend('RT_USING_POSIX_MESSAGE_SEMAPHORE'):
|
||||||
src += ['semaphore.c']
|
src += ['semaphore.c']
|
||||||
|
|
||||||
group = DefineGroup('POSIX', src, depend = [], CPPPATH = inc)
|
group = DefineGroup('POSIX', src, depend = [''], CPPPATH = inc)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -11,6 +11,6 @@ flag = False
|
||||||
src += ['unistd.c'] #TODO
|
src += ['unistd.c'] #TODO
|
||||||
|
|
||||||
if flag == True:
|
if flag == True:
|
||||||
group = DefineGroup('POSIX', src, depend = [], CPPPATH = CPPPATH)
|
group = DefineGroup('POSIX', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -43,6 +43,6 @@ if GetDepend(['UTEST_THREAD_TC']):
|
||||||
|
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('utestcases', src, depend = [], CPPPATH = CPPPATH)
|
group = DefineGroup('utestcases', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
|
@ -5,6 +5,6 @@ src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
|
|
||||||
group = DefineGroup('CPU', src, depend = [], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
Loading…
Reference in New Issue