Skip to content
Snippets Groups Projects
Commit c3d15159 authored by patacongo's avatar patacongo
Browse files

Kconfig updates

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4608 42af7a65-404d-4744-a932-0658087f49c3
parent 564b45fb
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,14 @@ ...@@ -3,6 +3,14 @@
# see misc/tools/kconfig-language.txt. # see misc/tools/kconfig-language.txt.
# #
config NSH_LIBRARY
bool "NSH Library"
default n
---help---
Build the NSH support library. This is used, for example, by examples/nsh
in order to implement the full NuttShell (NSH).
if NSH_LIBRARY
config NSH_BUILTIN_APPS config NSH_BUILTIN_APPS
bool "Enable built-in applications" bool "Enable built-in applications"
default y default y
...@@ -11,7 +19,7 @@ config NSH_BUILTIN_APPS ...@@ -11,7 +19,7 @@ config NSH_BUILTIN_APPS
executed from the NSH command line (see apps/README.txt for executed from the NSH command line (see apps/README.txt for
more information). more information).
menu "Disable Commands" menu "Disable Individual commands"
config NSH_DISABLE_CAT config NSH_DISABLE_CAT
bool "Disable cat" bool "Disable cat"
default n default n
...@@ -190,6 +198,8 @@ config NSH_ROMFSETC ...@@ -190,6 +198,8 @@ config NSH_ROMFSETC
at /etc/init.d/rcS. The default startup script will mount at /etc/init.d/rcS. The default startup script will mount
a FAT FS RAMDISK at /tmp but the logic is easily extensible. a FAT FS RAMDISK at /tmp but the logic is easily extensible.
endif
if NSH_ROMFSETC if NSH_ROMFSETC
config NSH_ROMFSMOUNTPT config NSH_ROMFSMOUNTPT
string "ROMFS mount point" string "ROMFS mount point"
...@@ -257,6 +267,7 @@ config NSH_FATMOUNTPT ...@@ -257,6 +267,7 @@ config NSH_FATMOUNTPT
FS will be mounted. Default is /tmp. FS will be mounted. Default is /tmp.
endif endif
if NSH_LIBRARY
config NSH_CONSOLE config NSH_CONSOLE
bool "Use console" bool "Use console"
default y default y
...@@ -314,6 +325,8 @@ config NSH_TELNET ...@@ -314,6 +325,8 @@ config NSH_TELNET
you may log into NuttX remotely using telnet in order to you may log into NuttX remotely using telnet in order to
access NSH. access NSH.
endif
if NSH_TELNET if NSH_TELNET
config NSH_TELNETD_PORT config NSH_TELNETD_PORT
int "Telnet port number" int "Telnet port number"
...@@ -357,17 +370,17 @@ endif ...@@ -357,17 +370,17 @@ endif
config NSH_DHCPC config NSH_DHCPC
bool "Use DHCP to get IP address" bool "Use DHCP to get IP address"
default n default n
depends on NET && NET_UDP && NET_BROADCAST depends on NSH_LIBRARY && NET && NET_UDP && NET_BROADCAST
---help--- ---help---
Obtain the IP address via DHCP. Obtain the IP address via DHCP.
Per RFC2131 (p. 9), the DHCP client must be prepared to receive DHCP Per RFC2131 (p. 9), the DHCP client must be prepared to receive DHCP
messages of up to 576 bytes (excluding Ethernet, IP, or UDP headers and FCS). messages of up to 576 bytes (excluding Ethernet, IP, or UDP headers and FCS).
if !NSH_DHCPC
config NSH_IPADDR config NSH_IPADDR
hex "Target IP address" hex "Target IP address"
default 0x10000002 default 0x10000002
depends on NSH_LIBRARY && NET && !NSH_DHCPC
---help--- ---help---
If NSH_DHCPC is NOT set, then the static IP address must be provided. If NSH_DHCPC is NOT set, then the static IP address must be provided.
This is a 32-bit integer value in host order. So, as an example, This is a 32-bit integer value in host order. So, as an example,
...@@ -376,6 +389,7 @@ config NSH_IPADDR ...@@ -376,6 +389,7 @@ config NSH_IPADDR
config NSH_DRIPADDR config NSH_DRIPADDR
hex "Router IP address" hex "Router IP address"
default 0x10000001 default 0x10000001
depends on NSH_LIBRARY && NET && !NSH_DHCPC
---help--- ---help---
Default router IP address (aka, Gateway). This is a 32-bit integer Default router IP address (aka, Gateway). This is a 32-bit integer
value in host order. So, as an example, 0x10000001 would be 10.0.0.1. value in host order. So, as an example, 0x10000001 would be 10.0.0.1.
...@@ -383,15 +397,15 @@ config NSH_DRIPADDR ...@@ -383,15 +397,15 @@ config NSH_DRIPADDR
config NSH_NETMASK config NSH_NETMASK
hex "Network mask" hex "Network mask"
default 0xffffff00 default 0xffffff00
depends on NSH_LIBRARY && NET && !NSH_DHCPC
---help--- ---help---
Network mask. This is a 32-bit integer value in host order. So, as Network mask. This is a 32-bit integer value in host order. So, as
an example, 0xffffff00 would be 255.255.255.0. an example, 0xffffff00 would be 255.255.255.0.
endif
config NSH_NOMAC config NSH_NOMAC
bool "Hardware has no MAC address" bool "Hardware has no MAC address"
default n default n
depends on NET depends on NSH_LIBRARY && NET
---help--- ---help---
Set if your ethernet hardware has no built-in MAC address. Set if your ethernet hardware has no built-in MAC address.
If set, a bogus MAC will be assigned. If set, a bogus MAC will be assigned.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment