mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
NSH library: Disable put and get commends of TFTP client is not enabled; disable wget command if web client is not enabled
This commit is contained in:
parent
f0b4b9cc45
commit
71d2ae0fac
1 changed files with 16 additions and 0 deletions
16
nshlib/nsh.h
16
nshlib/nsh.h
|
|
@ -160,6 +160,22 @@
|
|||
# undef CONFIG_NSH_TELNET
|
||||
#endif
|
||||
|
||||
/* get and put require TFTP client support */
|
||||
|
||||
#ifndef CONFIG_NETUTILS_TFTPC
|
||||
# undef CONFIG_NSH_DISABLE_PUT
|
||||
# undef CONFIG_NSH_DISABLE_GET
|
||||
# define CONFIG_NSH_DISABLE_PUT 1
|
||||
# define CONFIG_NSH_DISABLE_GET 1
|
||||
#endif
|
||||
|
||||
/* wget depends on web client support */
|
||||
|
||||
#ifndef CONFIG_NETUTILS_WEBCLIENT
|
||||
# undef CONFIG_NSH_DISABLE_WGET
|
||||
# define CONFIG_NSH_DISABLE_WGET 1
|
||||
#endif
|
||||
|
||||
/* One front end must be defined */
|
||||
|
||||
#if !defined(CONFIG_NSH_CONSOLE) && !defined(CONFIG_NSH_TELNET)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue