mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-16 15:01:21 +08:00
[bsp][simulator] update project
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from building import *
|
||||
|
||||
Import('rtconfig')
|
||||
|
||||
src = []
|
||||
|
@@ -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')
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user