blob: 59ba6d3ff22b279d4b366363d538b6ad6345783c [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"
Gustavo Zacarias31735292012-03-19 07:21:49 -030022 default BR2_LINUX_KERNEL_3_3
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020023
Gustavo Zacarias31735292012-03-19 07:21:49 -030024config BR2_LINUX_KERNEL_3_3
Gustavo Zacarias35ee0962012-04-29 02:34:01 +000025 bool "3.3.4"
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
Thomas Petazzoni205fb192011-07-11 22:46:11 +020050config BR2_LINUX_KERNEL_CUSTOM_GIT
51 bool "Custom Git tree"
52 help
53 This option allows Buildroot to get the Linux kernel source
54 code from a Git repository.
55
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020056endchoice
57
58config BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE
59 string "Kernel version"
60 depends on BR2_LINUX_KERNEL_CUSTOM_VERSION
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020061
62config BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION
63 string "URL of custom kernel tarball"
64 depends on BR2_LINUX_KERNEL_CUSTOM_TARBALL
65
Thomas Petazzoni205fb192011-07-11 22:46:11 +020066config BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL
67 string "URL of custom Git repository"
68 depends on BR2_LINUX_KERNEL_CUSTOM_GIT
69
70config BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION
71 string "Custom Git version"
72 depends on BR2_LINUX_KERNEL_CUSTOM_GIT
73
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020074config BR2_LINUX_KERNEL_VERSION
75 string
Gustavo Zacarias35ee0962012-04-29 02:34:01 +000076 default "3.3.4" if BR2_LINUX_KERNEL_3_3
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020077 default BR2_DEFAULT_KERNEL_HEADERS if BR2_LINUX_KERNEL_SAME_AS_HEADERS
78 default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE if BR2_LINUX_KERNEL_CUSTOM_VERSION
79 default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
Thomas Petazzoni205fb192011-07-11 22:46:11 +020080 default $BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION if BR2_LINUX_KERNEL_CUSTOM_GIT
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020081
82#
83# Patch selection
84#
85
86config BR2_LINUX_KERNEL_PATCH
Thomas Petazzoni55b0a372010-12-05 21:53:18 +010087 string "Custom kernel patches"
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020088 help
Thomas Petazzoni55b0a372010-12-05 21:53:18 +010089 A space-separated list of patches to apply to the
90 kernel. Each patch can be described as an URL, a local file
91 path, or a directory. In the case of a directory, all files
92 matching linux-*.patch in the directory will be applied.
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020093
94#
95# Configuration selection
96#
97
98choice
99 prompt "Kernel configuration"
100 default BR2_LINUX_KERNEL_USE_DEFCONFIG
101
102config BR2_LINUX_KERNEL_USE_DEFCONFIG
103 bool "Using a defconfig"
104
105config BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG
106 bool "Using a custom config file"
107
108endchoice
109
110config BR2_LINUX_KERNEL_DEFCONFIG
111 string "Defconfig name"
112 depends on BR2_LINUX_KERNEL_USE_DEFCONFIG
113 help
Peter Korsgaard95a14f52010-07-18 21:28:03 +0200114 Name of the defconfig file to use, without the trailing
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200115 _defconfig
116
117config BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE
118 string "Configuration file path"
119 depends on BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG
120 help
121 Path to the kernel configuration file
122
Stephan Hoffmannaaed42d2012-03-17 10:46:55 +0100123config BR2_LINUX_KERNEL_DTS_FILE
124 string "Device Tree dts file location"
125 depends on BR2_microblaze
126 help
127 Path from where the dts file has to be copied
128 The final "custom target" name depends on the
129 dts file name:
130 <name>.dts --> simpleImage.<name>
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200131#
132# Binary format
133#
134
135choice
136 prompt "Kernel binary format"
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200137
138config BR2_LINUX_KERNEL_UIMAGE
139 bool "uImage"
Mike Frysinger871db072011-02-07 00:49:11 -0500140 depends on BR2_arm || BR2_armeb || BR2_bfin || BR2_powerpc || BR2_avr32 || BR2_sh || BR2_sh64
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200141
142config BR2_LINUX_KERNEL_BZIMAGE
143 bool "bzImage"
Thomas Petazzonib626dc02010-09-01 15:26:24 +0200144 depends on BR2_i386 || BR2_x86_64
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200145
146config BR2_LINUX_KERNEL_ZIMAGE
147 bool "zImage"
Thomas Petazzonib626dc02010-09-01 15:26:24 +0200148 depends on BR2_arm || BR2_armeb || BR2_powerpc || BR2_sparc || BR2_sh || BR2_sh64 || BR2_xtensa
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200149
Thomas Petazzonib626dc02010-09-01 15:26:24 +0200150config BR2_LINUX_KERNEL_VMLINUX_BIN
151 bool "vmlinux.bin"
152 depends on BR2_mips || BR2_mipsel || BR2_sh || BR2_sh64
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200153
Thomas Petazzoni71c05022010-12-05 21:53:23 +0100154config BR2_LINUX_KERNEL_VMLINUX
155 bool "vmlinux"
Thomas Petazzoni71c05022010-12-05 21:53:23 +0100156
Kelvin Cheungc1485d52011-09-20 17:01:26 +0800157config BR2_LINUX_KERNEL_VMLINUZ
158 bool "vmlinuz"
159 depends on BR2_mips || BR2_mipsel
160
Martin Hickse2ed6c82011-03-21 13:39:43 -0400161config BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
162 bool "custom target"
163 help
164 For certain cases a board-specific target image must be
165 used. For example, on powerPC where the OpenFirmware
166 description is attached in a board-specific kernel image
167 target like 'cuImage.mpc8379_rdb'.
168
169 Select this option and specify the make target in "Kernel
170 image target name".
171
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200172endchoice
173
Martin Hickse2ed6c82011-03-21 13:39:43 -0400174config BR2_LINUX_KERNEL_IMAGE_TARGET_NAME
175 string "Kernel image target name"
176 depends on BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
177 help
178 Specify the kernel make target to build the kernel that you
179 need.
180
Thomas Petazzonieff25f42011-07-05 21:53:54 +0200181config BR2_LINUX_KERNEL_INSTALL_TARGET
182 bool "Install kernel image to /boot in target"
183 depends on !BR2_TARGET_ROOTFS_INITRAMFS
184 help
185 Select this option to have the kernel image installed to
186 /boot in the target root filesystem, as is typically done on
187 x86/x86_64 systems.
188
Thomas De Schampheleire3011d232011-09-17 22:22:51 +0200189
190# Linux extensions
191source "linux/Config.ext.in"
192
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200193endif # BR2_LINUX_KERNEL
194
195endmenu