Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 1 | menu "Kernel" |
| 2 | |
| 3 | config 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 | |
| 9 | if 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 | # |
| 20 | choice |
| 21 | prompt "Kernel version" |
Gustavo Zacarias | 3173529 | 2012-03-19 07:21:49 -0300 | [diff] [blame] | 22 | default BR2_LINUX_KERNEL_3_3 |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 23 | |
Gustavo Zacarias | 3173529 | 2012-03-19 07:21:49 -0300 | [diff] [blame] | 24 | config BR2_LINUX_KERNEL_3_3 |
Gustavo Zacarias | 35ee096 | 2012-04-29 02:34:01 +0000 | [diff] [blame] | 25 | bool "3.3.4" |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 26 | |
| 27 | config 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 | |
| 38 | config 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 | |
| 44 | config 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 Petazzoni | 205fb19 | 2011-07-11 22:46:11 +0200 | [diff] [blame] | 50 | config 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 Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 56 | endchoice |
| 57 | |
| 58 | config BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE |
| 59 | string "Kernel version" |
| 60 | depends on BR2_LINUX_KERNEL_CUSTOM_VERSION |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 61 | |
| 62 | config BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION |
| 63 | string "URL of custom kernel tarball" |
| 64 | depends on BR2_LINUX_KERNEL_CUSTOM_TARBALL |
| 65 | |
Thomas Petazzoni | 205fb19 | 2011-07-11 22:46:11 +0200 | [diff] [blame] | 66 | config BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL |
| 67 | string "URL of custom Git repository" |
| 68 | depends on BR2_LINUX_KERNEL_CUSTOM_GIT |
| 69 | |
| 70 | config BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION |
| 71 | string "Custom Git version" |
| 72 | depends on BR2_LINUX_KERNEL_CUSTOM_GIT |
| 73 | |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 74 | config BR2_LINUX_KERNEL_VERSION |
| 75 | string |
Gustavo Zacarias | 35ee096 | 2012-04-29 02:34:01 +0000 | [diff] [blame] | 76 | default "3.3.4" if BR2_LINUX_KERNEL_3_3 |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 77 | 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 Petazzoni | 205fb19 | 2011-07-11 22:46:11 +0200 | [diff] [blame] | 80 | default $BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION if BR2_LINUX_KERNEL_CUSTOM_GIT |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 81 | |
| 82 | # |
| 83 | # Patch selection |
| 84 | # |
| 85 | |
| 86 | config BR2_LINUX_KERNEL_PATCH |
Thomas Petazzoni | 55b0a37 | 2010-12-05 21:53:18 +0100 | [diff] [blame] | 87 | string "Custom kernel patches" |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 88 | help |
Thomas Petazzoni | 55b0a37 | 2010-12-05 21:53:18 +0100 | [diff] [blame] | 89 | 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 Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 93 | |
| 94 | # |
| 95 | # Configuration selection |
| 96 | # |
| 97 | |
| 98 | choice |
| 99 | prompt "Kernel configuration" |
| 100 | default BR2_LINUX_KERNEL_USE_DEFCONFIG |
| 101 | |
| 102 | config BR2_LINUX_KERNEL_USE_DEFCONFIG |
| 103 | bool "Using a defconfig" |
| 104 | |
| 105 | config BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG |
| 106 | bool "Using a custom config file" |
| 107 | |
| 108 | endchoice |
| 109 | |
| 110 | config BR2_LINUX_KERNEL_DEFCONFIG |
| 111 | string "Defconfig name" |
| 112 | depends on BR2_LINUX_KERNEL_USE_DEFCONFIG |
| 113 | help |
Peter Korsgaard | 95a14f5 | 2010-07-18 21:28:03 +0200 | [diff] [blame] | 114 | Name of the defconfig file to use, without the trailing |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 115 | _defconfig |
| 116 | |
| 117 | config 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 Hoffmann | aaed42d | 2012-03-17 10:46:55 +0100 | [diff] [blame] | 123 | config 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 Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 131 | # |
| 132 | # Binary format |
| 133 | # |
| 134 | |
| 135 | choice |
| 136 | prompt "Kernel binary format" |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 137 | |
| 138 | config BR2_LINUX_KERNEL_UIMAGE |
| 139 | bool "uImage" |
Mike Frysinger | 871db07 | 2011-02-07 00:49:11 -0500 | [diff] [blame] | 140 | depends on BR2_arm || BR2_armeb || BR2_bfin || BR2_powerpc || BR2_avr32 || BR2_sh || BR2_sh64 |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 141 | |
| 142 | config BR2_LINUX_KERNEL_BZIMAGE |
| 143 | bool "bzImage" |
Thomas Petazzoni | b626dc0 | 2010-09-01 15:26:24 +0200 | [diff] [blame] | 144 | depends on BR2_i386 || BR2_x86_64 |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 145 | |
| 146 | config BR2_LINUX_KERNEL_ZIMAGE |
| 147 | bool "zImage" |
Thomas Petazzoni | b626dc0 | 2010-09-01 15:26:24 +0200 | [diff] [blame] | 148 | depends on BR2_arm || BR2_armeb || BR2_powerpc || BR2_sparc || BR2_sh || BR2_sh64 || BR2_xtensa |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 149 | |
Thomas Petazzoni | b626dc0 | 2010-09-01 15:26:24 +0200 | [diff] [blame] | 150 | config BR2_LINUX_KERNEL_VMLINUX_BIN |
| 151 | bool "vmlinux.bin" |
| 152 | depends on BR2_mips || BR2_mipsel || BR2_sh || BR2_sh64 |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 153 | |
Thomas Petazzoni | 71c0502 | 2010-12-05 21:53:23 +0100 | [diff] [blame] | 154 | config BR2_LINUX_KERNEL_VMLINUX |
| 155 | bool "vmlinux" |
Thomas Petazzoni | 71c0502 | 2010-12-05 21:53:23 +0100 | [diff] [blame] | 156 | |
Kelvin Cheung | c1485d5 | 2011-09-20 17:01:26 +0800 | [diff] [blame] | 157 | config BR2_LINUX_KERNEL_VMLINUZ |
| 158 | bool "vmlinuz" |
| 159 | depends on BR2_mips || BR2_mipsel |
| 160 | |
Martin Hicks | e2ed6c8 | 2011-03-21 13:39:43 -0400 | [diff] [blame] | 161 | config 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 Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 172 | endchoice |
| 173 | |
Martin Hicks | e2ed6c8 | 2011-03-21 13:39:43 -0400 | [diff] [blame] | 174 | config 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 Petazzoni | eff25f4 | 2011-07-05 21:53:54 +0200 | [diff] [blame] | 181 | config 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 Schampheleire | 3011d23 | 2011-09-17 22:22:51 +0200 | [diff] [blame] | 189 | |
| 190 | # Linux extensions |
| 191 | source "linux/Config.ext.in" |
| 192 | |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 193 | endif # BR2_LINUX_KERNEL |
| 194 | |
| 195 | endmenu |