Kconfig updates

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4608 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2012-04-14 18:01:45 +00:00
parent 9c8f49c100
commit 5286a4c849
9 changed files with 84 additions and 28 deletions

View File

@ -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
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
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
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
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
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
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
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.

View File

@ -3,6 +3,8 @@
# see misc/tools/kconfig-language.txt. # see misc/tools/kconfig-language.txt.
# #
comment "Device Driver Configuration"
config DEV_NULL config DEV_NULL
bool "Enable /dev/null" bool "Enable /dev/null"
default y default y

View File

@ -4,6 +4,7 @@
# #
comment "File system configuration" comment "File system configuration"
source fs/fat/Kconfig source fs/fat/Kconfig
source fs/mmap/Kconfig source fs/mmap/Kconfig
source fs/nfs/Kconfig source fs/nfs/Kconfig

View File

@ -3,9 +3,6 @@
# see misc/tools/kconfig-language.txt. # see misc/tools/kconfig-language.txt.
# #
menu "FAT file system configuration"
comment "FAT file system configuration"
config FS_FAT config FS_FAT
bool "FAT file system" bool "FAT file system"
default n default n
@ -56,4 +53,3 @@ config FS_FATTIME
hardware RTC or other way to get the time and date. hardware RTC or other way to get the time and date.
endif endif
endmenu

View File

@ -3,4 +3,25 @@
# see misc/tools/kconfig-language.txt. # see misc/tools/kconfig-language.txt.
# #
comment "File mapping emulation" config FS_RAMMAP
bool "File mapping emulation"
default n
---help---
NuttX operates in a flat open address space and is focused on MCUs that do
support Memory Management Units (MMUs). Therefore, NuttX generally does not
require mmap() functionality and the MCUs generally cannot support true
memory-mapped files.
However, memory mapping of files is the mechanism used by NXFLAT, the NuttX
tiny binary format, to get files into memory in order to execute them.
mmap() support is therefore required to support NXFLAT.
If FS_RAMMAP is defined in the configuration, then mmap() will
support simulation of memory mapped files by copying files whole
into RAM. These copied files have some of the properties of
standard memory mapped files.
See nuttx/fs/mmap/README.txt for additonal information.
if FS_RAMMAP
endif

View File

@ -3,4 +3,28 @@
# see misc/tools/kconfig-language.txt. # see misc/tools/kconfig-language.txt.
# #
comment "Network file system (NFS) client file system" config NFS
bool "NFS client file system"
default n
depends on NET && !DISABLE_MOUNTPOINT
---help---
Enable network file system (NFS) client file system
#if NFS
config NFS_TCPIP
bool "TCP/IP RPC support"
default n
depends on NFS
---help---
By default, NFS uses a UDP RPC protocol. Enable this option to
build in support for a TCP/IP-based RPC.
config NFS_UNIX_AUTH
bool "NFS Unix authentication"
default n
depends on NFS
---help---
Build in support for Unix-style authentication.
#endif

View File

@ -3,9 +3,6 @@
# see misc/tools/kconfig-language.txt. # see misc/tools/kconfig-language.txt.
# #
menu "NXFFS file system configuration"
comment "NXFFS file system configuration"
config FS_NXFFS config FS_NXFFS
bool "NXFFS file system" bool "NXFFS file system"
default n default n
@ -52,4 +49,3 @@ config NXFFS_TAILTHRESHOLD
Default: 8192. Default: 8192.
endif endif
endmenu

View File

@ -3,4 +3,12 @@
# see misc/tools/kconfig-language.txt. # see misc/tools/kconfig-language.txt.
# #
comment "ROMFS file system" config FS_ROMFS
bool "ROMFS file system"
default n
depends on !DISABLE_MOUNTPOINT
---help---
Enable ROMFS filesystem support
if FS_ROMFS
endif

View File

@ -133,6 +133,12 @@ config NET_UDP_CONNS
---help--- ---help---
The maximum amount of open concurrent UDP sockets The maximum amount of open concurrent UDP sockets
config NET_BROADCAST
bool "UDP broadcast Rx support"
default n
---help---
Incoming UDP broadcast support
endif endif
config NET_ICMP config NET_ICMP
@ -202,18 +208,6 @@ config NET_ARP_IPIN
Harvest IP/MAC address mappings from the ARP table Harvest IP/MAC address mappings from the ARP table
from incoming IP packets. from incoming IP packets.
endif
if NET_UDP
config NET_BROADCAST
bool "UDP broadcast Rx support"
default n
---help---
Incoming UDP broadcast support
endif
if NET
config NET_MULTICAST config NET_MULTICAST
bool "Multi-cast Tx support" bool "Multi-cast Tx support"
default n default n