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 | 113d5d1 | 2010-09-06 09:39:38 +0200 | [diff] [blame] | 22 | default BR2_LINUX_KERNEL_2_6_35 |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 23 | |
Peter Korsgaard | 113d5d1 | 2010-09-06 09:39:38 +0200 | [diff] [blame] | 24 | config BR2_LINUX_KERNEL_2_6_35 |
Peter Korsgaard | 7e7fce1 | 2010-09-27 09:20:27 +0200 | [diff] [blame] | 25 | bool "2.6.35.6" |
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 | |
| 50 | endchoice |
| 51 | |
| 52 | config BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE |
| 53 | string "Kernel version" |
| 54 | depends on BR2_LINUX_KERNEL_CUSTOM_VERSION |
Peter Korsgaard | 7e7fce1 | 2010-09-27 09:20:27 +0200 | [diff] [blame] | 55 | default "2.6.35.6" |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 56 | |
| 57 | config BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION |
| 58 | string "URL of custom kernel tarball" |
| 59 | depends on BR2_LINUX_KERNEL_CUSTOM_TARBALL |
| 60 | |
| 61 | config BR2_LINUX_KERNEL_VERSION |
| 62 | string |
Peter Korsgaard | 7e7fce1 | 2010-09-27 09:20:27 +0200 | [diff] [blame] | 63 | default "2.6.35.6" if BR2_LINUX_KERNEL_2_6_35 |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 64 | default BR2_DEFAULT_KERNEL_HEADERS if BR2_LINUX_KERNEL_SAME_AS_HEADERS |
| 65 | default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE if BR2_LINUX_KERNEL_CUSTOM_VERSION |
| 66 | default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL |
| 67 | |
| 68 | # |
| 69 | # Patch selection |
| 70 | # |
| 71 | |
| 72 | config BR2_LINUX_KERNEL_PATCH |
| 73 | string "Custom kernel patch" |
| 74 | help |
| 75 | The location can be an URL, a file path, or a directory. In |
| 76 | the case of a directory, all files matching linux-*.patch |
| 77 | will be applied. |
| 78 | |
| 79 | # |
| 80 | # Configuration selection |
| 81 | # |
| 82 | |
| 83 | choice |
| 84 | prompt "Kernel configuration" |
| 85 | default BR2_LINUX_KERNEL_USE_DEFCONFIG |
| 86 | |
| 87 | config BR2_LINUX_KERNEL_USE_DEFCONFIG |
| 88 | bool "Using a defconfig" |
| 89 | |
| 90 | config BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG |
| 91 | bool "Using a custom config file" |
| 92 | |
| 93 | endchoice |
| 94 | |
| 95 | config BR2_LINUX_KERNEL_DEFCONFIG |
| 96 | string "Defconfig name" |
| 97 | depends on BR2_LINUX_KERNEL_USE_DEFCONFIG |
| 98 | help |
Peter Korsgaard | 95a14f5 | 2010-07-18 21:28:03 +0200 | [diff] [blame] | 99 | Name of the defconfig file to use, without the trailing |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 100 | _defconfig |
| 101 | |
| 102 | config BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE |
| 103 | string "Configuration file path" |
| 104 | depends on BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG |
| 105 | help |
| 106 | Path to the kernel configuration file |
| 107 | |
| 108 | # |
| 109 | # Binary format |
| 110 | # |
| 111 | |
| 112 | choice |
| 113 | prompt "Kernel binary format" |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 114 | |
| 115 | config BR2_LINUX_KERNEL_UIMAGE |
| 116 | bool "uImage" |
Thomas Petazzoni | b626dc0 | 2010-09-01 15:26:24 +0200 | [diff] [blame^] | 117 | depends on BR2_arm || BR2_armeb || BR2_powerpc || BR2_avr32 || BR2_sh || BR2_sh64 |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 118 | |
| 119 | config BR2_LINUX_KERNEL_BZIMAGE |
| 120 | bool "bzImage" |
Thomas Petazzoni | b626dc0 | 2010-09-01 15:26:24 +0200 | [diff] [blame^] | 121 | depends on BR2_i386 || BR2_x86_64 |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 122 | |
| 123 | config BR2_LINUX_KERNEL_ZIMAGE |
| 124 | bool "zImage" |
Thomas Petazzoni | b626dc0 | 2010-09-01 15:26:24 +0200 | [diff] [blame^] | 125 | 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] | 126 | |
Thomas Petazzoni | b626dc0 | 2010-09-01 15:26:24 +0200 | [diff] [blame^] | 127 | config BR2_LINUX_KERNEL_VMLINUX_BIN |
| 128 | bool "vmlinux.bin" |
| 129 | depends on BR2_mips || BR2_mipsel || BR2_sh || BR2_sh64 |
Thomas Petazzoni | 487e21c | 2010-04-03 18:46:46 +0200 | [diff] [blame] | 130 | |
| 131 | endchoice |
| 132 | |
| 133 | endif # BR2_LINUX_KERNEL |
| 134 | |
| 135 | endmenu |