From 936c5e560da6bea7bdd223264901e6ba53fc7d47 Mon Sep 17 00:00:00 2001 From: wdfk-prog <1425075683@qq.com> Date: Tue, 9 Sep 2025 13:52:31 +0800 Subject: [PATCH] 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 --- components/finsh/SConscript | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/finsh/SConscript b/components/finsh/SConscript index 3cac245fb01..06dd62faf13 100644 --- a/components/finsh/SConscript +++ b/components/finsh/SConscript @@ -6,6 +6,7 @@ src = Split(''' shell.c msh.c msh_parse.c +cmd.c ''') CPPPATH = [cwd] @@ -14,9 +15,6 @@ 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']