4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-20 16:53:30 +08:00
2024-03-16 10:21:38 -04:00

27 lines
615 B
Python

from building import *
from gcc import GetGCCLikePLATFORM
cwd = GetCurrentDir()
src = Split('''
shell.c
msh.c
msh_parse.c
''')
CPPPATH = [cwd]
LOCAL_CFLAGS = ''
if rtconfig.PLATFORM in ['gcc']: # only for GCC
LOCAL_CFLAGS += ' -Wstack-usage=' + str(GetConfigValue('FINSH_THREAD_STACK_SIZE')) # check finsh thread stack size
if GetDepend('MSH_USING_BUILT_IN_COMMANDS'):
src += ['cmd.c']
if GetDepend('DFS_USING_POSIX'):
src += ['msh_file.c']
group = DefineGroup('Finsh', src, depend = ['RT_USING_FINSH'], CPPPATH = CPPPATH,
LOCAL_CFLAGS = LOCAL_CFLAGS)
Return('group')