mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-03 20:27:58 +00:00
Unix domain: With these changes I can build a system with no link layer enabled, only Unix domain sockets
This commit is contained in:
parent
f6499a4813
commit
5060e08fcb
1 changed files with 16 additions and 0 deletions
16
nshlib/nsh.h
16
nshlib/nsh.h
|
|
@ -154,6 +154,22 @@
|
|||
# define CONFIG_NSH_NETINIT_THREAD_PRIORITY 100
|
||||
#endif
|
||||
|
||||
/* Some networking commands do not make sense unless there is a network
|
||||
* device. There might not be a network device if, for example, only Unix
|
||||
* domain sockets were enable.
|
||||
*/
|
||||
|
||||
#if !defined(CONFIG_NET_ETHERNET) && !defined(CONFIG_NET_SLIP)
|
||||
/* No link layer protocol is a good indication that there is no network
|
||||
* device.
|
||||
*/
|
||||
|
||||
# undef CONFIG_NSH_DISABLE_IFUPDOWN
|
||||
# undef CONFIG_NSH_DISABLE_IFCONFIG
|
||||
# define CONFIG_NSH_DISABLE_IFUPDOWN 1
|
||||
# define CONFIG_NSH_DISABLE_IFCONFIG 1
|
||||
#endif
|
||||
|
||||
/* Telnetd requires networking support */
|
||||
|
||||
#ifndef CONFIG_NET
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue