Config-kernel.in 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  1. # Copyright (C) 2006-2014 OpenWrt.org
  2. #
  3. # This is free software, licensed under the GNU General Public License v2.
  4. # See /LICENSE for more information.
  5. #
  6. config KERNEL_BUILD_USER
  7. string "Custom Kernel Build User Name"
  8. default ""
  9. help
  10. Sets the Kernel build user string, which for example will be returned
  11. by 'uname -a' on running systems.
  12. If not set, uses system user at build time.
  13. config KERNEL_BUILD_DOMAIN
  14. string "Custom Kernel Build Domain Name"
  15. default ""
  16. help
  17. Sets the Kernel build domain string, which for example will be
  18. returned by 'uname -a' on running systems.
  19. If not set, uses system hostname at build time.
  20. config KERNEL_PRINTK
  21. bool "Enable support for printk"
  22. default y
  23. config KERNEL_CRASHLOG
  24. bool "Crash logging"
  25. depends on !(arm || powerpc || sparc || TARGET_uml)
  26. default y
  27. config KERNEL_SWAP
  28. bool "Support for paging of anonymous memory (swap)"
  29. default y
  30. config KERNEL_DEBUG_FS
  31. bool "Compile the kernel with debug filesystem enabled"
  32. default y
  33. help
  34. debugfs is a virtual file system that kernel developers use to put
  35. debugging files into. Enable this option to be able to read and
  36. write to these files. Many common debugging facilities, such as
  37. ftrace, require the existence of debugfs.
  38. config KERNEL_PERF_EVENTS
  39. bool
  40. default n
  41. config KERNEL_PROFILING
  42. bool "Compile the kernel with profiling enabled"
  43. default n
  44. select KERNEL_PERF_EVENTS
  45. help
  46. Enable the extended profiling support mechanisms used by profilers such
  47. as OProfile.
  48. config KERNEL_KALLSYMS
  49. bool "Compile the kernel with symbol table information"
  50. default y
  51. help
  52. This will give you more information in stack traces from kernel oopses.
  53. config KERNEL_FTRACE
  54. bool "Compile the kernel with tracing support"
  55. depends on !TARGET_uml
  56. default n
  57. config KERNEL_FTRACE_SYSCALLS
  58. bool "Trace system calls"
  59. depends on KERNEL_FTRACE
  60. default n
  61. config KERNEL_ENABLE_DEFAULT_TRACERS
  62. bool "Trace process context switches and events"
  63. depends on KERNEL_FTRACE
  64. default n
  65. config KERNEL_FUNCTION_TRACER
  66. bool "Function tracer"
  67. depends on KERNEL_FTRACE
  68. default n
  69. config KERNEL_FUNCTION_GRAPH_TRACER
  70. bool "Function graph tracer"
  71. depends on KERNEL_FUNCTION_TRACER
  72. default n
  73. config KERNEL_DYNAMIC_FTRACE
  74. bool "Enable/disable function tracing dynamically"
  75. depends on KERNEL_FUNCTION_TRACER
  76. default n
  77. config KERNEL_FUNCTION_PROFILER
  78. bool "Function profiler"
  79. depends on KERNEL_FUNCTION_TRACER
  80. default n
  81. config KERNEL_DEBUG_KERNEL
  82. bool
  83. default n
  84. config KERNEL_DEBUG_INFO
  85. bool "Compile the kernel with debug information"
  86. default y
  87. select KERNEL_DEBUG_KERNEL
  88. help
  89. This will compile your kernel and modules with debug information.
  90. config KERNEL_DEBUG_LL_UART_NONE
  91. bool
  92. default n
  93. depends on arm
  94. config KERNEL_DEBUG_LL
  95. bool
  96. default n
  97. depends on arm
  98. select KERNEL_DEBUG_LL_UART_NONE
  99. help
  100. ARM low level debugging.
  101. config KERNEL_DYNAMIC_DEBUG
  102. bool "Compile the kernel with dynamic printk"
  103. select KERNEL_DEBUG_FS
  104. default n
  105. help
  106. Compiles debug level messages into the kernel, which would not
  107. otherwise be available at runtime. These messages can then be
  108. enabled/disabled based on various levels of scope - per source file,
  109. function, module, format string, and line number. This mechanism
  110. implicitly compiles in all pr_debug() and dev_dbg() calls, which
  111. enlarges the kernel text size by about 2%.
  112. config KERNEL_EARLY_PRINTK
  113. bool "Compile the kernel with early printk"
  114. default y if TARGET_bcm53xx
  115. default n
  116. depends on arm
  117. select KERNEL_DEBUG_KERNEL
  118. select KERNEL_DEBUG_LL if arm
  119. help
  120. Compile the kernel with early printk support. This is only useful for
  121. debugging purposes to send messages over the serial console in early boot.
  122. Enable this to debug early boot problems.
  123. config KERNEL_KPROBES
  124. bool "Compile the kernel with kprobes support"
  125. default n
  126. select KERNEL_FTRACE
  127. select KERNEL_PERF_EVENTS
  128. help
  129. Compiles the kernel with KPROBES support, which allows you to trap
  130. at almost any kernel address and execute a callback function.
  131. register_kprobe() establishes a probepoint and specifies the
  132. callback. Kprobes is useful for kernel debugging, non-intrusive
  133. instrumentation and testing.
  134. If in doubt, say "N".
  135. config KERNEL_KPROBE_EVENT
  136. bool
  137. default y if KERNEL_KPROBES
  138. config KERNEL_AIO
  139. bool "Compile the kernel with asynchronous IO support"
  140. default n
  141. config KERNEL_DIRECT_IO
  142. bool "Compile the kernel with direct IO support"
  143. default n
  144. config KERNEL_FHANDLE
  145. bool "Compile the kernel with support for fhandle syscalls"
  146. default n
  147. config KERNEL_FANOTIFY
  148. bool "Compile the kernel with modern file notification support"
  149. default n
  150. config KERNEL_BLK_DEV_BSG
  151. bool "Compile the kernel with SCSI generic v4 support for any block device"
  152. default n
  153. config KERNEL_MAGIC_SYSRQ
  154. bool "Compile the kernel with SysRq support"
  155. default y
  156. config KERNEL_COREDUMP
  157. bool
  158. config KERNEL_ELF_CORE
  159. bool "Enable process core dump support"
  160. select KERNEL_COREDUMP
  161. default y
  162. config KERNEL_PROVE_LOCKING
  163. bool "Enable kernel lock checking"
  164. select KERNEL_DEBUG_KERNEL
  165. default n
  166. config KERNEL_PRINTK_TIME
  167. bool "Enable printk timestamps"
  168. default y
  169. config KERNEL_SLUB_DEBUG
  170. bool
  171. config KERNEL_SLUB_DEBUG_ON
  172. bool
  173. config KERNEL_SLABINFO
  174. select KERNEL_SLUB_DEBUG
  175. select KERNEL_SLUB_DEBUG_ON
  176. bool "Enable /proc slab debug info"
  177. config KERNEL_PROC_PAGE_MONITOR
  178. bool "Enable /proc page monitoring"
  179. config KERNEL_RELAY
  180. bool
  181. config KERNEL_KEXEC
  182. bool "Enable kexec support"
  183. config USE_RFKILL
  184. bool "Enable rfkill support"
  185. default RFKILL_SUPPORT
  186. config USE_SPARSE
  187. bool "Enable sparse check during kernel build"
  188. default n
  189. config KERNEL_DEVTMPFS
  190. bool "Compile the kernel with device tmpfs enabled"
  191. default n
  192. help
  193. devtmpfs is a simple, kernel-managed /dev filesystem. The kernel creates
  194. devices nodes for all registered devices ti simplify boot, but leaves more
  195. complex tasks to userspace (e.g. udev).
  196. if KERNEL_DEVTMPFS
  197. config KERNEL_DEVTMPFS_MOUNT
  198. bool "Automatically mount devtmpfs after root filesystem is mounted"
  199. default n
  200. endif
  201. #
  202. # CGROUP support symbols
  203. #
  204. config KERNEL_CGROUPS
  205. bool "Enable kernel cgroups"
  206. default n
  207. if KERNEL_CGROUPS
  208. config KERNEL_CGROUP_DEBUG
  209. bool "Example debug cgroup subsystem"
  210. default n
  211. help
  212. This option enables a simple cgroup subsystem that
  213. exports useful debugging information about the cgroups
  214. framework.
  215. config KERNEL_FREEZER
  216. bool
  217. default y if KERNEL_CGROUP_FREEZER
  218. config KERNEL_CGROUP_FREEZER
  219. bool "Freezer cgroup subsystem"
  220. default y
  221. help
  222. Provides a way to freeze and unfreeze all tasks in a
  223. cgroup.
  224. config KERNEL_CGROUP_DEVICE
  225. bool "Device controller for cgroups"
  226. default y
  227. help
  228. Provides a cgroup implementing whitelists for devices which
  229. a process in the cgroup can mknod or open.
  230. config KERNEL_CGROUP_PIDS
  231. bool "PIDs cgroup subsystem"
  232. default y
  233. help
  234. Provides enforcement of process number limits in the scope of a
  235. cgroup.
  236. config KERNEL_CPUSETS
  237. bool "Cpuset support"
  238. default n
  239. help
  240. This option will let you create and manage CPUSETs which
  241. allow dynamically partitioning a system into sets of CPUs and
  242. Memory Nodes and assigning tasks to run only within those sets.
  243. This is primarily useful on large SMP or NUMA systems.
  244. config KERNEL_PROC_PID_CPUSET
  245. bool "Include legacy /proc/<pid>/cpuset file"
  246. default n
  247. depends on KERNEL_CPUSETS
  248. config KERNEL_CGROUP_CPUACCT
  249. bool "Simple CPU accounting cgroup subsystem"
  250. default n
  251. help
  252. Provides a simple Resource Controller for monitoring the
  253. total CPU consumed by the tasks in a cgroup.
  254. config KERNEL_RESOURCE_COUNTERS
  255. bool "Resource counters"
  256. default n
  257. help
  258. This option enables controller independent resource accounting
  259. infrastructure that works with cgroups.
  260. config KERNEL_MM_OWNER
  261. bool
  262. default y if KERNEL_MEMCG
  263. config KERNEL_MEMCG
  264. bool "Memory Resource Controller for Control Groups"
  265. default n
  266. depends on KERNEL_RESOURCE_COUNTERS || !LINUX_3_18
  267. help
  268. Provides a memory resource controller that manages both anonymous
  269. memory and page cache. (See Documentation/cgroups/memory.txt)
  270. Note that setting this option increases fixed memory overhead
  271. associated with each page of memory in the system. By this,
  272. 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
  273. usage tracking struct at boot. Total amount of this is printed out
  274. at boot.
  275. Only enable when you're ok with these tradeoffs and really
  276. sure you need the memory resource controller. Even when you enable
  277. this, you can set "cgroup_disable=memory" at your boot option to
  278. disable memory resource controller and you can avoid overheads
  279. (but lose benefits of memory resource controller).
  280. This config option also selects MM_OWNER config option, which
  281. could in turn add some fork/exit overhead.
  282. config KERNEL_MEMCG_SWAP
  283. bool "Memory Resource Controller Swap Extension"
  284. default n
  285. depends on KERNEL_MEMCG
  286. help
  287. Add swap management feature to memory resource controller. When you
  288. enable this, you can limit mem+swap usage per cgroup. In other words,
  289. when you disable this, memory resource controller has no cares to
  290. usage of swap...a process can exhaust all of the swap. This extension
  291. is useful when you want to avoid exhaustion swap but this itself
  292. adds more overheads and consumes memory for remembering information.
  293. Especially if you use 32bit system or small memory system, please
  294. be careful about enabling this. When memory resource controller
  295. is disabled by boot option, this will be automatically disabled and
  296. there will be no overhead from this. Even when you set this config=y,
  297. if boot option "swapaccount=0" is set, swap will not be accounted.
  298. Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
  299. size is 4096bytes, 512k per 1Gbytes of swap.
  300. config KERNEL_MEMCG_SWAP_ENABLED
  301. bool "Memory Resource Controller Swap Extension enabled by default"
  302. default n
  303. depends on KERNEL_MEMCG_SWAP
  304. help
  305. Memory Resource Controller Swap Extension comes with its price in
  306. a bigger memory consumption. General purpose distribution kernels
  307. which want to enable the feature but keep it disabled by default
  308. and let the user enable it by swapaccount boot command line
  309. parameter should have this option unselected.
  310. Those who want to have the feature enabled by default should
  311. select this option (if, for some reason, they need to disable it,
  312. then swapaccount=0 does the trick).
  313. config KERNEL_MEMCG_KMEM
  314. bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
  315. default n
  316. depends on KERNEL_MEMCG
  317. help
  318. The Kernel Memory extension for Memory Resource Controller can limit
  319. the amount of memory used by kernel objects in the system. Those are
  320. fundamentally different from the entities handled by the standard
  321. Memory Controller, which are page-based, and can be swapped. Users of
  322. the kmem extension can use it to guarantee that no group of processes
  323. will ever exhaust kernel resources alone.
  324. config KERNEL_CGROUP_PERF
  325. bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
  326. select KERNEL_PERF_EVENTS
  327. default n
  328. help
  329. This option extends the per-cpu mode to restrict monitoring to
  330. threads which belong to the cgroup specified and run on the
  331. designated cpu.
  332. menuconfig KERNEL_CGROUP_SCHED
  333. bool "Group CPU scheduler"
  334. default n
  335. help
  336. This feature lets CPU scheduler recognize task groups and control CPU
  337. bandwidth allocation to such task groups. It uses cgroups to group
  338. tasks.
  339. if KERNEL_CGROUP_SCHED
  340. config KERNEL_FAIR_GROUP_SCHED
  341. bool "Group scheduling for SCHED_OTHER"
  342. default n
  343. config KERNEL_CFS_BANDWIDTH
  344. bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
  345. default n
  346. depends on KERNEL_FAIR_GROUP_SCHED
  347. help
  348. This option allows users to define CPU bandwidth rates (limits) for
  349. tasks running within the fair group scheduler. Groups with no limit
  350. set are considered to be unconstrained and will run with no
  351. restriction.
  352. See tip/Documentation/scheduler/sched-bwc.txt for more information.
  353. config KERNEL_RT_GROUP_SCHED
  354. bool "Group scheduling for SCHED_RR/FIFO"
  355. default n
  356. help
  357. This feature lets you explicitly allocate real CPU bandwidth
  358. to task groups. If enabled, it will also make it impossible to
  359. schedule realtime tasks for non-root users until you allocate
  360. realtime bandwidth for them.
  361. endif
  362. config KERNEL_BLK_CGROUP
  363. bool "Block IO controller"
  364. default y
  365. help
  366. Generic block IO controller cgroup interface. This is the common
  367. cgroup interface which should be used by various IO controlling
  368. policies.
  369. Currently, CFQ IO scheduler uses it to recognize task groups and
  370. control disk bandwidth allocation (proportional time slice allocation)
  371. to such task groups. It is also used by bio throttling logic in
  372. block layer to implement upper limit in IO rates on a device.
  373. This option only enables generic Block IO controller infrastructure.
  374. One needs to also enable actual IO controlling logic/policy. For
  375. enabling proportional weight division of disk bandwidth in CFQ, set
  376. CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
  377. CONFIG_BLK_DEV_THROTTLING=y.
  378. config KERNEL_DEBUG_BLK_CGROUP
  379. bool "Enable Block IO controller debugging"
  380. default n
  381. depends on KERNEL_BLK_CGROUP
  382. help
  383. Enable some debugging help. Currently it exports additional stat
  384. files in a cgroup which can be useful for debugging.
  385. config KERNEL_NET_CLS_CGROUP
  386. bool "Control Group Classifier"
  387. default y
  388. config KERNEL_NETPRIO_CGROUP
  389. bool "Network priority cgroup"
  390. default y
  391. endif
  392. #
  393. # Namespace support symbols
  394. #
  395. config KERNEL_NAMESPACES
  396. bool "Enable kernel namespaces"
  397. default n
  398. if KERNEL_NAMESPACES
  399. config KERNEL_UTS_NS
  400. bool "UTS namespace"
  401. default y
  402. help
  403. In this namespace, tasks see different info provided
  404. with the uname() system call.
  405. config KERNEL_IPC_NS
  406. bool "IPC namespace"
  407. default y
  408. help
  409. In this namespace, tasks work with IPC ids which correspond to
  410. different IPC objects in different namespaces.
  411. config KERNEL_USER_NS
  412. bool "User namespace (EXPERIMENTAL)"
  413. default y
  414. help
  415. This allows containers, i.e. vservers, to use user namespaces
  416. to provide different user info for different servers.
  417. config KERNEL_PID_NS
  418. bool "PID Namespaces"
  419. default y
  420. help
  421. Support process id namespaces. This allows having multiple
  422. processes with the same pid as long as they are in different
  423. pid namespaces. This is a building block of containers.
  424. config KERNEL_NET_NS
  425. bool "Network namespace"
  426. default y
  427. help
  428. Allow user space to create what appear to be multiple instances
  429. of the network stack.
  430. endif
  431. #
  432. # LXC related symbols
  433. #
  434. config KERNEL_LXC_MISC
  435. bool "Enable miscellaneous LXC related options"
  436. default n
  437. if KERNEL_LXC_MISC
  438. config KERNEL_DEVPTS_MULTIPLE_INSTANCES
  439. bool "Support multiple instances of devpts"
  440. default y
  441. help
  442. Enable support for multiple instances of devpts filesystem.
  443. If you want to have isolated PTY namespaces (eg: in containers),
  444. say Y here. Otherwise, say N. If enabled, each mount of devpts
  445. filesystem with the '-o newinstance' option will create an
  446. independent PTY namespace.
  447. config KERNEL_POSIX_MQUEUE
  448. bool "POSIX Message Queues"
  449. default y
  450. help
  451. POSIX variant of message queues is a part of IPC. In POSIX message
  452. queues every message has a priority which decides about succession
  453. of receiving it by a process. If you want to compile and run
  454. programs written e.g. for Solaris with use of its POSIX message
  455. queues (functions mq_*) say Y here.
  456. POSIX message queues are visible as a filesystem called 'mqueue'
  457. and can be mounted somewhere if you want to do filesystem
  458. operations on message queues.
  459. endif
  460. config KERNEL_SECCOMP_FILTER
  461. bool
  462. default n
  463. config KERNEL_SECCOMP
  464. bool "Enable seccomp support"
  465. depends on !(TARGET_uml)
  466. select KERNEL_SECCOMP_FILTER
  467. default n
  468. help
  469. Build kernel with support for seccomp.
  470. #
  471. # IPv6 configuration
  472. #
  473. config KERNEL_IPV6
  474. def_bool IPV6
  475. if KERNEL_IPV6
  476. config KERNEL_IPV6_MULTIPLE_TABLES
  477. def_bool y
  478. config KERNEL_IPV6_SUBTREES
  479. def_bool y
  480. config KERNEL_IPV6_MROUTE
  481. def_bool y
  482. config KERNEL_IPV6_PIMSM_V2
  483. def_bool n
  484. endif
  485. #
  486. # NFS related symbols
  487. #
  488. config KERNEL_IP_PNP
  489. bool "Compile the kernel with rootfs on NFS"
  490. help
  491. If you want to make your kernel boot off a NFS server as root
  492. filesystem, select Y here.
  493. if KERNEL_IP_PNP
  494. config KERNEL_IP_PNP_DHCP
  495. def_bool y
  496. config KERNEL_IP_PNP_BOOTP
  497. def_bool n
  498. config KERNEL_IP_PNP_RARP
  499. def_bool n
  500. config KERNEL_NFS_FS
  501. def_bool y
  502. config KERNEL_NFS_V2
  503. def_bool y
  504. config KERNEL_NFS_V3
  505. def_bool y
  506. config KERNEL_ROOT_NFS
  507. def_bool y
  508. endif