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

menu "Global ADK settings"

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

config ADK_DL_DIR
	string "download directory for packages"
	default ""
	help
	  Configure the download directory for all source packages.
	  Use an absolute path.

config ADK_DISABLE_HONOUR_CFLAGS
	bool "Disable honour CFLAGS checks globally"
	default n
	help
	  Disable honour CFLAGS checks.

config ADK_DISABLE_CHECKSUM
	bool "Disable checksum check for downloads globally"
	default n
	help
	  Disable checksum checks of downloads.

config ADK_DISABLE_KERNEL_PATCHES
	bool "Disable global kernel patches"
	default n
	help
	  Disable all global kernel patches.
	  This might prevent the cross-compilation on 
	  non-Linux targets. Useful for bug reporting on LKML.

config ADK_DISABLE_TARGET_KERNEL_PATCHES
	bool "Disable target specific kernel patches"
	default n
	help
	  Disable all target specific kernel patches.
	  This might render a system unusable, when external
	  kernel patches are required for bootup.

config ADK_WGET_TIMEOUT
	int "Set wget timeout"
	default 10
	help
	  set wget timeout	

config ADK_USE_CCACHE
	bool "Use ccache to speedup recompilation"
	select ADK_HOST_NEED_CCACHE
	default n
	help
	  Useful if you have enough space for the cache and need speedup compilation.

config ADK_MAKE_JOBS
	int
	default 1 if ! ADK_MAKE_PARALLEL

config ADK_MAKE_PARALLEL
	prompt "Enable parallel building of packages"
	boolean

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_TARGET_IP
	prompt "Set target ip address for make check"
	string
	default "127.0.0.1"
	help

config ADK_TARGET_PORT
	prompt "Set target port for make check"
	string
	default "2222" if ADK_TARGET_QEMU
	default "22"
	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
endmenu
