blob: 8d3b0ba849180fa64f4ce15ba31413cb12f7a005 [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 Korsgaard7d4f51d2011-06-09 10:37:32 +020022 default BR2_LINUX_KERNEL_2_6_39
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020023
Peter Korsgaard7d4f51d2011-06-09 10:37:32 +020024config BR2_LINUX_KERNEL_2_6_39
Peter Korsgaarda315ee32011-07-10 20:39:44 +020025 bool "2.6.39.3"
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
Peter Korsgaarda315ee32011-07-10 20:39:44 +020061 default "2.6.39.3"
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020062
63config BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION
64 string "URL of custom kernel tarball"
65 depends on BR2_LINUX_KERNEL_CUSTOM_TARBALL
66
Thomas Petazzoni205fb192011-07-11 22:46:11 +020067config BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL
68 string "URL of custom Git repository"
69 depends on BR2_LINUX_KERNEL_CUSTOM_GIT
70
71config BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION
72 string "Custom Git version"
73 depends on BR2_LINUX_KERNEL_CUSTOM_GIT
74
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020075config BR2_LINUX_KERNEL_VERSION
76 string
Peter Korsgaarda315ee32011-07-10 20:39:44 +020077 default "2.6.39.3" if BR2_LINUX_KERNEL_2_6_39
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020078 default BR2_DEFAULT_KERNEL_HEADERS if BR2_LINUX_KERNEL_SAME_AS_HEADERS
79 default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE if BR2_LINUX_KERNEL_CUSTOM_VERSION
80 default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
Thomas Petazzoni205fb192011-07-11 22:46:11 +020081 default $BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION if BR2_LINUX_KERNEL_CUSTOM_GIT
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020082
83#
84# Patch selection
85#
86
87config BR2_LINUX_KERNEL_PATCH
Thomas Petazzoni55b0a372010-12-05 21:53:18 +010088 string "Custom kernel patches"
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020089 help
Thomas Petazzoni55b0a372010-12-05 21:53:18 +010090 A space-separated list of patches to apply to the
91 kernel. Each patch can be described as an URL, a local file
92 path, or a directory. In the case of a directory, all files
93 matching linux-*.patch in the directory will be applied.
Thomas Petazzoni487e21c2010-04-03 18:46:46 +020094
95#
96# Configuration selection
97#
98
99choice
100 prompt "Kernel configuration"
101 default BR2_LINUX_KERNEL_USE_DEFCONFIG
102
103config BR2_LINUX_KERNEL_USE_DEFCONFIG
104 bool "Using a defconfig"
105
106config BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG
107 bool "Using a custom config file"
108
109endchoice
110
111config BR2_LINUX_KERNEL_DEFCONFIG
112 string "Defconfig name"
113 depends on BR2_LINUX_KERNEL_USE_DEFCONFIG
114 help
Peter Korsgaard95a14f52010-07-18 21:28:03 +0200115 Name of the defconfig file to use, without the trailing
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200116 _defconfig
117
118config BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE
119 string "Configuration file path"
120 depends on BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG
121 help
122 Path to the kernel configuration file
123
124#
125# Binary format
126#
127
128choice
129 prompt "Kernel binary format"
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200130
131config BR2_LINUX_KERNEL_UIMAGE
132 bool "uImage"
Mike Frysinger871db072011-02-07 00:49:11 -0500133 depends on BR2_arm || BR2_armeb || BR2_bfin || BR2_powerpc || BR2_avr32 || BR2_sh || BR2_sh64
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200134
135config BR2_LINUX_KERNEL_BZIMAGE
136 bool "bzImage"
Thomas Petazzonib626dc02010-09-01 15:26:24 +0200137 depends on BR2_i386 || BR2_x86_64
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200138
139config BR2_LINUX_KERNEL_ZIMAGE
140 bool "zImage"
Thomas Petazzonib626dc02010-09-01 15:26:24 +0200141 depends on BR2_arm || BR2_armeb || BR2_powerpc || BR2_sparc || BR2_sh || BR2_sh64 || BR2_xtensa
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200142
Thomas Petazzonib626dc02010-09-01 15:26:24 +0200143config BR2_LINUX_KERNEL_VMLINUX_BIN
144 bool "vmlinux.bin"
145 depends on BR2_mips || BR2_mipsel || BR2_sh || BR2_sh64
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200146
Thomas Petazzoni71c05022010-12-05 21:53:23 +0100147config BR2_LINUX_KERNEL_VMLINUX
148 bool "vmlinux"
149 depends on BR2_mips || BR2_mipsel
150
Martin Hickse2ed6c82011-03-21 13:39:43 -0400151config BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
152 bool "custom target"
153 help
154 For certain cases a board-specific target image must be
155 used. For example, on powerPC where the OpenFirmware
156 description is attached in a board-specific kernel image
157 target like 'cuImage.mpc8379_rdb'.
158
159 Select this option and specify the make target in "Kernel
160 image target name".
161
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200162endchoice
163
Martin Hickse2ed6c82011-03-21 13:39:43 -0400164config BR2_LINUX_KERNEL_IMAGE_TARGET_NAME
165 string "Kernel image target name"
166 depends on BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
167 help
168 Specify the kernel make target to build the kernel that you
169 need.
170
Thomas Petazzonieff25f42011-07-05 21:53:54 +0200171config BR2_LINUX_KERNEL_INSTALL_TARGET
172 bool "Install kernel image to /boot in target"
173 depends on !BR2_TARGET_ROOTFS_INITRAMFS
174 help
175 Select this option to have the kernel image installed to
176 /boot in the target root filesystem, as is typically done on
177 x86/x86_64 systems.
178
Thomas Petazzoni487e21c2010-04-03 18:46:46 +0200179endif # BR2_LINUX_KERNEL
180
181endmenu