diff options
| author | chenyong <[email protected]> | 2019-09-25 20:08:53 +0800 |
|---|---|---|
| committer | chenyong <[email protected]> | 2019-09-25 20:14:39 +0800 |
| commit | 2b50d3d32c3d5b566a8d1b7bafd4277041abb0b1 (patch) | |
| tree | 094f46c79353b355d0a353d0aa18f21c99ef1cb2 /components/finsh/SConscript | |
| parent | 676279421feba8832f926a2e96b5e7dc7fdb0652 (diff) | |
[components][finsh] Decouple RT_USING_DEVICE dependency for msh feature
Signed-off-by: chenyong <[email protected]>
Diffstat (limited to 'components/finsh/SConscript')
| -rw-r--r-- | components/finsh/SConscript | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/components/finsh/SConscript b/components/finsh/SConscript index e1e2b3bbdb..be04c56616 100644 --- a/components/finsh/SConscript +++ b/components/finsh/SConscript @@ -4,7 +4,6 @@ from building import * cwd = GetCurrentDir() src = Split(''' shell.c -symbol.c cmd.c ''') @@ -21,19 +20,20 @@ finsh_vm.c finsh_token.c ''') -msh_src = Split(''' -msh.c -msh_cmd.c -msh_file.c -''') +msh_src = Glob('msh.c') -CPPPATH = [cwd] +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 +CPPPATH = [cwd] + group = DefineGroup('finsh', src, depend = ['RT_USING_FINSH'], CPPPATH = CPPPATH) Return('group') |
