#
# For a description of the syntax of this configuration file,
# see Kconfig-language.txt
#
# Copyright 2005, Broadcom Corporation
# All Rights Reserved.
# 
# THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
# KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
# SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
# FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
#

mainmenu "Router Configuration"

config CONFIG_NAT
       bool "Network Address Translation (NAT) Support"
       default y
       help
       Answer Y to configure this box as a NAT box.

menu "Base Features"

config CONFIG_RC
       bool "Router control (rc)"
       depends on CONFIG_NVRAM && CONFIG_SHARED && CONFIG_BUSYBOX
       default y
       help
       rc is a compact replacement for traditional SysV init. rc
       manages the execution of all daemons. Answer Y unless you have
       configured busybox to provide SysV init functionality.

config CONFIG_NVRAM
       bool "NVRAM support"
       default y
       help
       Answer Y for user mode NVRAM support.

config CONFIG_SHARED
       bool "Shared functions"
       default y
       help
       Answer Y for shared functions required by most of the base
       features.

config CONFIG_LIBBCM
       bool "Broadcom shared library functions"
       default y
       help
       Answer Y for shared functions for accesing Broadcom h/w

config CONFIG_BUSYBOX
       bool "BusyBox"
       default y
       help
       BusyBox combines tiny versions of many common UNIX utilities into
       a single small executable.

config CONFIG_BUSYBOX_CONFIG
       string "BusyBox default configuration"
       depends on CONFIG_BUSYBOX
       default "router"
       help
       Override the default BusyBox configuration. File must exist in busybox/configs.

config CONFIG_WLCONF
       bool "Wireless configuration"
       depends on CONFIG_NVRAM && CONFIG_SHARED
       default y
       help
       Answer Y for Broadcom wireless configuration support.

config CONFIG_BRIDGE
       bool "Ethernet bridging"
       default y
       help
       Answer Y for the user mode Ethernet bridge configuration utility.

config CONFIG_VLAN
       bool "VLAN configuration"
       depends on CONFIG_NAT
       default y
       help
       Answer Y for the user mode VLAN configuration utility.

config CONFIG_HTTPD
       bool "Web server"
       depends on CONFIG_NVRAM && CONFIG_SHARED
       default y
       help
       Answer Y for basic web configuration support.

config CONFIG_WWW
       bool "Web pages"
       depends on CONFIG_HTTPD
       help
       Answer Y for additional web pages.

config CONFIG_NETCONF
       bool "Firewall configuration"
       depends on (CONFIG_IPTABLES || CONFIG_LIBIPT) && CONFIG_NAT
       default y
       help
       netconf is a compact, portable replacement for full iptables
       support. It provides enough functionality to configure a basic
       NAT firewall. Answer Y unless you plan on configuring a full
       iptables based firewall setup.

choice
	prompt "Iptables"
    depends on CONFIG_NAT
	default CONFIG_LIBIPT
	optional
	help
	netconf only requires the iptables support library. Answer
	"Library only" unless you want full iptables support. Full
	iptables support requires libdl (see "Additional C libraries").

config CONFIG_IPTABLES
       bool "Full"
       depends on CONFIG_LIBDL

config CONFIG_LIBIPT
       bool "Library only"

endchoice

choice
	prompt "C library"
	default CONFIG_GLIBC

config CONFIG_GLIBC
       bool "GNU libc"

config CONFIG_UCLIBC
       bool "uClibc"

endchoice

config CONFIG_LIBOPT
       bool "Optimize C library"
       depends on CONFIG_GLIBC || CONFIG_UCLIBC
       default y

endmenu

menu "Options"

config CONFIG_VENDOR
       string "Vendor"
       default "broadcom"
       help
       Answer Y for vendor-specific customization.

config CONFIG_UDHCPD
       bool "DHCP client and server"
       default y

config CONFIG_PPP
       bool "PPPoE client"
       depends on CONFIG_NAT
       default y

config CONFIG_UPNP
       bool "UPnP IGD server"
       depends on CONFIG_NETCONF && CONFIG_NVRAM && CONFIG_SHARED && CONFIG_NAT
       default y

config CONFIG_NAS
       bool "802.1X/WPA network authenticator"
       depends on CONFIG_NVRAM && CONFIG_SHARED
       default y

config CONFIG_SES
       bool "Secure Easy Setup configurator"
       depends on CONFIG_NVRAM && CONFIG_SHARED && CONFIG_LIBBCM
       default y

config CONFIG_EZC
       bool "EZConfig Setup (Phase 1)"
       depends on CONFIG_HTTPD
       default y

config CONFIG_NTP
       bool "NTP client"
       default y

config CONFIG_DNSMASQ
       bool "DNS forwarder"
       depends on CONFIG_NAT
       default y

config CONFIG_UTILS
       bool "Broadcom driver utilities"
       default y

config CONFIG_ETC
       bool "SysV init scripts"
       depends on CONFIG_BUSYBOX
       default n
       help
       SysV init scripts.

config CONFIG_RCS
       string "Default SysV init script"
       depends on CONFIG_ETC
       default "rcS"
       help
       Default initialization script.

config CONFIG_BCMWPA2
       bool "WPA2 Config"
       default y

config CONFIG_WCN
       bool "Windows Connect Now support"
	   depends on CONFIG_NVRAM && CONFIG_SHARED
       default n
       help
       Answer Y to enable support for Windows Connect Now - a method 
	   to configure wireless networks via USB Flash Devices.
	   (Requires CONFIG_WCN and dependents be configured into the kernel.)

endmenu

menu "Additional C libraries"

config CONFIG_LIBCRYPT
       bool "libcrypt"
       default y
       help
       libcrypt is the cryptography library.

config CONFIG_LIBDL
       bool "libdl"
       default n
       help
       libdl is the dynamic linking interface library.

config CONFIG_LIBM
       bool "libm"
       default n
       help
       libm is the mathematical library.

config CONFIG_LIBNSL
       bool "libnsl"
       default n
       help
       libnsl is the network services library.

config CONFIG_LIBPTHREAD
       bool "libpthread"
       default n
       help
       The POSIX threads library.

config CONFIG_LIBRESOLV
       bool "libresolv"
       default n
       help
       Functions in this library provide for creating, sending, and
       interpreting packets to the Internet domain name servers.

config CONFIG_LIBUTIL
       bool "libutil"
       default n
       help
       Contains code for "standard" functions used in many different
       Unix utilities.

endmenu

menu "Environment"

config PLATFORM
       string "Target architecture"
       default "mipsel"
       help
       Specify the target architecture.

config LINUXDIR
       string "Target Linux kernel"
       default "$(SRCBASE)/linux/linux"
       help
       Specify the location of the target Linux kernel directory.

config LIBDIR
       string "Target /lib"
       default "$(TOOLCHAIN)/lib"
       help
       Specify the location of the target /lib directory.

config USRLIBDIR
       string "Target /usr/lib"
       default "$(TOOLCHAIN)/usr/lib"
       help
       Specify the location of the target /usr/lib directory.

endmenu

menu "Internal Options"



endmenu
