umdns: update to the version 2017-03-21
[openwrt/openwrt.git] / config / Config-kernel.in
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
7 config KERNEL_BUILD_USER
8 string "Custom Kernel Build User Name"
9 default ""
10 help
11 Sets the Kernel build user string, which for example will be returned
12 by 'uname -a' on running systems.
13 If not set, uses system user at build time.
14
15 config KERNEL_BUILD_DOMAIN
16 string "Custom Kernel Build Domain Name"
17 default ""
18 help
19 Sets the Kernel build domain string, which for example will be
20 returned by 'uname -a' on running systems.
21 If not set, uses system hostname at build time.
22
23 config KERNEL_PRINTK
24 bool "Enable support for printk"
25 default y
26
27 config KERNEL_CRASHLOG
28 bool "Crash logging"
29 depends on !(arm || powerpc || sparc || TARGET_uml || i386 || x86_64)
30 default y
31
32 config KERNEL_SWAP
33 bool "Support for paging of anonymous memory (swap)"
34 default y
35
36 config KERNEL_DEBUG_FS
37 bool "Compile the kernel with debug filesystem enabled"
38 default y
39 help
40 debugfs is a virtual file system that kernel developers use to put
41 debugging files into. Enable this option to be able to read and
42 write to these files. Many common debugging facilities, such as
43 ftrace, require the existence of debugfs.
44
45 config KERNEL_ARM_PMU
46 bool
47 default n
48 depends on (arm || arm64)
49
50 config KERNEL_PERF_EVENTS
51 bool
52 default n
53 select KERNEL_ARM_PMU if (arm || arm64)
54
55 config KERNEL_PROFILING
56 bool "Compile the kernel with profiling enabled"
57 default n
58 select KERNEL_PERF_EVENTS
59 help
60 Enable the extended profiling support mechanisms used by profilers such
61 as OProfile.
62
63 config KERNEL_KALLSYMS
64 bool "Compile the kernel with symbol table information"
65 default y if !SMALL_FLASH
66 help
67 This will give you more information in stack traces from kernel oopses.
68
69 config KERNEL_FTRACE
70 bool "Compile the kernel with tracing support"
71 depends on !TARGET_uml
72 default n
73
74 config KERNEL_FTRACE_SYSCALLS
75 bool "Trace system calls"
76 depends on KERNEL_FTRACE
77 default n
78
79 config KERNEL_ENABLE_DEFAULT_TRACERS
80 bool "Trace process context switches and events"
81 depends on KERNEL_FTRACE
82 default n
83
84 config KERNEL_FUNCTION_TRACER
85 bool "Function tracer"
86 depends on KERNEL_FTRACE
87 default n
88
89 config KERNEL_FUNCTION_GRAPH_TRACER
90 bool "Function graph tracer"
91 depends on KERNEL_FUNCTION_TRACER
92 default n
93
94 config KERNEL_DYNAMIC_FTRACE
95 bool "Enable/disable function tracing dynamically"
96 depends on KERNEL_FUNCTION_TRACER
97 default n
98
99 config KERNEL_FUNCTION_PROFILER
100 bool "Function profiler"
101 depends on KERNEL_FUNCTION_TRACER
102 default n
103
104 config KERNEL_DEBUG_KERNEL
105 bool
106 default n
107
108 config KERNEL_DEBUG_INFO
109 bool "Compile the kernel with debug information"
110 default y
111 select KERNEL_DEBUG_KERNEL
112 help
113 This will compile your kernel and modules with debug information.
114
115 config KERNEL_DEBUG_LL_UART_NONE
116 bool
117 default n
118 depends on arm
119
120 config KERNEL_DEBUG_LL
121 bool
122 default n
123 depends on arm
124 select KERNEL_DEBUG_LL_UART_NONE
125 help
126 ARM low level debugging.
127
128 config KERNEL_DYNAMIC_DEBUG
129 bool "Compile the kernel with dynamic printk"
130 select KERNEL_DEBUG_FS
131 default n
132 help
133 Compiles debug level messages into the kernel, which would not
134 otherwise be available at runtime. These messages can then be
135 enabled/disabled based on various levels of scope - per source file,
136 function, module, format string, and line number. This mechanism
137 implicitly compiles in all pr_debug() and dev_dbg() calls, which
138 enlarges the kernel text size by about 2%.
139
140 config KERNEL_EARLY_PRINTK
141 bool "Compile the kernel with early printk"
142 default y if TARGET_bcm53xx
143 default n
144 depends on arm
145 select KERNEL_DEBUG_KERNEL
146 select KERNEL_DEBUG_LL if arm
147 help
148 Compile the kernel with early printk support. This is only useful for
149 debugging purposes to send messages over the serial console in early boot.
150 Enable this to debug early boot problems.
151
152 config KERNEL_KPROBES
153 bool "Compile the kernel with kprobes support"
154 default n
155 select KERNEL_FTRACE
156 select KERNEL_PERF_EVENTS
157 help
158 Compiles the kernel with KPROBES support, which allows you to trap
159 at almost any kernel address and execute a callback function.
160 register_kprobe() establishes a probepoint and specifies the
161 callback. Kprobes is useful for kernel debugging, non-intrusive
162 instrumentation and testing.
163 If in doubt, say "N".
164
165 config KERNEL_KPROBE_EVENT
166 bool
167 default y if KERNEL_KPROBES
168
169 config KERNEL_AIO
170 bool "Compile the kernel with asynchronous IO support"
171 default n
172
173 config KERNEL_DIRECT_IO
174 bool "Compile the kernel with direct IO support"
175 default n
176
177 config KERNEL_FHANDLE
178 bool "Compile the kernel with support for fhandle syscalls"
179 default n
180
181 config KERNEL_FANOTIFY
182 bool "Compile the kernel with modern file notification support"
183 default n
184
185 config KERNEL_BLK_DEV_BSG
186 bool "Compile the kernel with SCSI generic v4 support for any block device"
187 default n
188
189 config KERNEL_MAGIC_SYSRQ
190 bool "Compile the kernel with SysRq support"
191 default y
192
193 config KERNEL_DEBUG_PINCTRL
194 bool "Compile the kernel with pinctrl debugging"
195 select KERNEL_DEBUG_KERNEL
196
197 config KERNEL_DEBUG_GPIO
198 bool "Compile the kernel with gpio debugging"
199 select KERNEL_DEBUG_KERNEL
200
201 config KERNEL_COREDUMP
202 bool
203
204 config KERNEL_ELF_CORE
205 bool "Enable process core dump support"
206 select KERNEL_COREDUMP
207 default y
208
209 config KERNEL_PROVE_LOCKING
210 bool "Enable kernel lock checking"
211 select KERNEL_DEBUG_KERNEL
212 default n
213
214 config KERNEL_PRINTK_TIME
215 bool "Enable printk timestamps"
216 default y
217
218 config KERNEL_SLUB_DEBUG
219 bool
220
221 config KERNEL_SLUB_DEBUG_ON
222 bool
223
224 config KERNEL_SLABINFO
225 select KERNEL_SLUB_DEBUG
226 select KERNEL_SLUB_DEBUG_ON
227 bool "Enable /proc slab debug info"
228
229 config KERNEL_PROC_PAGE_MONITOR
230 bool "Enable /proc page monitoring"
231
232 config KERNEL_RELAY
233 bool
234
235 config KERNEL_KEXEC
236 bool "Enable kexec support"
237
238 config USE_RFKILL
239 bool "Enable rfkill support"
240 default RFKILL_SUPPORT
241
242 config USE_SPARSE
243 bool "Enable sparse check during kernel build"
244 default n
245
246 config KERNEL_DEVTMPFS
247 bool "Compile the kernel with device tmpfs enabled"
248 default n
249 help
250 devtmpfs is a simple, kernel-managed /dev filesystem. The kernel creates
251 devices nodes for all registered devices ti simplify boot, but leaves more
252 complex tasks to userspace (e.g. udev).
253
254 if KERNEL_DEVTMPFS
255
256 config KERNEL_DEVTMPFS_MOUNT
257 bool "Automatically mount devtmpfs after root filesystem is mounted"
258 default n
259
260 endif
261
262 config KERNEL_KEYS
263 bool "Enable kernel access key retention support"
264 default n
265
266 config KERNEL_PERSISTENT_KEYRINGS
267 bool "Enable kernel persistent keyrings"
268 depends on KERNEL_KEYS
269 default n
270
271 config KERNEL_BIG_KEYS
272 bool "Enable large payload keys on kernel keyrings"
273 depends on KERNEL_KEYS
274 default n
275
276 config KERNEL_ENCRYPTED_KEYS
277 tristate "Enable keys with encrypted payloads on kernel keyrings"
278 depends on KERNEL_KEYS
279 default n
280
281 #
282 # CGROUP support symbols
283 #
284
285 config KERNEL_CGROUPS
286 bool "Enable kernel cgroups"
287 default n
288
289 if KERNEL_CGROUPS
290
291 config KERNEL_CGROUP_DEBUG
292 bool "Example debug cgroup subsystem"
293 default n
294 help
295 This option enables a simple cgroup subsystem that
296 exports useful debugging information about the cgroups
297 framework.
298
299 config KERNEL_FREEZER
300 bool
301 default y if KERNEL_CGROUP_FREEZER
302
303 config KERNEL_CGROUP_FREEZER
304 bool "Freezer cgroup subsystem"
305 default y
306 help
307 Provides a way to freeze and unfreeze all tasks in a
308 cgroup.
309
310 config KERNEL_CGROUP_DEVICE
311 bool "Device controller for cgroups"
312 default y
313 help
314 Provides a cgroup implementing whitelists for devices which
315 a process in the cgroup can mknod or open.
316
317 config KERNEL_CGROUP_PIDS
318 bool "PIDs cgroup subsystem"
319 default y
320 help
321 Provides enforcement of process number limits in the scope of a
322 cgroup.
323
324 config KERNEL_CPUSETS
325 bool "Cpuset support"
326 default n
327 help
328 This option will let you create and manage CPUSETs which
329 allow dynamically partitioning a system into sets of CPUs and
330 Memory Nodes and assigning tasks to run only within those sets.
331 This is primarily useful on large SMP or NUMA systems.
332
333 config KERNEL_PROC_PID_CPUSET
334 bool "Include legacy /proc/<pid>/cpuset file"
335 default n
336 depends on KERNEL_CPUSETS
337
338 config KERNEL_CGROUP_CPUACCT
339 bool "Simple CPU accounting cgroup subsystem"
340 default n
341 help
342 Provides a simple Resource Controller for monitoring the
343 total CPU consumed by the tasks in a cgroup.
344
345 config KERNEL_RESOURCE_COUNTERS
346 bool "Resource counters"
347 default n
348 help
349 This option enables controller independent resource accounting
350 infrastructure that works with cgroups.
351
352 config KERNEL_MM_OWNER
353 bool
354 default y if KERNEL_MEMCG
355
356 config KERNEL_MEMCG
357 bool "Memory Resource Controller for Control Groups"
358 default n
359 depends on KERNEL_RESOURCE_COUNTERS || !LINUX_3_18
360 help
361 Provides a memory resource controller that manages both anonymous
362 memory and page cache. (See Documentation/cgroups/memory.txt)
363
364 Note that setting this option increases fixed memory overhead
365 associated with each page of memory in the system. By this,
366 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
367 usage tracking struct at boot. Total amount of this is printed out
368 at boot.
369
370 Only enable when you're ok with these tradeoffs and really
371 sure you need the memory resource controller. Even when you enable
372 this, you can set "cgroup_disable=memory" at your boot option to
373 disable memory resource controller and you can avoid overheads
374 (but lose benefits of memory resource controller).
375
376 This config option also selects MM_OWNER config option, which
377 could in turn add some fork/exit overhead.
378
379 config KERNEL_MEMCG_SWAP
380 bool "Memory Resource Controller Swap Extension"
381 default n
382 depends on KERNEL_MEMCG
383 help
384 Add swap management feature to memory resource controller. When you
385 enable this, you can limit mem+swap usage per cgroup. In other words,
386 when you disable this, memory resource controller has no cares to
387 usage of swap...a process can exhaust all of the swap. This extension
388 is useful when you want to avoid exhaustion swap but this itself
389 adds more overheads and consumes memory for remembering information.
390 Especially if you use 32bit system or small memory system, please
391 be careful about enabling this. When memory resource controller
392 is disabled by boot option, this will be automatically disabled and
393 there will be no overhead from this. Even when you set this config=y,
394 if boot option "swapaccount=0" is set, swap will not be accounted.
395 Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
396 size is 4096bytes, 512k per 1Gbytes of swap.
397
398 config KERNEL_MEMCG_SWAP_ENABLED
399 bool "Memory Resource Controller Swap Extension enabled by default"
400 default n
401 depends on KERNEL_MEMCG_SWAP
402 help
403 Memory Resource Controller Swap Extension comes with its price in
404 a bigger memory consumption. General purpose distribution kernels
405 which want to enable the feature but keep it disabled by default
406 and let the user enable it by swapaccount boot command line
407 parameter should have this option unselected.
408
409 Those who want to have the feature enabled by default should
410 select this option (if, for some reason, they need to disable it,
411 then swapaccount=0 does the trick).
412
413
414 config KERNEL_MEMCG_KMEM
415 bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
416 default n
417 depends on KERNEL_MEMCG
418 help
419 The Kernel Memory extension for Memory Resource Controller can limit
420 the amount of memory used by kernel objects in the system. Those are
421 fundamentally different from the entities handled by the standard
422 Memory Controller, which are page-based, and can be swapped. Users of
423 the kmem extension can use it to guarantee that no group of processes
424 will ever exhaust kernel resources alone.
425
426 config KERNEL_CGROUP_PERF
427 bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
428 select KERNEL_PERF_EVENTS
429 default n
430 help
431 This option extends the per-cpu mode to restrict monitoring to
432 threads which belong to the cgroup specified and run on the
433 designated cpu.
434
435 menuconfig KERNEL_CGROUP_SCHED
436 bool "Group CPU scheduler"
437 default n
438 help
439 This feature lets CPU scheduler recognize task groups and control CPU
440 bandwidth allocation to such task groups. It uses cgroups to group
441 tasks.
442
443 if KERNEL_CGROUP_SCHED
444
445 config KERNEL_FAIR_GROUP_SCHED
446 bool "Group scheduling for SCHED_OTHER"
447 default n
448
449 config KERNEL_CFS_BANDWIDTH
450 bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
451 default n
452 depends on KERNEL_FAIR_GROUP_SCHED
453 help
454 This option allows users to define CPU bandwidth rates (limits) for
455 tasks running within the fair group scheduler. Groups with no limit
456 set are considered to be unconstrained and will run with no
457 restriction.
458 See tip/Documentation/scheduler/sched-bwc.txt for more information.
459
460 config KERNEL_RT_GROUP_SCHED
461 bool "Group scheduling for SCHED_RR/FIFO"
462 default n
463 help
464 This feature lets you explicitly allocate real CPU bandwidth
465 to task groups. If enabled, it will also make it impossible to
466 schedule realtime tasks for non-root users until you allocate
467 realtime bandwidth for them.
468
469 endif
470
471 config KERNEL_BLK_CGROUP
472 bool "Block IO controller"
473 default y
474 help
475 Generic block IO controller cgroup interface. This is the common
476 cgroup interface which should be used by various IO controlling
477 policies.
478
479 Currently, CFQ IO scheduler uses it to recognize task groups and
480 control disk bandwidth allocation (proportional time slice allocation)
481 to such task groups. It is also used by bio throttling logic in
482 block layer to implement upper limit in IO rates on a device.
483
484 This option only enables generic Block IO controller infrastructure.
485 One needs to also enable actual IO controlling logic/policy. For
486 enabling proportional weight division of disk bandwidth in CFQ, set
487 CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
488 CONFIG_BLK_DEV_THROTTLING=y.
489
490 config KERNEL_DEBUG_BLK_CGROUP
491 bool "Enable Block IO controller debugging"
492 default n
493 depends on KERNEL_BLK_CGROUP
494 help
495 Enable some debugging help. Currently it exports additional stat
496 files in a cgroup which can be useful for debugging.
497
498 config KERNEL_NET_CLS_CGROUP
499 bool "Control Group Classifier"
500 default y
501
502 config KERNEL_NETPRIO_CGROUP
503 bool "Network priority cgroup"
504 default y
505
506 endif
507
508 #
509 # Namespace support symbols
510 #
511
512 config KERNEL_NAMESPACES
513 bool "Enable kernel namespaces"
514 default n
515
516 if KERNEL_NAMESPACES
517
518 config KERNEL_UTS_NS
519 bool "UTS namespace"
520 default y
521 help
522 In this namespace, tasks see different info provided
523 with the uname() system call.
524
525 config KERNEL_IPC_NS
526 bool "IPC namespace"
527 default y
528 help
529 In this namespace, tasks work with IPC ids which correspond to
530 different IPC objects in different namespaces.
531
532 config KERNEL_USER_NS
533 bool "User namespace (EXPERIMENTAL)"
534 default y
535 help
536 This allows containers, i.e. vservers, to use user namespaces
537 to provide different user info for different servers.
538
539 config KERNEL_PID_NS
540 bool "PID Namespaces"
541 default y
542 help
543 Support process id namespaces. This allows having multiple
544 processes with the same pid as long as they are in different
545 pid namespaces. This is a building block of containers.
546
547 config KERNEL_NET_NS
548 bool "Network namespace"
549 default y
550 help
551 Allow user space to create what appear to be multiple instances
552 of the network stack.
553
554 endif
555
556 #
557 # LXC related symbols
558 #
559
560 config KERNEL_LXC_MISC
561 bool "Enable miscellaneous LXC related options"
562 default n
563
564 if KERNEL_LXC_MISC
565
566 config KERNEL_DEVPTS_MULTIPLE_INSTANCES
567 bool "Support multiple instances of devpts"
568 default y
569 help
570 Enable support for multiple instances of devpts filesystem.
571 If you want to have isolated PTY namespaces (eg: in containers),
572 say Y here. Otherwise, say N. If enabled, each mount of devpts
573 filesystem with the '-o newinstance' option will create an
574 independent PTY namespace.
575
576 config KERNEL_POSIX_MQUEUE
577 bool "POSIX Message Queues"
578 default y
579 help
580 POSIX variant of message queues is a part of IPC. In POSIX message
581 queues every message has a priority which decides about succession
582 of receiving it by a process. If you want to compile and run
583 programs written e.g. for Solaris with use of its POSIX message
584 queues (functions mq_*) say Y here.
585
586 POSIX message queues are visible as a filesystem called 'mqueue'
587 and can be mounted somewhere if you want to do filesystem
588 operations on message queues.
589
590 endif
591
592 config KERNEL_SECCOMP_FILTER
593 bool
594 default n
595
596 config KERNEL_SECCOMP
597 bool "Enable seccomp support"
598 depends on !(TARGET_uml)
599 select KERNEL_SECCOMP_FILTER
600 default n
601 help
602 Build kernel with support for seccomp.
603
604 #
605 # IPv6 configuration
606 #
607
608 config KERNEL_IPV6
609 def_bool IPV6
610
611 if KERNEL_IPV6
612
613 config KERNEL_IPV6_MULTIPLE_TABLES
614 def_bool y
615
616 config KERNEL_IPV6_SUBTREES
617 def_bool y
618
619 config KERNEL_IPV6_MROUTE
620 def_bool y
621
622 config KERNEL_IPV6_PIMSM_V2
623 def_bool n
624
625 endif
626
627 #
628 # NFS related symbols
629 #
630 config KERNEL_IP_PNP
631 bool "Compile the kernel with rootfs on NFS"
632 help
633 If you want to make your kernel boot off a NFS server as root
634 filesystem, select Y here.
635
636 if KERNEL_IP_PNP
637
638 config KERNEL_IP_PNP_DHCP
639 def_bool y
640
641 config KERNEL_IP_PNP_BOOTP
642 def_bool n
643
644 config KERNEL_IP_PNP_RARP
645 def_bool n
646
647 config KERNEL_NFS_FS
648 def_bool y
649
650 config KERNEL_NFS_V2
651 def_bool y
652
653 config KERNEL_NFS_V3
654 def_bool y
655
656 config KERNEL_ROOT_NFS
657 def_bool y
658
659 endif
660
661 menu "Filesystem ACL and attr support options"
662 config USE_FS_ACL_ATTR
663 bool "Use filesystem ACL and attr support by default"
664 default n
665 help
666 Make using ACLs (e.g. POSIX ACL, NFSv4 ACL) the default
667 for kernel and packages, except tmpfs, flash filesystems,
668 and old NFS. Also enable userspace extended attribute support
669 by default. (OpenWrt already has an expection it will be
670 present in the kernel).
671
672 config KERNEL_FS_POSIX_ACL
673 bool "Enable POSIX ACL support"
674 default y if USE_FS_ACL_ATTR
675
676 config KERNEL_BTRFS_FS_POSIX_ACL
677 bool "Enable POSIX ACL for BtrFS Filesystems"
678 select KERNEL_FS_POSIX_ACL
679 default y if USE_FS_ACL_ATTR
680
681 config KERNEL_EXT4_FS_POSIX_ACL
682 bool "Enable POSIX ACL for Ext4 Filesystems"
683 select KERNEL_FS_POSIX_ACL
684 default y if USE_FS_ACL_ATTR
685
686 config KERNEL_F2FS_FS_POSIX_ACL
687 bool "Enable POSIX ACL for F2FS Filesystems"
688 select KERNEL_FS_POSIX_ACL
689 default n
690
691 config KERNEL_JFFS2_FS_POSIX_ACL
692 bool "Enable POSIX ACL for JFFS2 Filesystems"
693 select KERNEL_FS_POSIX_ACL
694 default n
695
696 config KERNEL_TMPFS_POSIX_ACL
697 bool "Enable POSIX ACL for TMPFS Filesystems"
698 select KERNEL_FS_POSIX_ACL
699 default n
700
701 config KERNEL_CIFS_ACL
702 bool "Enable CIFS ACLs"
703 select KERNEL_FS_POSIX_ACL
704 default y if USE_FS_ACL_ATTR
705
706 config KERNEL_HFS_FS_POSIX_ACL
707 bool "Enable POSIX ACL for HFS Filesystems"
708 select KERNEL_FS_POSIX_ACL
709 default y if USE_FS_ACL_ATTR
710
711 config KERNEL_HFSPLUG_FS_POSIX_ACL
712 bool "Enable POSIX ACL for HFS+ Filesystems"
713 select KERNEL_FS_POSIX_ACL
714 default y if USE_FS_ACL_ATTR
715
716 config KERNEL_NFS_ACL_SUPPORT
717 bool "Enable ACLs for NFS"
718 default y if USE_FS_ACL_ATTR
719
720 config KERNEL_NFS_V3_ACL_SUPPORT
721 bool "Enable ACLs for NFSv3"
722 default n
723
724 config KERNEL_NFSD_V2_ACL_SUPPORT
725 bool "Enable ACLs for NFSDv2"
726 default n
727
728 config KERNEL_NFSD_V3_ACL_SUPPORT
729 bool "Enable ACLs for NFSDv3"
730 default n
731
732 config KERNEL_REISER_FS_POSIX_ACL
733 bool "Enable POSIX ACLs for ReiserFS"
734 select KERNEL_FS_POSIX_ACL
735 default y if USE_FS_ACL_ATTR
736
737 config KERNEL_XFS_POSIX_ACL
738 bool "Enable POSIX ACLs for XFS"
739 select KERNEL_FS_POSIX_ACL
740 default y if USE_FS_ACL_ATTR
741
742 config KERNEL_JFS_POSIX_ACL
743 bool "Enable POSIX ACLs for JFS"
744 select KERNEL_FS_POSIX_ACL
745 default y if USE_FS_ACL_ATTR
746
747 endmenu
748
749 config KERNEL_DEVMEM
750 bool "/dev/mem virtual device support"
751 help
752 Say Y here if you want to support the /dev/mem device.
753 The /dev/mem device is used to access areas of physical
754 memory.
755
756 config KERNEL_DEVKMEM
757 bool "/dev/kmem virtual device support"
758 help
759 Say Y here if you want to support the /dev/kmem device. The
760 /dev/kmem device is rarely used, but can be used for certain
761 kind of kernel debugging operations.