blob: 1e015b7fca9f625126d5bff5cbb53db4ca68ae3f [file] [log] [blame]
Thomas Petazzoni487e21c2010-04-03 18:46:46 +02001menu "Kernel"
2
3config BR2_LINUX_KERNEL
4 bool "Linux Kernel"
5 help
6 Enable this option if you want to build a Linux kernel for
7 your embedded device
8
9if BR2_LINUX_KERNEL
10
11#
12# Version selection. We provide the choice between:
13#
14# 1. A single fairly recent stable kernel version
15# 2. In case an internal toolchain has been built, the same kernel
16# version as the kernel headers
17# 3. A custom stable version
18# 4. A custom tarball
19#
20choice
21 prompt "Kernel version"
Peter Korsgaard113d5d12010-09-06 09:39:38 +020022 default BR2_LINUX_KERNEL_2_6_35
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020023
Peter Korsgaard113d5d12010-09-06 09:39:38 +020024config BR2_LINUX_KERNEL_2_6_35
Peter Korsgaard7e7fce12010-09-27 09:20:27 +020025 bool "2.6.35.6"
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020026
27config BR2_LINUX_KERNEL_SAME_AS_HEADERS
28 bool "Same as toolchain kernel headers"
29 depends on BR2_TOOLCHAIN_BUILDROOT
30 help
31 This option will re-use the same kernel sources as the one
32 that have been used for the kernel headers of the
33 cross-compiling toolchain. Having the same version for the
34 kernel running on the system and for the kernel headers is
35 not a requirement, but using the same version allows to
36 download only one tarball of the kernel sources.
37
38config BR2_LINUX_KERNEL_CUSTOM_VERSION
39 bool "Custom version"
40 help
41 This option allows to use a specific 2.6.x or 2.6.x.y
42 official versions, as available on kernel.org
43
44config BR2_LINUX_KERNEL_CUSTOM_TARBALL
45 bool "Custom tarball"
46 help
47 This option allows to specify the http or ftp location of a
48 specific kernel source tarball
49
50endchoice
51
52config BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE
53 string "Kernel version"
54 depends on BR2_LINUX_KERNEL_CUSTOM_VERSION
Peter Korsgaard7e7fce12010-09-27 09:20:27 +020055 default "2.6.35.6"
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020056
57config BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION
58 string "URL of custom kernel tarball"
59 depends on BR2_LINUX_KERNEL_CUSTOM_TARBALL
60
61config BR2_LINUX_KERNEL_VERSION
62 string
Peter Korsgaard7e7fce12010-09-27 09:20:27 +020063 default "2.6.35.6" if BR2_LINUX_KERNEL_2_6_35
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020064 default BR2_DEFAULT_KERNEL_HEADERS if BR2_LINUX_KERNEL_SAME_AS_HEADERS
65 default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE if BR2_LINUX_KERNEL_CUSTOM_VERSION
66 default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
67
68#
69# Patch selection
70#
71
72config BR2_LINUX_KERNEL_PATCH
73 string "Custom kernel patch"
74 help
75 The location can be an URL, a file path, or a directory. In
76 the case of a directory, all files matching linux-*.patch
77 will be applied.
78
79#
80# Configuration selection
81#
82
83choice
84 prompt "Kernel configuration"
85 default BR2_LINUX_KERNEL_USE_DEFCONFIG
86
87config BR2_LINUX_KERNEL_USE_DEFCONFIG
88 bool "Using a defconfig"
89
90config BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG
91 bool "Using a custom config file"
92
93endchoice
94
95config BR2_LINUX_KERNEL_DEFCONFIG
96 string "Defconfig name"
97 depends on BR2_LINUX_KERNEL_USE_DEFCONFIG
98 help
Peter Korsgaard95a14f52010-07-18 21:28:03 +020099 Name of the defconfig file to use, without the trailing
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200100 _defconfig
101
102config BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE
103 string "Configuration file path"
104 depends on BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG
105 help
106 Path to the kernel configuration file
107
108#
109# Binary format
110#
111
112choice
113 prompt "Kernel binary format"
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200114
115config BR2_LINUX_KERNEL_UIMAGE
116 bool "uImage"
Thomas Petazzonib626dc02010-09-01 15:26:24 +0200117 depends on BR2_arm || BR2_armeb || BR2_powerpc || BR2_avr32 || BR2_sh || BR2_sh64
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200118
119config BR2_LINUX_KERNEL_BZIMAGE
120 bool "bzImage"
Thomas Petazzonib626dc02010-09-01 15:26:24 +0200121 depends on BR2_i386 || BR2_x86_64
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200122
123config BR2_LINUX_KERNEL_ZIMAGE
124 bool "zImage"
Thomas Petazzonib626dc02010-09-01 15:26:24 +0200125 depends on BR2_arm || BR2_armeb || BR2_powerpc || BR2_sparc || BR2_sh || BR2_sh64 || BR2_xtensa
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200126
Thomas Petazzonib626dc02010-09-01 15:26:24 +0200127config BR2_LINUX_KERNEL_VMLINUX_BIN
128 bool "vmlinux.bin"
129 depends on BR2_mips || BR2_mipsel || BR2_sh || BR2_sh64
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200130
131endchoice
132
133endif # BR2_LINUX_KERNEL
134
135endmenu