You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
615 B
26 lines
615 B
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')
|
|
|