telnetd/Kconfig: cosmetic change

With this change `# CONFIG_SYSTEM_TELNETD_PORT is not set` will not be present
in the generated `.config` file if telnetd is disabled.
This commit is contained in:
raiden00pl 2023-04-21 11:51:01 +02:00 committed by Alan Carvalho de Assis
parent dd20ae28cb
commit d521d2ea57

View File

@ -10,10 +10,11 @@ config SYSTEM_TELNETD
---help--- ---help---
Enable the Telnet daemon application Enable the Telnet daemon application
if SYSTEM_TELNETD
config SYSTEM_TELNETD_PROGNAME config SYSTEM_TELNETD_PROGNAME
string "Telnetd program name" string "Telnetd program name"
default "telnetd" default "telnetd"
depends on SYSTEM_TELNETD
---help--- ---help---
This is the name of the program that will be used when the NSH ELF This is the name of the program that will be used when the NSH ELF
program is installed. program is installed.
@ -21,12 +22,10 @@ config SYSTEM_TELNETD_PROGNAME
config SYSTEM_TELNETD_PRIORITY config SYSTEM_TELNETD_PRIORITY
int "Telnetd task priority" int "Telnetd task priority"
default 100 default 100
depends on SYSTEM_TELNETD
config SYSTEM_TELNETD_STACKSIZE config SYSTEM_TELNETD_STACKSIZE
int "Telnetd task stack size" int "Telnetd task stack size"
default DEFAULT_TASK_STACKSIZE default DEFAULT_TASK_STACKSIZE
depends on SYSTEM_TELNETD
config SYSTEM_TELNETD_PORT config SYSTEM_TELNETD_PORT
int "Telnetd port number" int "Telnetd port number"
@ -38,9 +37,9 @@ config SYSTEM_TELNETD_PORT
config SYSTEM_TELNETD_SESSION_PRIORITY config SYSTEM_TELNETD_SESSION_PRIORITY
int "Telnetd session task priority" int "Telnetd session task priority"
default 100 default 100
depends on SYSTEM_TELNETD
config SYSTEM_TELNETD_SESSION_STACKSIZE config SYSTEM_TELNETD_SESSION_STACKSIZE
int "Telnetd session task stack size" int "Telnetd session task stack size"
default 3072 default 3072
depends on SYSTEM_TELNETD
endif # SYSTEM_TELNETD