summaryrefslogtreecommitdiff
path: root/components/finsh/SConscript
diff options
context:
space:
mode:
authorguo <[email protected]>2021-09-28 10:36:54 +0800
committerGitHub <[email protected]>2021-09-28 10:36:54 +0800
commit55a302cd092758a44b589d65470a69d9e8ae4ced (patch)
treee60fc53994c426007e9eb4877e5bd123f124ef39 /components/finsh/SConscript
parent00727d6b6db92dc1cf98f028f26fd6168594b905 (diff)
parent00d42ef73cff61ecda7ff006b077a73e1a4ff669 (diff)
Merge branch 'master' into usbh_construct
Diffstat (limited to 'components/finsh/SConscript')
-rw-r--r--components/finsh/SConscript30
1 files changed, 5 insertions, 25 deletions
diff --git a/components/finsh/SConscript b/components/finsh/SConscript
index be04c56616..28fe02bac5 100644
--- a/components/finsh/SConscript
+++ b/components/finsh/SConscript
@@ -1,39 +1,19 @@
-Import('rtconfig')
from building import *
cwd = GetCurrentDir()
src = Split('''
shell.c
-cmd.c
+msh.c
''')
-fsh_src = Split('''
-finsh_compiler.c
-finsh_error.c
-finsh_heap.c
-finsh_init.c
-finsh_node.c
-finsh_ops.c
-finsh_parser.c
-finsh_var.c
-finsh_vm.c
-finsh_token.c
-''')
-
-msh_src = Glob('msh.c')
+if GetDepend('MSH_USING_BUILT_IN_COMMANDS'):
+ src += ['cmd.c']
if GetDepend('RT_USING_DFS'):
- msh_src += ['msh_file.c']
-
-if not GetDepend('FINSH_USING_SYMTAB'):
- src += ['symbol.c']
-if GetDepend('FINSH_USING_MSH'):
- src = src + msh_src
-if not GetDepend('FINSH_USING_MSH_ONLY'):
- src = src + fsh_src
+ src += ['msh_file.c']
CPPPATH = [cwd]
-group = DefineGroup('finsh', src, depend = ['RT_USING_FINSH'], CPPPATH = CPPPATH)
+group = DefineGroup('Finsh', src, depend = ['RT_USING_FINSH'], CPPPATH = CPPPATH)
Return('group')