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" |
Peter Korsgaard | 7d4f51d | 2011-06-09 10:37:32 +0200 | [diff] [blame] | 22 | default BR2_LINUX_KERNEL_2_6_39 |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 23 | |
Peter Korsgaard | 7d4f51d | 2011-06-09 10:37:32 +0200 | [diff] [blame] | 24 | config BR2_LINUX_KERNEL_2_6_39 |
Peter Korsgaard | a315ee3 | 2011-07-10 20:39:44 +0200 | [diff] [blame] | 25 | bool "2.6.39.3" |
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 |
Peter Korsgaard | a315ee3 | 2011-07-10 20:39:44 +0200 | [diff] [blame] | 61 | default "2.6.39.3" |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 62 | |
| 63 | config BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION |
| 64 | string "URL of custom kernel tarball" |
| 65 | depends on BR2_LINUX_KERNEL_CUSTOM_TARBALL |
| 66 | |
Thomas Petazzoni | 205fb19 | 2011-07-11 22:46:11 +0200 | [diff] [blame^] | 67 | config BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL |
| 68 | string "URL of custom Git repository" |
| 69 | depends on BR2_LINUX_KERNEL_CUSTOM_GIT |
| 70 | |
| 71 | config BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION |
| 72 | string "Custom Git version" |
| 73 | depends on BR2_LINUX_KERNEL_CUSTOM_GIT |
| 74 | |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 75 | config BR2_LINUX_KERNEL_VERSION |
| 76 | string |
Peter Korsgaard | a315ee3 | 2011-07-10 20:39:44 +0200 | [diff] [blame] | 77 | default "2.6.39.3" if BR2_LINUX_KERNEL_2_6_39 |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 78 | 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 Petazzoni | 205fb19 | 2011-07-11 22:46:11 +0200 | [diff] [blame^] | 81 | 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] | 82 | |
| 83 | # |
| 84 | # Patch selection |
| 85 | # |
| 86 | |
| 87 | config BR2_LINUX_KERNEL_PATCH |
Thomas Petazzoni | 55b0a37 | 2010-12-05 21:53:18 +0100 | [diff] [blame] | 88 | string "Custom kernel patches" |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 89 | help |
Thomas Petazzoni | 55b0a37 | 2010-12-05 21:53:18 +0100 | [diff] [blame] | 90 | 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 Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 94 | |
| 95 | # |
| 96 | # Configuration selection |
| 97 | # |
| 98 | |
| 99 | choice |
| 100 | prompt "Kernel configuration" |
| 101 | default BR2_LINUX_KERNEL_USE_DEFCONFIG |
| 102 | |
| 103 | config BR2_LINUX_KERNEL_USE_DEFCONFIG |
| 104 | bool "Using a defconfig" |
| 105 | |
| 106 | config BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG |
| 107 | bool "Using a custom config file" |
| 108 | |
| 109 | endchoice |
| 110 | |
| 111 | config BR2_LINUX_KERNEL_DEFCONFIG |
| 112 | string "Defconfig name" |
| 113 | depends on BR2_LINUX_KERNEL_USE_DEFCONFIG |
| 114 | help |
Peter Korsgaard | 95a14f5 | 2010-07-18 21:28:03 +0200 | [diff] [blame] | 115 | Name of the defconfig file to use, without the trailing |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 116 | _defconfig |
| 117 | |
| 118 | config 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 | |
| 128 | choice |
| 129 | prompt "Kernel binary format" |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 130 | |
| 131 | config BR2_LINUX_KERNEL_UIMAGE |
| 132 | bool "uImage" |
Mike Frysinger | 871db07 | 2011-02-07 00:49:11 -0500 | [diff] [blame] | 133 | 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] | 134 | |
| 135 | config BR2_LINUX_KERNEL_BZIMAGE |
| 136 | bool "bzImage" |
Thomas Petazzoni | b626dc0 | 2010-09-01 15:26:24 +0200 | [diff] [blame] | 137 | depends on BR2_i386 || BR2_x86_64 |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 138 | |
| 139 | config BR2_LINUX_KERNEL_ZIMAGE |
| 140 | bool "zImage" |
Thomas Petazzoni | b626dc0 | 2010-09-01 15:26:24 +0200 | [diff] [blame] | 141 | 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] | 142 | |
Thomas Petazzoni | b626dc0 | 2010-09-01 15:26:24 +0200 | [diff] [blame] | 143 | config BR2_LINUX_KERNEL_VMLINUX_BIN |
| 144 | bool "vmlinux.bin" |
| 145 | depends on BR2_mips || BR2_mipsel || BR2_sh || BR2_sh64 |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 146 | |
Thomas Petazzoni | 71c0502 | 2010-12-05 21:53:23 +0100 | [diff] [blame] | 147 | config BR2_LINUX_KERNEL_VMLINUX |
| 148 | bool "vmlinux" |
| 149 | depends on BR2_mips || BR2_mipsel |
| 150 | |
Martin Hicks | e2ed6c8 | 2011-03-21 13:39:43 -0400 | [diff] [blame] | 151 | config 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 Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 162 | endchoice |
| 163 | |
Martin Hicks | e2ed6c8 | 2011-03-21 13:39:43 -0400 | [diff] [blame] | 164 | config 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 Petazzoni | eff25f4 | 2011-07-05 21:53:54 +0200 | [diff] [blame] | 171 | config 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 Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 179 | endif # BR2_LINUX_KERNEL |
| 180 | |
| 181 | endmenu |