3 config BR2_LINUX_KERNEL
6 Enable this option if you want to build a Linux kernel for
11 # Packages that need to have a kernel with support for loadable modules,
12 # but do not use the kernel-modules infrastructure, should select that
14 config BR2_LINUX_NEEDS_MODULES
18 # Version selection. We provide the choice between:
20 # 1. A single fairly recent stable kernel version
21 # 2. A custom stable version
23 # 4. A set of custom repository locations
26 prompt "Kernel version"
28 config BR2_LINUX_KERNEL_LATEST_VERSION
29 bool "Latest version (4.10.10)"
31 config BR2_LINUX_KERNEL_LATEST_CIP_VERSION
32 bool "Latest CIP SLTS version (v4.4.55-cip3)"
34 CIP launched in the spring of 2016 to address the needs of
35 organizations in industries such as power generation and
36 distribution, water, oil and gas, transportation, building
37 automation and more for reliable and secure Linux-based
38 embedded systems that can be sustained over a period of
39 10 to as many as 60 years.
40 The project's goal is to provide an open source base layer
41 of industrial-grade software that permits the use and
42 implementation of software building blocks that meet
45 The CIP community plans to maintain 4.4 for security and
46 bug fixes for more than 10 years.
48 https://www.cip-project.org
50 config BR2_LINUX_KERNEL_CUSTOM_VERSION
53 This option allows to use a specific official version from
54 kernel.org, like 2.6.x, 2.6.x.y, 3.x.y, ...
56 Note: you cannot use this option to select a _longterm_ 2.6
57 kernel, because these kernels are not located at the standard
58 URL at kernel.org. Instead, select "Custom tarball" and
59 specify the right URL directly.
61 config BR2_LINUX_KERNEL_CUSTOM_TARBALL
64 This option allows to specify a URL pointing to a kernel source
65 tarball. This URL can use any protocol recognized by Buildroot,
66 like http://, ftp://, file:// or scp://.
68 When pointing to a local tarball using file://, you may want to
69 use a make variable like $(TOPDIR) to reference the root of the
72 config BR2_LINUX_KERNEL_CUSTOM_GIT
73 bool "Custom Git repository"
75 This option allows Buildroot to get the Linux kernel source
76 code from a Git repository.
78 config BR2_LINUX_KERNEL_CUSTOM_HG
79 bool "Custom Mercurial repository"
81 This option allows Buildroot to get the Linux kernel source
82 code from a Mercurial repository.
84 config BR2_LINUX_KERNEL_CUSTOM_SVN
85 bool "Custom Subversion repository"
87 This option allows Buildroot to get the Linux kernel source
88 code from a Subversion repository.
92 config BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE
93 string "Kernel version"
94 depends on BR2_LINUX_KERNEL_CUSTOM_VERSION
96 config BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION
97 string "URL of custom kernel tarball"
98 depends on BR2_LINUX_KERNEL_CUSTOM_TARBALL
100 if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG || BR2_LINUX_KERNEL_CUSTOM_SVN
102 config BR2_LINUX_KERNEL_CUSTOM_REPO_URL
103 string "URL of custom repository"
104 default BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL \
105 if BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL != "" # legacy
107 config BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION
108 string "Custom repository version"
109 default BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION \
110 if BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION != "" # legacy
112 Revision to use in the typical format used by Git/Mercurial/Subversion
113 E.G. a sha id, a tag, branch, ..
117 config BR2_LINUX_KERNEL_VERSION
119 default "4.10.10" if BR2_LINUX_KERNEL_LATEST_VERSION
120 default "v4.4.55-cip3" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION
121 default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE \
122 if BR2_LINUX_KERNEL_CUSTOM_VERSION
123 default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
124 default BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION \
125 if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG || BR2_LINUX_KERNEL_CUSTOM_SVN
131 config BR2_LINUX_KERNEL_PATCH
132 string "Custom kernel patches"
134 A space-separated list of patches to apply to the
135 kernel. Each patch can be described as an URL, a local file
136 path, or a directory. In the case of a directory, all files
137 matching *.patch in the directory will be applied.
140 # Configuration selection
144 prompt "Kernel configuration"
145 default BR2_LINUX_KERNEL_USE_DEFCONFIG
147 config BR2_LINUX_KERNEL_USE_DEFCONFIG
148 bool "Using an in-tree defconfig file"
150 config BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG
151 bool "Use the architecture default configuration"
153 This option will use the default configuration for the
154 selected architecture. I.e, it is equivalent to running
155 "make ARCH=<foo> defconfig". This is useful on architectures
156 that have a single defconfig file, such as ARM64.
158 config BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG
159 bool "Using a custom (def)config file"
163 config BR2_LINUX_KERNEL_DEFCONFIG
164 string "Defconfig name"
165 depends on BR2_LINUX_KERNEL_USE_DEFCONFIG
167 Name of the kernel defconfig file to use, without the
168 trailing _defconfig. The defconfig is located in
169 arch/<arch>/configs in the kernel tree.
171 config BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE
172 string "Configuration file path"
173 depends on BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG
175 Path to the kernel configuration file
177 Note: this can be a defconfig file or a complete .config file,
178 which can later be saved back with make linux-update-(def)config.
180 config BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES
181 string "Additional configuration fragment files"
183 A space-separated list of kernel configuration fragment files,
184 that will be merged to the main kernel configuration file.
190 config BR2_LINUX_KERNEL_UBOOT_IMAGE
194 prompt "Kernel binary format"
195 default BR2_LINUX_KERNEL_ZIMAGE if BR2_arm || BR2_armeb
197 config BR2_LINUX_KERNEL_UIMAGE
199 depends on BR2_arc || BR2_arm || BR2_armeb || BR2_bfin || \
200 BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \
201 BR2_sh || BR2_mips || BR2_mipsel || \
202 BR2_mips64 || BR2_mips64el || BR2_xtensa
203 select BR2_LINUX_KERNEL_UBOOT_IMAGE
205 config BR2_LINUX_KERNEL_APPENDED_UIMAGE
206 bool "uImage with appended DT"
207 depends on BR2_arm || BR2_armeb
208 select BR2_LINUX_KERNEL_DTS_SUPPORT
209 select BR2_LINUX_KERNEL_APPENDED_DTB
210 select BR2_LINUX_KERNEL_UBOOT_IMAGE
212 config BR2_LINUX_KERNEL_BZIMAGE
214 depends on BR2_i386 || BR2_x86_64
216 config BR2_LINUX_KERNEL_ZIMAGE
218 depends on BR2_arm || BR2_armeb || BR2_powerpc || \
219 BR2_powerpc64 || BR2_powerpc64le || BR2_sparc || \
222 config BR2_LINUX_KERNEL_ZIMAGE_EPAPR
224 depends on BR2_powerpc64 || BR2_powerpc64le
226 config BR2_LINUX_KERNEL_APPENDED_ZIMAGE
227 bool "zImage with appended DT"
228 depends on BR2_arm || BR2_armeb
229 select BR2_LINUX_KERNEL_DTS_SUPPORT
230 select BR2_LINUX_KERNEL_APPENDED_DTB
232 config BR2_LINUX_KERNEL_CUIMAGE
234 depends on BR2_powerpc
235 select BR2_LINUX_KERNEL_UBOOT_IMAGE
236 select BR2_LINUX_KERNEL_DTS_SUPPORT
237 select BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT
239 config BR2_LINUX_KERNEL_SIMPLEIMAGE
241 depends on BR2_microblaze
242 select BR2_LINUX_KERNEL_UBOOT_IMAGE
243 select BR2_LINUX_KERNEL_DTS_SUPPORT
244 select BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT
246 config BR2_LINUX_KERNEL_IMAGE
248 depends on BR2_aarch64
250 config BR2_LINUX_KERNEL_LINUX_BIN
252 depends on BR2_microblaze
253 select BR2_LINUX_KERNEL_UBOOT_IMAGE
255 config BR2_LINUX_KERNEL_VMLINUX_BIN
257 depends on BR2_mips || BR2_mipsel || BR2_sh
259 config BR2_LINUX_KERNEL_VMLINUX
262 config BR2_LINUX_KERNEL_VMLINUZ
264 depends on BR2_mips || BR2_mipsel
266 config BR2_LINUX_KERNEL_VMLINUZ_BIN
268 depends on BR2_mips || BR2_mipsel
270 config BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
273 For certain cases a board-specific target image must be
274 used. For example, on powerPC where the OpenFirmware
275 description is attached in a board-specific kernel image
276 target like 'cuImage.mpc8379_rdb'.
278 Select this option and specify the make target in "Kernel
284 # Kernel compression format
288 prompt "Kernel compression format"
290 This selection will just ensure that the correct host tools are build.
291 The actual compression for the kernel should be selected in the
292 kernel configuration menu.
294 config BR2_LINUX_KERNEL_GZIP
295 bool "gzip compression"
297 config BR2_LINUX_KERNEL_LZ4
298 bool "lz4 compression"
300 config BR2_LINUX_KERNEL_LZMA
301 bool "lzma compression"
303 config BR2_LINUX_KERNEL_LZO
304 bool "lzo compression"
306 config BR2_LINUX_KERNEL_XZ
307 bool "xz compression"
311 config BR2_LINUX_KERNEL_IMAGE_TARGET_NAME
312 string "Kernel image target name"
313 depends on BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
315 Specify the kernel make target to build the kernel that you
318 config BR2_LINUX_KERNEL_IMAGE_NAME
319 string "Kernel image name"
320 depends on BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
322 The filename of the kernel image, if it is different from the
323 make target (above). Only Xtensa uses a filename different from
324 the make target. Defaults to BR2_LINUX_KERNEL_IMAGE_TARGET_NAME.
326 If unsure, leave it empty.
328 config BR2_LINUX_KERNEL_UIMAGE_LOADADDR
329 string "load address (for 3.7+ multi-platform image)"
330 depends on BR2_arm || BR2_armeb
331 depends on BR2_LINUX_KERNEL_UIMAGE || BR2_LINUX_KERNEL_APPENDED_UIMAGE
333 If your ARM system's Linux kernel is configured with the new (3.7+)
334 multi-architecture support (CONFIG_ARCH_MULTIPLATFORM=y in your
335 kernel config), then it is necessary to specify a kernel load address
336 when building the uImage. This should be a hexadecimal string
337 beginning with 0x, for example: 0x00008000.
339 If unsure, let this option empty.
341 config BR2_LINUX_KERNEL_DTS_SUPPORT
342 bool "Build a Device Tree Blob (DTB)"
344 Compile one or more device tree sources into device tree blobs.
345 Select the dts files to compile in the options below.
347 if BR2_LINUX_KERNEL_DTS_SUPPORT
349 # We have mainly three cases when it comes to device tree support:
350 # 1) We don't want any support at all. Then the ..DTS_SUPPORT
351 # variable won't be set
352 # 2) We want device tree support, so we need the user to enter the
353 # device tree name or the path to the custom device he uses, but
354 # the kernel abstracts this from us and only build an image that
355 # looks like a regular kernel image. In this case, we only need
356 # to derive the kernel image name from the given device tree
357 # name, and all the rest is as usual
358 # 3) We want device tree support, but the kernel requires us to
359 # build the device tree blob separately. In this case, some
360 # more logic will be needed.
361 # The variable below address the second case, were you only want
362 # limited actions from buildroot.
363 config BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT
366 config BR2_LINUX_KERNEL_APPENDED_DTB
370 prompt "Device tree source"
371 default BR2_LINUX_KERNEL_USE_INTREE_DTS
373 config BR2_LINUX_KERNEL_USE_INTREE_DTS
374 bool "Use a device tree present in the kernel."
376 Use a device tree source distributed with
377 the kernel sources. The dts files are located
378 in the arch/<arch>/boot/dts folder.
380 config BR2_LINUX_KERNEL_USE_CUSTOM_DTS
381 bool "Use a custom device tree file"
383 Use a custom device tree file, i.e, a device
384 tree file that does not belong to the kernel
388 config BR2_LINUX_KERNEL_INTREE_DTS_NAME
389 string "Device Tree Source file names"
390 depends on BR2_LINUX_KERNEL_USE_INTREE_DTS
392 Name of the device tree source file, without
393 the trailing .dts. You can provide a list of
394 dts files to build, separated by spaces.
396 config BR2_LINUX_KERNEL_CUSTOM_DTS_PATH
397 string "Device Tree Source file paths"
398 depends on BR2_LINUX_KERNEL_USE_CUSTOM_DTS
400 Path to the device tree source files. You can
401 provide a list of dts paths to copy and build,
406 config BR2_LINUX_KERNEL_INSTALL_TARGET
407 bool "Install kernel image to /boot in target"
408 depends on !BR2_TARGET_ROOTFS_INITRAMFS
410 Select this option to have the kernel image installed to
411 /boot in the target root filesystem, as is typically done on
414 Note that this option also installs the Device Tree Blobs to
415 /boot if DTBs have been generated by the kernel build
419 source "linux/Config.ext.in"
422 source "package/linux-tools/Config.in"
424 endif # BR2_LINUX_KERNEL