From 2891c97c221e758884aae7dae89b9a843600f227 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 19 Jan 2015 10:32:46 -0600 Subject: NSH library: Disable put and get commends of TFTP client is not enabled; disable wget command if web client is not enabled --- apps/nshlib/nsh.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'apps/nshlib') diff --git a/apps/nshlib/nsh.h b/apps/nshlib/nsh.h index d726b5253..89c8763b2 100644 --- a/apps/nshlib/nsh.h +++ b/apps/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) -- cgit v1.2.3