[finsh] support to check static thread size
增加检查finsh线程实际使用是否超过当前设定的线程大小
This commit is contained in:
parent
db5bdb1ffa
commit
58a159a0d6
|
@ -1,4 +1,5 @@
|
||||||
from building import *
|
from building import *
|
||||||
|
from gcc import GetGCCLikePLATFORM
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Split('''
|
src = Split('''
|
||||||
|
@ -7,14 +8,19 @@ msh.c
|
||||||
msh_parse.c
|
msh_parse.c
|
||||||
''')
|
''')
|
||||||
|
|
||||||
|
CPPPATH = [cwd]
|
||||||
|
LOCAL_CFLAGS = ''
|
||||||
|
|
||||||
|
if rtconfig.PLATFORM in GetGCCLikePLATFORM():
|
||||||
|
LOCAL_CFLAGS += ' -Wstack-usage=' + str(GetConfigValue('FINSH_THREAD_STACK_SIZE')) # check finsh thread stack size
|
||||||
|
|
||||||
if GetDepend('MSH_USING_BUILT_IN_COMMANDS'):
|
if GetDepend('MSH_USING_BUILT_IN_COMMANDS'):
|
||||||
src += ['cmd.c']
|
src += ['cmd.c']
|
||||||
|
|
||||||
if GetDepend('DFS_USING_POSIX'):
|
if GetDepend('DFS_USING_POSIX'):
|
||||||
src += ['msh_file.c']
|
src += ['msh_file.c']
|
||||||
|
|
||||||
CPPPATH = [cwd]
|
group = DefineGroup('Finsh', src, depend = ['RT_USING_FINSH'], CPPPATH = CPPPATH,
|
||||||
|
LOCAL_CFLAGS = LOCAL_CFLAGS)
|
||||||
group = DefineGroup('Finsh', src, depend = ['RT_USING_FINSH'], CPPPATH = CPPPATH)
|
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
Loading…
Reference in New Issue