first
This commit is contained in:
26
rt-thread/components/finsh/SConscript
Normal file
26
rt-thread/components/finsh/SConscript
Normal file
@@ -0,0 +1,26 @@
|
||||
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')
|
Reference in New Issue
Block a user