# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

config ADKVERSION
	string
	option env="ADKVERSION"

mainmenu "OpenADK Configuration"

config MODULES
	bool
	default y

config ADK_HAVE_DOT_CONFIG
	bool
	default y

menu "ADK settings"

config ADK_VENDOR
	string "vendor name"
	default "openadk"
	help
	  Vendor string is used for toolchain.

config ADK_HOST
	string "webserver for packages and distfiles"
	default "www.openadk.org"
	help
	  Configure host for IPKG package management.

config ADK_DEVELSYSTEM
	bool "Compile a ADK development system"
	default n
	select ADK_PACKAGE_BASH
	select ADK_PACKAGE_BINUTILS
	select ADK_PACKAGE_BZIP2
	select ADK_PACKAGE_DIFFUTILS
	select ADK_PACKAGE_FILE
	select ADK_PACKAGE_GAWK
	select ADK_PACKAGE_GCC
	select ADK_PACKAGE_GIT
	select ADK_PACKAGE_GREP
	select ADK_PACKAGE_UCLIBC_DEV if ADK_TARGET_LIB_UCLIBC
	select ADK_PACKAGE_EGLIBC_DEV if ADK_TARGET_LIB_EGLIBC
	select ADK_PACKAGE_GLIBC_DEV if ADK_TARGET_LIB_GLIBC
	select ADK_PACKAGE_LIBNCURSES
	select ADK_PACKAGE_LIBNCURSES_DEV
	select ADK_PACKAGE_M4
	select ADK_PACKAGE_MAKE
	select ADK_PACKAGE_MKSH
	select ADK_PACKAGE_PATCH
	select ADK_PACKAGE_PKG_CONFIG
	select ADK_PACKAGE_MICROPERL
	select ADK_PACKAGE_TAR
	select ADK_PACKAGE_TSORT
	select ADK_PACKAGE_ZLIB
	select ADK_PACKAGE_ZLIB_DEV
	select ADK_PACKAGE_XZ
	help
	  After bootstrapping a Linux system you might want to
	  switch to native builds with your target. 
	  If you choose this option, all necessary software needed
	  for native building will be selected.

config ADK_DEBUG
	bool "Enable debug support"
	default n
	help
	  All packages and libc will be compiled and packaged with debug information.
	  Mostly useful for NFS root or big USB/CF or hard disk setups.

config ADK_STATIC
	bool "Link applications statically by default"
	default n
	help
	  Useful for toolchain only target devices.

config ADK_MAKE_JOBS
	int
	default 1 if ! ADK_MAKE_PARALLEL

config ADK_MAKE_PARALLEL
	prompt "Enable parallel building of packages that claim to support it"
	boolean
	default n

config ADK_MAKE_JOBS
	prompt "How many jobs to use"
	int
	default 2
	depends on ADK_MAKE_PARALLEL
	help
	  The number specified here will be passed to make as N in '-jN'

config ADK_FORCE_PARALLEL
	prompt "Force parallel building of all packages (DANGEROUS)"
	bool
	default n
	depends on ADK_MAKE_PARALLEL
	help
	  Do not enable this! It's for testing purposes only.

config ADK_TARGET_IP
	prompt "Set target ip address for make check"
	string
	default "127.0.0.1"
	help

choice 
prompt "Hostsystem (do not change!)"
config ADK_HOST_LINUX
	prompt "Linux"
	boolean

config ADK_HOST_FREEBSD
	prompt "FreeBSD"
	boolean

config ADK_HOST_MIRBSD
	prompt "MirBSD"
	boolean

config ADK_HOST_OPENBSD
	prompt "OpenBSD"
	boolean

config ADK_HOST_NETBSD
	prompt "NetBSD"
	boolean

config ADK_HOST_DARWIN
	prompt "Darwin"
	boolean

config ADK_HOST_CYGWIN
	prompt "Cygwin"
	boolean

endchoice

choice
prompt "Hardware profile (autodetection on OpenADK systems)"
config ADK_HARDWARE_NOPROFILE
	bool "no profile"

config ADK_HARDWARE_IBMX40
	bool "IBM X40 laptop"
	select ADK_TARGET_WITH_USB
	select ADK_TARGET_WITH_VGA
	select ADK_TARGET_WITH_INPUT
	select ADK_TARGET_WITH_RTC
	select ADK_TARGET_WITH_HDD
	select ADK_KERNEL_NLS
	select ADK_KERNEL_EXT2_FS
	select ADK_KERNEL_SCSI
	select ADK_KERNEL_ATA
	select ADK_KERNEL_BLK_DEV_SD
	select ADK_KERNEL_INPUT_KEYBOARD
	select ADK_KERNEL_NETDEVICES
	select ADK_KERNEL_NET_PCI
	select ADK_KERNEL_NET_ETHERNET
	select ADK_KERNEL_MII
	select ADK_KERNEL_SWAP
	select ADK_KPACKAGE_KMOD_MAC80211
	select ADK_KPACKAGE_KMOD_ATH5K
	select ADK_KERNEL_MAC80211_LEDS
        select ADK_KERNEL_ATH_COMMON
	select ADK_KPACKAGE_KMOD_SND
	select ADK_KPACKAGE_KMOD_SND_OSSEMUL
	select ADK_PACKAGE_KMOD_USB_CONTROLLER
	select ADK_KPACKAGE_KMOD_USB
	select ADK_KPACKAGE_KMOD_USB_EHCI_HCD
	select ADK_KPACKAGE_KMOD_USB_OHCI_HCD
	help
         Hardware profile for IBM X40 laptop's.

config ADK_HARDWARE_YEELONG
	bool "Yeelong laptop"
	select ADK_TARGET_WITH_USB
	select ADK_TARGET_WITH_VGA
	select ADK_TARGET_WITH_INPUT
	select ADK_TARGET_WITH_RTC
	select ADK_TARGET_WITH_HDD
	select ADK_KERNEL_NLS
	select ADK_KERNEL_EXT2_FS
	select ADK_KERNEL_SCSI
	select ADK_KERNEL_ATA
	select ADK_KERNEL_BLK_DEV_SD
	select ADK_KERNEL_INPUT_KEYBOARD
	select ADK_KERNEL_NETDEVICES
	select ADK_KERNEL_NET_PCI
	select ADK_KERNEL_NET_ETHERNET
	select ADK_KERNEL_MII
	select ADK_KERNEL_SWAP
	select ADK_KPACKAGE_KMOD_MAC80211
	select ADK_KPACKAGE_KMOD_EEPROM_93CX6
	select ADK_KPACKAGE_KMOD_RTL8187
	select ADK_KPACKAGE_KMOD_SND
	select ADK_KPACKAGE_KMOD_SND_CS5535AUDIO
	select ADK_KPACKAGE_KMOD_SND_OSSEMUL
	select ADK_PACKAGE_KMOD_USB_CONTROLLER
	select ADK_KPACKAGE_KMOD_USB
	select ADK_KPACKAGE_KMOD_USB_EHCI_HCD
	select ADK_KPACKAGE_KMOD_USB_OHCI_HCD
	help
         Hardware profile for Lemotes Yeelong laptop.
	 Selects drivers for wireless card, usb controller and sound card.

endchoice

endmenu

source "target/Config.in"

menu "Runtime configuration"

config ADK_RUNTIME_HOSTNAME
	string "hostname for the embedded system"
	default "linux"
	help
	  Set your target hostname.

config ADK_RUNTIME_SSH_PUBKEY
	string "SSH public key (root user only)"
	default ""
	help
	  Paste your generated SSH public key here and it will be embedded into
	  the built image, so you can use it to login instantly.

config ADK_RUNTIME_PASSWORD
	string "root password for the embedded system"
	default "linux123"
	help
	  Predefine the root password enabled in the built image.

config ADK_RUNTIME_TIMEZONE
	string "timezone for the embedded system"
	default "Europe/Berlin"
	help

endmenu

menu "Package selection"
source "package/Config.in.auto.global"
source "package/Config.in.auto"
endmenu

menu "Kernel configuration"
source "target/linux/Config.in"
endmenu