[bsp][simulator] update project

This commit is contained in:
Meco Man
2021-10-28 14:23:07 -04:00
parent 51d5930aa3
commit 3c232125db
8 changed files with 30 additions and 115 deletions

View File

@@ -1,5 +1,4 @@
from building import *
Import('rtconfig')
src = []

View File

@@ -1,11 +1,13 @@
# RT-Thread building script for component
from building import *
Import('rtconfig')
src = Glob('*.c')
cwd = GetCurrentDir()
CPPPATH = [cwd]
if rtconfig.ARCH == 'sim': # the vs simulator does not support select and poll
SrcRemove(src, ['select.c', 'poll.c'])
group = DefineGroup('POSIX', src, depend = ['RT_USING_POSIX'], CPPPATH = CPPPATH)
Return('group')

View File

@@ -144,5 +144,5 @@ int libc_stdio_set_console(const char* device_name, int mode)
int libc_stdio_get_console(void) {
return std_fd;
}
#endif /* defined(RT_USING_LIBC) && (defined(__GNUC__) && !defined(__ARMCC_VERSION)) */
#endif /* defined(RT_USING_LIBC) && defined(RT_USING_NEWLIB) */
#endif /* RT_USING_POSIX */