if BR2_KERNEL_LINUX_EXPERIMENTAL

choice
	prompt "Linux Kernel Version"
	depends on BR2_PACKAGE_LINUX
	default BR2_LINUX_2_6_22_1 if !BR2_avr32
	default BR2_LINUX_2_6_22_10 if BR2_avr32
	help
	  Select the specific Linux version you want to use

config BR2_LINUX_2_6_SNAP
	bool "The latest snapshot for the stable Linux kernel"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.x-git#

config BR2_LINUX_2_6_MM
	bool "With latest -mm patch for the stable Linux kernel"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.x-rc#-mm#

config BR2_LINUX_2_6_STABLE
	bool "The latest stable Linux kernel (2.6.22.1)"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.22.1

config BR2_LINUX_2_6_22_10
	bool "Linux 2.6.22.10"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.22.10

config BR2_LINUX_2_6_22_1
	bool "Linux 2.6.22.1"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.22.1

config BR2_LINUX_2_6_22
	bool "Linux 2.6.22"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.22

config BR2_LINUX_2_6_21_6
	bool "Linux 2.6.21.6"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.21.6

config BR2_LINUX_2_6_21_1
	bool "Linux 2.6.21.1"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.21.1

config BR2_LINUX_2_6_21
	bool "Linux 2.6.21"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.21

config BR2_LINUX_2_6_20_4
	bool "Linux 2.6.20.4"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.20.4

config BR2_LINUX_2_6_20
	bool "Linux 2.6.20"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.20

config BR2_LINUX_2_6_19_2
	bool "Linux 2.6.19.2"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.19.2

config BR2_LINUX_2_6_19
	bool "Linux 2.6.19"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.19

config BR2_LINUX_2_6_18
	bool "Linux 2.6.18"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.18

config BR2_LINUX_2_6_17
	bool "Linux 2.6.17"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.17

config BR2_LINUX_2_6_16
	bool "Linux 2.6.16"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.16

config BR2_LINUX_2_6_15
	bool "Linux 2.6.15"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.15

config BR2_LINUX_2_6_23
	bool "Linux 2.6.23"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.23

config BR2_LINUX_CUSTOM
	bool "Linux <custom> version"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux <your selection>

endchoice

config BR2_CUSTOM_DOWNLOAD_LINUX26_VERSION
	string "Linux Tarball version"
	depends on BR2_LINUX_CUSTOM
	default "linux-2.6.22"

config BR2_CUSTOM_LINUX26_VERSION
	string "Linux Version"
	depends on BR2_LINUX_CUSTOM
	default "linux-2.6.22-version"

config BR2_CUSTOM_LINUX26_RC_PATCH
	string "RC patch (if needed)"
	depends on BR2_LINUX_CUSTOM
	default "patch-2.6.22-rc6-mm1.bz2"

menu "Patches"
	depends on BR2_PACKAGE_LINUX

config BR2_LINUX_BSP_PATCH
	string "Additional patch to apply (supply full path)"
	default ""

endmenu

config BR2_DOWNLOAD_LINUX26_VERSION
	string #"Selected Tarball:"
	default "2.6.15" if BR2_LINUX_2_6_15
	default "2.6.16" if BR2_LINUX_2_6_16
	default "2.6.17" if BR2_LINUX_2_6_17
	default "2.6.18" if BR2_LINUX_2_6_18
	default "2.6.19" if BR2_LINUX_2_6_19
	default "2.6.19.2" if BR2_LINUX_2_6_19_2
	default "2.6.20" if BR2_LINUX_2_6_20
	default "2.6.20.4" if BR2_LINUX_2_6_20_4
	default "2.6.21" if BR2_LINUX_2_6_21
	default "2.6.21.1" if BR2_LINUX_2_6_21_1
	default "2.6.21.6" if BR2_LINUX_2_6_21_6
	default "2.6.22" if BR2_LINUX_2_6_22
	default "2.6.22.1" if BR2_LINUX_2_6_22_1
	default "2.6.22.10" if BR2_LINUX_2_6_22_10
	default "2.6.22" if BR2_LINUX_2_6_23_RC1
	default "2.6.22" if BR2_LINUX_2_6_SNAP
	default "2.6.22" if BR2_LINUX_2_6_MM
	default $(BR2_CUSTOM_DOWNLOAD_LINUX26_VERSION) if BR2_LINUX_CUSTOM

config BR2_LINUX26_VERSION
	string #"Selected Version:"
	default "2.6.15" if BR2_LINUX_2_6_15
	default "2.6.16" if BR2_LINUX_2_6_16
	default "2.6.17" if BR2_LINUX_2_6_17
	default "2.6.18" if BR2_LINUX_2_6_18
	default "2.6.19" if BR2_LINUX_2_6_19
	default "2.6.19.2" if BR2_LINUX_2_6_19_2
	default "2.6.20" if BR2_LINUX_2_6_20
	default "2.6.20.4" if BR2_LINUX_2_6_20_4
	default "2.6.21" if BR2_LINUX_2_6_21
	default "2.6.21.1" if BR2_LINUX_2_6_21_1
	default "2.6.21.6" if BR2_LINUX_2_6_21_6
	default "2.6.22" if BR2_LINUX_2_6_22
	default "2.6.22.1" if BR2_LINUX_2_6_22_1
	default "2.6.22.10" if BR2_LINUX_2_6_22_10
	default "2.6.22" if BR2_LINUX_2_6_23_RC1
	default "2.6.22" if BR2_LINUX_2_6_SNAP
	default "2.6.22" if BR2_LINUX_2_6_MM
	default $(BR2_CUSTOM_LINUX26_VERSION) if BR2_LINUX_CUSTOM

config BR2_LINUX26_RC_PATCH
	string #"Selected Patch:"
	default "" if BR2_LINUX_2_6_15
	default "" if BR2_LINUX_2_6_16
	default "" if BR2_LINUX_2_6_17
	default "" if BR2_LINUX_2_6_18
	default "" if BR2_LINUX_2_6_19
	default "" if BR2_LINUX_2_6_19_2
	default "" if BR2_LINUX_2_6_20
	default "" if BR2_LINUX_2_6_20_4
	default "" if BR2_LINUX_2_6_21
	default "" if BR2_LINUX_2_6_21_1
	default "" if BR2_LINUX_2_6_21_6
	default "" if BR2_LINUX_2_6_22
	default "" if BR2_LINUX_2_6_22_1
	default "" if BR2_LINUX_2_6_22_10
	default "patch-2.6.23-rc1.bz2" if BR2_LINUX_2_6_23_RC1
	default $(BR2_CUSTOM_LINUX26_RC_PATCH) if BR2_LINUX_CUSTOM

choice
	prompt "Linux Kernel Configuration"
	depends on BR2_PACKAGE_LINUX
	default BR2_PACKAGE_LINUX_USE_KCONFIG
	help
	  Select the way to configure the Linux

config BR2_PACKAGE_LINUX_USE_KCONFIG
	bool ".config file"
	depends on BR2_PACKAGE_LINUX
	help
	  kernel's .config to use to build a kernel for the target.

	  If the above setting is empty, you can change the default
	  board-imposed value by passing LINUX26_KCONFIG=<path> to
	  make.

config BR2_LINUX26_DEFCONFIG
	bool "Run make <board>_defconfig "
	depends on BR2_PACKAGE_LINUX
	help
	  Configure Linux by make <board>_defconfig

config BR2_LINUX_CUSTOMIZE
	bool "Run make ARCH=$(ARCH) xconfig before build"
	depends on BR2_PACKAGE_LINUX
	help
	  Configure Linux by make xconfig
endchoice

config BR2_PACKAGE_LINUX_KCONFIG
	string ".config file"
	depends on BR2_PACKAGE_LINUX_USE_KCONFIG
	default "$(BR2_BOARD_PATH)/$(BR2_BOARD_NAME)-linux-$(LINUX26_VERSION).config"
	help
	  kernel's .config to use to build a kernel for the target.

	  If the above setting is empty, you can change the default
	  board-imposed value by passing LINUX26_KCONFIG=<path> to
	  make.

choice
	prompt "kernel binary format"
	depends on BR2_PACKAGE_LINUX
	default BR2_LINUX_BIN_UIMAGE
	help
	  Select the specific Linux binary type you want to use

config BR2_LINUX_BIN_BZIMAGE
	bool "bzImage"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.19.2

config BR2_LINUX_BIN_UIMAGE
	bool "uImage"
	depends on BR2_PACKAGE_LINUX
	help
	  Build uImage binary

config BR2_LINUX_BIN_VMLINUX
	bool "vmlinux"
	depends on BR2_PACKAGE_LINUX
	help
	  Build vmlinux binary

config BR2_LINUX_BIN_ZIMAGE
	bool "zImage"
	depends on BR2_PACKAGE_LINUX
	help
	  Linux 2.6.19.2

config BR2_LINUX_BIN_CUSTOM
	bool "<custom> Linux binary"
	depends on BR2_PACKAGE_LINUX
	help
	  Build custom Linux binary format
endchoice

config BR2_LINUX_BIN_CUSTOM_BIN
	string "custom kernel binary format"
	depends on BR2_LINUX_BIN_CUSTOM
	default ""
	help
	  Which Linux binary format?

config BR2_PACKAGE_LINUX_FORMAT
	string #"kernel binary format"
	depends on BR2_PACKAGE_LINUX
	default "bzImage" if BR2_LINUX_BIN_BZIMAGE
	default "uImage" if BR2_LINUX_BIN_UIMAGE
	default "vmlinux" if BR2_LINUX_BIN_VMLINUX
	default "zImage" if BR2_LINUX_BIN_ZIMAGE
	default $(BR2_LINUX_BIN_CUSTOM_BIN) if BR2_LINUX_BIN_CUSTOM
	help
	  kernel binary format.
	  Popular values include:
	  - bzImage
	  - zImage
	  - vmlinux
	  - zImage
	  - xipImage
	  and other, architecture dependant formats.

	  Note that the default format is supposed to be set by your
	  board-description, if any.
	  i386 and compatible default to bzImage if nothing was given
	  above.
	  If the above setting is empty, you can change the default
	  board-imposed value by passing LINUX26_FORMAT=<string> to
	  make.

comment "Destinations for linux kernel binaries"
	depends on BR2_PACKAGE_LINUX

config BR2_LINUX_IN_ROOTFS
	bool "Copy kernel to root file system"
	depends on BR2_PACKAGE_LINUX
	help
	  Copy kernel to <root>/boot directory

menuconfig BR2_LINUX_COPY
	bool "Secondary Copy"
	depends on BR2_PACKAGE_LINUX
	default y

config BR2_LINUX_COPYTO
	string "also copy the image to..."
	depends on BR2_LINUX_COPY
	default "/tftpboot"
	help
	  Copy kernel to secondary location

endif
