Merged in marten_svanfeldt/nuttx-apps-public/for_upstream/nsh_netinit (pull request #43)
Make NSH net-initialization be a configuration option
This commit is contained in:
commit
a9d57ca022
@ -942,6 +942,15 @@ config NSH_ARCHINIT
|
||||
menu "Networking Configuration"
|
||||
depends on NET
|
||||
|
||||
config NSH_NETINIT
|
||||
bool "Network initialization"
|
||||
default y
|
||||
depends on NET
|
||||
---help---
|
||||
This option enables/disables all network initialization in NSH.
|
||||
|
||||
if NSH_NETINIT
|
||||
|
||||
config NSH_NETINIT_THREAD
|
||||
bool "Network initialization thread"
|
||||
default n
|
||||
@ -1389,6 +1398,7 @@ config NSH_MACADDR
|
||||
MAC address must provided with this selection.
|
||||
|
||||
endif # NSH_NOMAC
|
||||
endif # NSH_NETINIT
|
||||
|
||||
config NSH_MAX_ROUNDTRIP
|
||||
int "Max Ping Round-Trip (DSEC)"
|
||||
|
@ -843,7 +843,7 @@ int nsh_romfsetc(void);
|
||||
# define nsh_romfsetc() (-ENOSYS)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NET
|
||||
#ifdef CONFIG_NSH_NETINIT
|
||||
int nsh_netinit(void);
|
||||
#else
|
||||
# define nsh_netinit() (-ENOSYS)
|
||||
|
@ -78,7 +78,7 @@
|
||||
|
||||
#include "nsh.h"
|
||||
|
||||
#ifdef CONFIG_NET
|
||||
#ifdef CONFIG_NSH_NETINIT
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@ -690,4 +690,4 @@ int nsh_netinit(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* CONFIG_NET */
|
||||
#endif /* CONFIG_NSH_NETINIT */
|
||||
|
Loading…
x
Reference in New Issue
Block a user