[finsh] 整理Kconfig 层次更分明
This commit is contained in:
parent
29828dc94f
commit
3d5582380d
@ -11,65 +11,69 @@ config RT_USING_MSH
|
|||||||
|
|
||||||
if RT_USING_MSH
|
if RT_USING_MSH
|
||||||
|
|
||||||
config FINSH_THREAD_NAME
|
config FINSH_THREAD_NAME
|
||||||
string "The msh thread name"
|
string "The msh thread name"
|
||||||
default "tshell"
|
default "tshell"
|
||||||
config FINSH_USING_HISTORY
|
|
||||||
bool "Enable command history feature"
|
|
||||||
default y
|
|
||||||
if FINSH_USING_HISTORY
|
|
||||||
config FINSH_HISTORY_LINES
|
|
||||||
int "The command history line number"
|
|
||||||
default 5
|
|
||||||
endif
|
|
||||||
|
|
||||||
config FINSH_USING_SYMTAB
|
config FINSH_THREAD_PRIORITY
|
||||||
bool "Using symbol table for commands"
|
int "The priority level value of thread"
|
||||||
default y
|
default 20
|
||||||
|
|
||||||
config FINSH_USING_DESCRIPTION
|
config FINSH_THREAD_STACK_SIZE
|
||||||
bool "Keeping description in symbol table"
|
int "The stack size for thread"
|
||||||
default y
|
default 4096
|
||||||
|
|
||||||
config FINSH_USING_BUILT_IN_COMMANDS
|
config FINSH_USING_HISTORY
|
||||||
bool "Enable built-in commands, such as list_thread"
|
bool "Enable command history feature"
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config FINSH_ECHO_DISABLE_DEFAULT
|
if FINSH_USING_HISTORY
|
||||||
bool "Disable the echo mode in default"
|
config FINSH_HISTORY_LINES
|
||||||
default n
|
int "The command history line number"
|
||||||
|
default 5
|
||||||
config FINSH_THREAD_PRIORITY
|
endif
|
||||||
int "The priority level value of thread"
|
|
||||||
default 20
|
|
||||||
|
|
||||||
config FINSH_THREAD_STACK_SIZE
|
config FINSH_USING_SYMTAB
|
||||||
int "The stack size for thread"
|
bool "Using symbol table for commands"
|
||||||
default 4096
|
default y
|
||||||
|
|
||||||
config FINSH_CMD_SIZE
|
config FINSH_CMD_SIZE
|
||||||
int "The command line size for shell"
|
int "The command line size for shell"
|
||||||
default 80
|
default 80
|
||||||
|
|
||||||
config FINSH_USING_AUTH
|
config FINSH_USING_BUILT_IN_COMMANDS
|
||||||
bool "shell support authentication"
|
bool "Enable built-in commands, such as list_thread"
|
||||||
default n
|
default y
|
||||||
|
|
||||||
if FINSH_USING_AUTH
|
config FINSH_USING_DESCRIPTION
|
||||||
config FINSH_DEFAULT_PASSWORD
|
bool "Keeping description in symbol table"
|
||||||
string "The default password for shell authentication"
|
default y
|
||||||
default "rtthread"
|
|
||||||
config FINSH_PASSWORD_MIN
|
|
||||||
int "The password min length"
|
|
||||||
default 6
|
|
||||||
config FINSH_PASSWORD_MAX
|
|
||||||
int "The password max length"
|
|
||||||
default RT_NAME_MAX
|
|
||||||
endif
|
|
||||||
|
|
||||||
config FINSH_ARG_MAX
|
config FINSH_ECHO_DISABLE_DEFAULT
|
||||||
int "The number of arguments for a shell command"
|
bool "Disable the echo mode in default"
|
||||||
default 10
|
default n
|
||||||
|
|
||||||
|
config FINSH_USING_AUTH
|
||||||
|
bool "shell support authentication"
|
||||||
|
default n
|
||||||
|
|
||||||
|
if FINSH_USING_AUTH
|
||||||
|
config FINSH_DEFAULT_PASSWORD
|
||||||
|
string "The default password for shell authentication"
|
||||||
|
default "rtthread"
|
||||||
|
|
||||||
|
config FINSH_PASSWORD_MIN
|
||||||
|
int "The password min length"
|
||||||
|
default 6
|
||||||
|
|
||||||
|
config FINSH_PASSWORD_MAX
|
||||||
|
int "The password max length"
|
||||||
|
default RT_NAME_MAX
|
||||||
|
endif
|
||||||
|
|
||||||
|
config FINSH_ARG_MAX
|
||||||
|
int "The number of arguments for a shell command"
|
||||||
|
default 10
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -14,6 +14,6 @@ if GetDepend('RT_USING_DFS'):
|
|||||||
|
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('msh', src, depend = ['RT_USING_FINSH'], CPPPATH = CPPPATH)
|
group = DefineGroup('Finsh', src, depend = ['RT_USING_FINSH'], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user