Config-kernel.in 17 KB

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