Skip to content

Commit 936c5e5

Browse files
committed
feat[finsh]: Add cmd.c to the source file list of the finsh module
- Fix the issue where the list_thread function cannot be found when MSH_USING_BUILT_IN_COMMANDS is not enabled
1 parent e1c1a07 commit 936c5e5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/finsh/SConscript

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ src = Split('''
66
shell.c
77
msh.c
88
msh_parse.c
9+
cmd.c
910
''')
1011

1112
CPPPATH = [cwd]
@@ -14,9 +15,6 @@ LOCAL_CFLAGS = ''
1415
if rtconfig.PLATFORM in ['gcc']: # only for GCC
1516
LOCAL_CFLAGS += ' -Wstack-usage=' + str(GetConfigValue('FINSH_THREAD_STACK_SIZE')) # check finsh thread stack size
1617

17-
if GetDepend('MSH_USING_BUILT_IN_COMMANDS'):
18-
src += ['cmd.c']
19-
2018
if GetDepend('DFS_USING_POSIX'):
2119
src += ['msh_file.c']
2220

0 commit comments

Comments
 (0)