Config-kernel.in 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Copyright (C) 2006-2014 OpenWrt.org
  4. config KERNEL_BUILD_USER
  5. string "Custom Kernel Build User Name"
  6. default "builder" if BUILDBOT
  7. default ""
  8. help
  9. Sets the Kernel build user string, which for example will be returned
  10. by 'uname -a' on running systems.
  11. If not set, uses system user at build time.
  12. config KERNEL_BUILD_DOMAIN
  13. string "Custom Kernel Build Domain Name"
  14. default "buildhost" if BUILDBOT
  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_SWAP
  24. bool "Support for paging of anonymous memory (swap)"
  25. default y if !SMALL_FLASH
  26. config KERNEL_PROC_STRIPPED
  27. bool "Strip non-essential /proc functionality to reduce code size"
  28. default y if SMALL_FLASH
  29. config KERNEL_DEBUG_FS
  30. bool "Compile the kernel with debug filesystem enabled"
  31. default y
  32. help
  33. debugfs is a virtual file system that kernel developers use to put
  34. debugging files into. Enable this option to be able to read and
  35. write to these files. Many common debugging facilities, such as
  36. ftrace, require the existence of debugfs.
  37. config KERNEL_MIPS_FP_SUPPORT
  38. bool
  39. default y if TARGET_pistachio
  40. config KERNEL_ARM_PMU
  41. bool
  42. depends on (arm || aarch64)
  43. config KERNEL_X86_VSYSCALL_EMULATION
  44. bool "Enable vsyscall emulation"
  45. depends on x86_64
  46. help
  47. This enables emulation of the legacy vsyscall page. Disabling
  48. it is roughly equivalent to booting with vsyscall=none, except
  49. that it will also disable the helpful warning if a program
  50. tries to use a vsyscall. With this option set to N, offending
  51. programs will just segfault, citing addresses of the form
  52. 0xffffffffff600?00.
  53. This option is required by many programs built before 2013, and
  54. care should be used even with newer programs if set to N.
  55. Disabling this option saves about 7K of kernel size and
  56. possibly 4K of additional runtime pagetable memory.
  57. config KERNEL_PERF_EVENTS
  58. bool "Compile the kernel with performance events and counters"
  59. select KERNEL_ARM_PMU if (arm || aarch64)
  60. config KERNEL_PROFILING
  61. bool "Compile the kernel with profiling enabled"
  62. select KERNEL_PERF_EVENTS
  63. help
  64. Enable the extended profiling support mechanisms used by profilers such
  65. as OProfile.
  66. config KERNEL_RPI_AXIPERF
  67. bool "Compile the kernel with RaspberryPi AXI Performance monitors"
  68. default y
  69. depends on KERNEL_PERF_EVENTS && TARGET_bcm27xx
  70. config KERNEL_UBSAN
  71. bool "Compile the kernel with undefined behaviour sanity checker"
  72. help
  73. This option enables undefined behaviour sanity checker
  74. Compile-time instrumentation is used to detect various undefined
  75. behaviours in runtime. Various types of checks may be enabled
  76. via boot parameter ubsan_handle
  77. (see: Documentation/dev-tools/ubsan.rst).
  78. config KERNEL_UBSAN_SANITIZE_ALL
  79. bool "Enable instrumentation for the entire kernel"
  80. depends on KERNEL_UBSAN
  81. default y
  82. help
  83. This option activates instrumentation for the entire kernel.
  84. If you don't enable this option, you have to explicitly specify
  85. UBSAN_SANITIZE := y for the files/directories you want to check for UB.
  86. Enabling this option will get kernel image size increased
  87. significantly.
  88. config KERNEL_UBSAN_ALIGNMENT
  89. bool "Enable checking of pointers alignment"
  90. depends on KERNEL_UBSAN
  91. help
  92. This option enables detection of unaligned memory accesses.
  93. Enabling this option on architectures that support unaligned
  94. accesses may produce a lot of false positives.
  95. config KERNEL_UBSAN_BOUNDS
  96. bool "Perform array index bounds checking"
  97. depends on KERNEL_UBSAN
  98. help
  99. This option enables detection of directly indexed out of bounds array
  100. accesses, where the array size is known at compile time. Note that
  101. this does not protect array overflows via bad calls to the
  102. {str,mem}*cpy() family of functions (that is addressed by
  103. FORTIFY_SOURCE).
  104. config KERNEL_UBSAN_NULL
  105. bool "Enable checking of null pointers"
  106. depends on KERNEL_UBSAN
  107. help
  108. This option enables detection of memory accesses via a
  109. null pointer.
  110. config KERNEL_UBSAN_TRAP
  111. bool "On Sanitizer warnings, abort the running kernel code"
  112. depends on KERNEL_UBSAN
  113. help
  114. Building kernels with Sanitizer features enabled tends to grow the
  115. kernel size by around 5%, due to adding all the debugging text on
  116. failure paths. To avoid this, Sanitizer instrumentation can just
  117. issue a trap. This reduces the kernel size overhead but turns all
  118. warnings (including potentially harmless conditions) into full
  119. exceptions that abort the running kernel code (regardless of context,
  120. locks held, etc), which may destabilize the system. For some system
  121. builders this is an acceptable trade-off.
  122. config KERNEL_KASAN
  123. bool "Compile the kernel with KASan: runtime memory debugger"
  124. select KERNEL_SLUB_DEBUG
  125. depends on (x86_64 || aarch64)
  126. help
  127. Enables kernel address sanitizer - runtime memory debugger,
  128. designed to find out-of-bounds accesses and use-after-free bugs.
  129. This is strictly a debugging feature and it requires a gcc version
  130. of 4.9.2 or later. Detection of out of bounds accesses to stack or
  131. global variables requires gcc 5.0 or later.
  132. This feature consumes about 1/8 of available memory and brings about
  133. ~x3 performance slowdown.
  134. For better error detection enable CONFIG_STACKTRACE.
  135. Currently CONFIG_KASAN doesn't work with CONFIG_DEBUG_SLAB
  136. (the resulting kernel does not boot).
  137. config KERNEL_KASAN_EXTRA
  138. bool "KAsan: extra checks"
  139. depends on KERNEL_KASAN && KERNEL_DEBUG_KERNEL
  140. help
  141. This enables further checks in the kernel address sanitizer, for now
  142. it only includes the address-use-after-scope check that can lead
  143. to excessive kernel stack usage, frame size warnings and longer
  144. compile time.
  145. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81715 has more
  146. config KERNEL_KASAN_VMALLOC
  147. bool "Back mappings in vmalloc space with real shadow memory"
  148. depends on KERNEL_KASAN
  149. help
  150. By default, the shadow region for vmalloc space is the read-only
  151. zero page. This means that KASAN cannot detect errors involving
  152. vmalloc space.
  153. Enabling this option will hook in to vmap/vmalloc and back those
  154. mappings with real shadow memory allocated on demand. This allows
  155. for KASAN to detect more sorts of errors (and to support vmapped
  156. stacks), but at the cost of higher memory usage.
  157. This option depends on HAVE_ARCH_KASAN_VMALLOC, but we can't
  158. depend on that in here, so it is possible that enabling this
  159. will have no effect.
  160. if KERNEL_KASAN
  161. config KERNEL_KASAN_GENERIC
  162. def_bool y
  163. config KERNEL_KASAN_SW_TAGS
  164. def_bool n
  165. endif
  166. choice
  167. prompt "Instrumentation type"
  168. depends on KERNEL_KASAN
  169. default KERNEL_KASAN_OUTLINE
  170. config KERNEL_KASAN_OUTLINE
  171. bool "Outline instrumentation"
  172. help
  173. Before every memory access compiler insert function call
  174. __asan_load*/__asan_store*. These functions performs check
  175. of shadow memory. This is slower than inline instrumentation,
  176. however it doesn't bloat size of kernel's .text section so
  177. much as inline does.
  178. config KERNEL_KASAN_INLINE
  179. bool "Inline instrumentation"
  180. help
  181. Compiler directly inserts code checking shadow memory before
  182. memory accesses. This is faster than outline (in some workloads
  183. it gives about x2 boost over outline instrumentation), but
  184. make kernel's .text size much bigger.
  185. This requires a gcc version of 5.0 or later.
  186. endchoice
  187. config KERNEL_KCOV
  188. bool "Compile the kernel with code coverage for fuzzing"
  189. select KERNEL_DEBUG_FS
  190. help
  191. KCOV exposes kernel code coverage information in a form suitable
  192. for coverage-guided fuzzing (randomized testing).
  193. If RANDOMIZE_BASE is enabled, PC values will not be stable across
  194. different machines and across reboots. If you need stable PC values,
  195. disable RANDOMIZE_BASE.
  196. For more details, see Documentation/kcov.txt.
  197. config KERNEL_KCOV_ENABLE_COMPARISONS
  198. bool "Enable comparison operands collection by KCOV"
  199. depends on KERNEL_KCOV
  200. help
  201. KCOV also exposes operands of every comparison in the instrumented
  202. code along with operand sizes and PCs of the comparison instructions.
  203. These operands can be used by fuzzing engines to improve the quality
  204. of fuzzing coverage.
  205. config KERNEL_KCOV_INSTRUMENT_ALL
  206. bool "Instrument all code by default"
  207. depends on KERNEL_KCOV
  208. default y if KERNEL_KCOV
  209. help
  210. If you are doing generic system call fuzzing (like e.g. syzkaller),
  211. then you will want to instrument the whole kernel and you should
  212. say y here. If you are doing more targeted fuzzing (like e.g.
  213. filesystem fuzzing with AFL) then you will want to enable coverage
  214. for more specific subsets of files, and should say n here.
  215. config KERNEL_TASKSTATS
  216. bool "Compile the kernel with task resource/io statistics and accounting"
  217. help
  218. Enable the collection and publishing of task/io statistics and
  219. accounting. Enable this option to enable i/o monitoring in system
  220. monitors.
  221. if KERNEL_TASKSTATS
  222. config KERNEL_TASK_DELAY_ACCT
  223. def_bool y
  224. config KERNEL_TASK_IO_ACCOUNTING
  225. def_bool y
  226. config KERNEL_TASK_XACCT
  227. def_bool y
  228. endif
  229. config KERNEL_KALLSYMS
  230. bool "Compile the kernel with symbol table information"
  231. default y if !SMALL_FLASH
  232. help
  233. This will give you more information in stack traces from kernel oopses.
  234. config KERNEL_FTRACE
  235. bool "Compile the kernel with tracing support"
  236. depends on !TARGET_uml
  237. config KERNEL_FTRACE_SYSCALLS
  238. bool "Trace system calls"
  239. depends on KERNEL_FTRACE
  240. config KERNEL_ENABLE_DEFAULT_TRACERS
  241. bool "Trace process context switches and events"
  242. depends on KERNEL_FTRACE
  243. config KERNEL_FUNCTION_TRACER
  244. bool "Function tracer"
  245. depends on KERNEL_FTRACE
  246. config KERNEL_FUNCTION_GRAPH_TRACER
  247. bool "Function graph tracer"
  248. depends on KERNEL_FUNCTION_TRACER
  249. config KERNEL_DYNAMIC_FTRACE
  250. bool "Enable/disable function tracing dynamically"
  251. depends on KERNEL_FUNCTION_TRACER
  252. config KERNEL_FUNCTION_PROFILER
  253. bool "Function profiler"
  254. depends on KERNEL_FUNCTION_TRACER
  255. config KERNEL_IRQSOFF_TRACER
  256. bool "Interrupts-off Latency Tracer"
  257. depends on KERNEL_FTRACE
  258. help
  259. This option measures the time spent in irqs-off critical
  260. sections, with microsecond accuracy.
  261. The default measurement method is a maximum search, which is
  262. disabled by default and can be runtime (re-)started
  263. via:
  264. echo 0 > /sys/kernel/debug/tracing/tracing_max_latency
  265. (Note that kernel size and overhead increase with this option
  266. enabled. This option and the preempt-off timing option can be
  267. used together or separately.)
  268. config KERNEL_PREEMPT_TRACER
  269. bool "Preemption-off Latency Tracer"
  270. depends on KERNEL_FTRACE
  271. help
  272. This option measures the time spent in preemption-off critical
  273. sections, with microsecond accuracy.
  274. The default measurement method is a maximum search, which is
  275. disabled by default and can be runtime (re-)started
  276. via:
  277. echo 0 > /sys/kernel/debug/tracing/tracing_max_latency
  278. (Note that kernel size and overhead increase with this option
  279. enabled. This option and the irqs-off timing option can be
  280. used together or separately.)
  281. config KERNEL_HIST_TRIGGERS
  282. bool "Histogram triggers"
  283. depends on KERNEL_FTRACE
  284. help
  285. Hist triggers allow one or more arbitrary trace event fields to be
  286. aggregated into hash tables and dumped to stdout by reading a
  287. debugfs/tracefs file. They're useful for gathering quick and dirty
  288. (though precise) summaries of event activity as an initial guide for
  289. further investigation using more advanced tools.
  290. Inter-event tracing of quantities such as latencies is also
  291. supported using hist triggers under this option.
  292. config KERNEL_DEBUG_KERNEL
  293. bool
  294. config KERNEL_DEBUG_INFO
  295. bool "Compile the kernel with debug information"
  296. default y if !SMALL_FLASH
  297. select KERNEL_DEBUG_KERNEL
  298. help
  299. This will compile your kernel and modules with debug information.
  300. config KERNEL_DEBUG_INFO_BTF
  301. bool "Enable additional BTF type information"
  302. depends on !HOST_OS_MACOS
  303. depends on KERNEL_DEBUG_INFO && !KERNEL_DEBUG_INFO_REDUCED
  304. select DWARVES
  305. help
  306. Generate BPF Type Format (BTF) information from DWARF debug info.
  307. Turning this on expects presence of pahole tool, which will convert
  308. DWARF type info into equivalent deduplicated BTF type info.
  309. Required to run BPF CO-RE applications.
  310. config KERNEL_MODULE_ALLOW_BTF_MISMATCH
  311. bool "Allow loading modules with non-matching BTF type info"
  312. depends on KERNEL_DEBUG_INFO_BTF
  313. help
  314. For modules whose split BTF does not match vmlinux, load without
  315. BTF rather than refusing to load. The default behavior with
  316. module BTF enabled is to reject modules with such mismatches;
  317. this option will still load module BTF where possible but ignore
  318. it when a mismatch is found.
  319. config KERNEL_DEBUG_INFO_REDUCED
  320. bool "Reduce debugging information"
  321. default y
  322. depends on KERNEL_DEBUG_INFO
  323. help
  324. If you say Y here gcc is instructed to generate less debugging
  325. information for structure types. This means that tools that
  326. need full debugging information (like kgdb or systemtap) won't
  327. be happy. But if you merely need debugging information to
  328. resolve line numbers there is no loss. Advantage is that
  329. build directory object sizes shrink dramatically over a full
  330. DEBUG_INFO build and compile times are reduced too.
  331. Only works with newer gcc versions.
  332. # KERNEL_DEBUG_LL symbols must have the default value set as otherwise
  333. # KConfig wont evaluate them unless KERNEL_EARLY_PRINTK is selected
  334. # which means that buildroot wont override the DEBUG_LL symbols in target
  335. # kernel configurations and lead to devices that dont have working console
  336. config KERNEL_DEBUG_LL_UART_NONE
  337. bool
  338. default n
  339. depends on arm
  340. config KERNEL_DEBUG_LL
  341. bool
  342. default n
  343. depends on arm
  344. select KERNEL_DEBUG_LL_UART_NONE
  345. help
  346. ARM low level debugging.
  347. config KERNEL_DEBUG_VIRTUAL
  348. bool "Compile the kernel with VM translations debugging"
  349. select KERNEL_DEBUG_KERNEL
  350. help
  351. Enable checks sanity checks to catch invalid uses of
  352. virt_to_phys()/phys_to_virt() against the non-linear address space.
  353. config KERNEL_DYNAMIC_DEBUG
  354. bool "Compile the kernel with dynamic printk"
  355. select KERNEL_DEBUG_FS
  356. help
  357. Compiles debug level messages into the kernel, which would not
  358. otherwise be available at runtime. These messages can then be
  359. enabled/disabled based on various levels of scope - per source file,
  360. function, module, format string, and line number. This mechanism
  361. implicitly compiles in all pr_debug() and dev_dbg() calls, which
  362. enlarges the kernel text size by about 2%.
  363. config KERNEL_EARLY_PRINTK
  364. bool "Compile the kernel with early printk"
  365. default y if TARGET_bcm53xx
  366. depends on arm
  367. select KERNEL_DEBUG_KERNEL
  368. select KERNEL_DEBUG_LL if arm
  369. help
  370. Compile the kernel with early printk support. This is only useful for
  371. debugging purposes to send messages over the serial console in early boot.
  372. Enable this to debug early boot problems.
  373. config KERNEL_KPROBES
  374. bool "Compile the kernel with kprobes support"
  375. select KERNEL_FTRACE
  376. select KERNEL_PERF_EVENTS
  377. help
  378. Compiles the kernel with KPROBES support, which allows you to trap
  379. at almost any kernel address and execute a callback function.
  380. register_kprobe() establishes a probepoint and specifies the
  381. callback. Kprobes is useful for kernel debugging, non-intrusive
  382. instrumentation and testing.
  383. If in doubt, say "N".
  384. config KERNEL_KPROBE_EVENTS
  385. bool
  386. default y if KERNEL_KPROBES
  387. config KERNEL_BPF_EVENTS
  388. bool "Compile the kernel with BPF event support"
  389. select KERNEL_KPROBES
  390. help
  391. Allows to attach BPF programs to kprobe, uprobe and tracepoint events.
  392. This is required to use BPF maps of type BPF_MAP_TYPE_PERF_EVENT_ARRAY
  393. for sending data from BPF programs to user-space for post-processing
  394. or logging.
  395. config KERNEL_BPF_KPROBE_OVERRIDE
  396. bool
  397. depends on KERNEL_KPROBES
  398. default n
  399. config KERNEL_AIO
  400. bool "Compile the kernel with asynchronous IO support"
  401. default y if !SMALL_FLASH
  402. config KERNEL_IO_URING
  403. bool "Compile the kernel with io_uring support"
  404. depends on !SMALL_FLASH
  405. default y if (x86_64 || aarch64)
  406. config KERNEL_FHANDLE
  407. bool "Compile the kernel with support for fhandle syscalls"
  408. default y if !SMALL_FLASH
  409. config KERNEL_FANOTIFY
  410. bool "Compile the kernel with modern file notification support"
  411. default y if !SMALL_FLASH
  412. config KERNEL_BLK_DEV_BSG
  413. bool "Compile the kernel with SCSI generic v4 support for any block device"
  414. config KERNEL_TRANSPARENT_HUGEPAGE
  415. bool
  416. choice
  417. prompt "Transparent Hugepage Support sysfs defaults"
  418. depends on KERNEL_TRANSPARENT_HUGEPAGE
  419. default KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
  420. config KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
  421. bool "always"
  422. config KERNEL_TRANSPARENT_HUGEPAGE_MADVISE
  423. bool "madvise"
  424. endchoice
  425. config KERNEL_HUGETLBFS
  426. bool
  427. config KERNEL_HUGETLB_PAGE
  428. bool "Compile the kernel with HugeTLB support"
  429. select KERNEL_TRANSPARENT_HUGEPAGE
  430. select KERNEL_HUGETLBFS
  431. config KERNEL_MAGIC_SYSRQ
  432. bool "Compile the kernel with SysRq support"
  433. default y
  434. config KERNEL_DEBUG_PINCTRL
  435. bool "Compile the kernel with pinctrl debugging"
  436. select KERNEL_DEBUG_KERNEL
  437. config KERNEL_DEBUG_GPIO
  438. bool "Compile the kernel with gpio debugging"
  439. select KERNEL_DEBUG_KERNEL
  440. config KERNEL_COREDUMP
  441. bool
  442. config KERNEL_ELF_CORE
  443. bool "Enable process core dump support"
  444. select KERNEL_COREDUMP
  445. default y if !SMALL_FLASH
  446. config KERNEL_PROVE_LOCKING
  447. bool "Enable kernel lock checking"
  448. select KERNEL_DEBUG_KERNEL
  449. config KERNEL_SOFTLOCKUP_DETECTOR
  450. bool "Compile the kernel with detect Soft Lockups"
  451. depends on KERNEL_DEBUG_KERNEL
  452. help
  453. Say Y here to enable the kernel to act as a watchdog to detect
  454. soft lockups.
  455. Softlockups are bugs that cause the kernel to loop in kernel
  456. mode for more than 20 seconds, without giving other tasks a
  457. chance to run. The current stack trace is displayed upon
  458. detection and the system will stay locked up.
  459. config KERNEL_HARDLOCKUP_DETECTOR
  460. bool "Compile the kernel with detect Hard Lockups"
  461. depends on KERNEL_DEBUG_KERNEL
  462. help
  463. Say Y here to enable the kernel to act as a watchdog to detect
  464. hard lockups.
  465. Hardlockups are bugs that cause the CPU to loop in kernel mode
  466. for more than 10 seconds, without letting other interrupts have a
  467. chance to run. The current stack trace is displayed upon detection
  468. and the system will stay locked up.
  469. config KERNEL_DETECT_HUNG_TASK
  470. bool "Compile the kernel with detect Hung Tasks"
  471. depends on KERNEL_DEBUG_KERNEL
  472. default KERNEL_SOFTLOCKUP_DETECTOR
  473. help
  474. Say Y here to enable the kernel to detect "hung tasks",
  475. which are bugs that cause the task to be stuck in
  476. uninterruptible "D" state indefinitely.
  477. When a hung task is detected, the kernel will print the
  478. current stack trace (which you should report), but the
  479. task will stay in uninterruptible state. If lockdep is
  480. enabled then all held locks will also be reported. This
  481. feature has negligible overhead.
  482. config KERNEL_WQ_WATCHDOG
  483. bool "Compile the kernel with detect Workqueue Stalls"
  484. depends on KERNEL_DEBUG_KERNEL
  485. help
  486. Say Y here to enable stall detection on workqueues. If a
  487. worker pool doesn't make forward progress on a pending work
  488. item for over a given amount of time, 30s by default, a
  489. warning message is printed along with dump of workqueue
  490. state. This can be configured through kernel parameter
  491. "workqueue.watchdog_thresh" and its sysfs counterpart.
  492. config KERNEL_DEBUG_ATOMIC_SLEEP
  493. bool "Compile the kernel with sleep inside atomic section checking"
  494. depends on KERNEL_DEBUG_KERNEL
  495. help
  496. If you say Y here, various routines which may sleep will become very
  497. noisy if they are called inside atomic sections: when a spinlock is
  498. held, inside an rcu read side critical section, inside preempt disabled
  499. sections, inside an interrupt, etc...
  500. config KERNEL_DEBUG_VM
  501. bool "Compile the kernel with debug VM"
  502. depends on KERNEL_DEBUG_KERNEL
  503. help
  504. Enable this to turn on extended checks in the virtual-memory system
  505. that may impact performance.
  506. If unsure, say N.
  507. config KERNEL_PRINTK_TIME
  508. bool "Enable printk timestamps"
  509. default y
  510. config KERNEL_SLUB_DEBUG
  511. bool
  512. config KERNEL_SLUB_DEBUG_ON
  513. bool
  514. config KERNEL_SLABINFO
  515. select KERNEL_SLUB_DEBUG
  516. select KERNEL_SLUB_DEBUG_ON
  517. bool "Enable /proc slab debug info"
  518. config KERNEL_PROC_PAGE_MONITOR
  519. bool "Enable /proc page monitoring"
  520. config KERNEL_RELAY
  521. bool
  522. config KERNEL_KEXEC
  523. bool "Enable kexec support"
  524. config KERNEL_PROC_VMCORE
  525. bool
  526. config KERNEL_PROC_KCORE
  527. bool
  528. config KERNEL_CRASH_DUMP
  529. depends on i386 || x86_64 || arm || armeb
  530. select KERNEL_KEXEC
  531. select KERNEL_PROC_VMCORE
  532. select KERNEL_PROC_KCORE
  533. bool "Enable support for kexec crashdump"
  534. default y
  535. config USE_RFKILL
  536. bool "Enable rfkill support"
  537. default RFKILL_SUPPORT
  538. config USE_SPARSE
  539. bool "Enable sparse check during kernel build"
  540. config KERNEL_DEVTMPFS
  541. bool "Compile the kernel with device tmpfs enabled"
  542. help
  543. devtmpfs is a simple, kernel-managed /dev filesystem. The kernel creates
  544. devices nodes for all registered devices to simplify boot, but leaves more
  545. complex tasks to userspace (e.g. udev).
  546. if KERNEL_DEVTMPFS
  547. config KERNEL_DEVTMPFS_MOUNT
  548. bool "Automatically mount devtmpfs after root filesystem is mounted"
  549. endif
  550. config KERNEL_KEYS
  551. bool "Enable kernel access key retention support"
  552. default !SMALL_FLASH
  553. config KERNEL_PERSISTENT_KEYRINGS
  554. bool "Enable kernel persistent keyrings"
  555. depends on KERNEL_KEYS
  556. config KERNEL_KEYS_REQUEST_CACHE
  557. bool "Enable temporary caching of the last request_key() result"
  558. depends on KERNEL_KEYS
  559. config KERNEL_BIG_KEYS
  560. bool "Enable large payload keys on kernel keyrings"
  561. depends on KERNEL_KEYS
  562. #
  563. # CGROUP support symbols
  564. #
  565. config KERNEL_CGROUPS
  566. bool "Enable kernel cgroups"
  567. default y if !SMALL_FLASH
  568. if KERNEL_CGROUPS
  569. config KERNEL_CGROUP_DEBUG
  570. bool "Example debug cgroup subsystem"
  571. help
  572. This option enables a simple cgroup subsystem that
  573. exports useful debugging information about the cgroups
  574. framework.
  575. config KERNEL_FREEZER
  576. bool
  577. config KERNEL_CGROUP_FREEZER
  578. bool "legacy Freezer cgroup subsystem"
  579. select KERNEL_FREEZER
  580. help
  581. Provides a way to freeze and unfreeze all tasks in a
  582. cgroup.
  583. (legacy cgroup1-only controller, in cgroup2 freezer
  584. is integrated in the Memory controller)
  585. config KERNEL_CGROUP_DEVICE
  586. bool "legacy Device controller for cgroups"
  587. help
  588. Provides a cgroup implementing whitelists for devices which
  589. a process in the cgroup can mknod or open.
  590. (legacy cgroup1-only controller)
  591. config KERNEL_CGROUP_HUGETLB
  592. bool "HugeTLB controller"
  593. select KERNEL_HUGETLB_PAGE
  594. config KERNEL_CGROUP_PIDS
  595. bool "PIDs cgroup subsystem"
  596. default y
  597. help
  598. Provides enforcement of process number limits in the scope of a
  599. cgroup.
  600. config KERNEL_CGROUP_RDMA
  601. bool "RDMA controller for cgroups"
  602. default y
  603. config KERNEL_CGROUP_BPF
  604. bool "Support for eBPF programs attached to cgroups"
  605. default y
  606. config KERNEL_CPUSETS
  607. bool "Cpuset support"
  608. default y
  609. help
  610. This option will let you create and manage CPUSETs which
  611. allow dynamically partitioning a system into sets of CPUs and
  612. Memory Nodes and assigning tasks to run only within those sets.
  613. This is primarily useful on large SMP or NUMA systems.
  614. config KERNEL_PROC_PID_CPUSET
  615. bool "Include legacy /proc/<pid>/cpuset file"
  616. depends on KERNEL_CPUSETS
  617. config KERNEL_CGROUP_CPUACCT
  618. bool "Simple CPU accounting cgroup subsystem"
  619. default y
  620. help
  621. Provides a simple Resource Controller for monitoring the
  622. total CPU consumed by the tasks in a cgroup.
  623. config KERNEL_RESOURCE_COUNTERS
  624. bool "Resource counters"
  625. default y
  626. help
  627. This option enables controller independent resource accounting
  628. infrastructure that works with cgroups.
  629. config KERNEL_MM_OWNER
  630. bool
  631. default y if KERNEL_MEMCG
  632. config KERNEL_MEMCG
  633. bool "Memory Resource Controller for Control Groups"
  634. default y
  635. select KERNEL_FREEZER
  636. depends on KERNEL_RESOURCE_COUNTERS
  637. help
  638. Provides a memory resource controller that manages both anonymous
  639. memory and page cache. (See Documentation/cgroups/memory.txt)
  640. Note that setting this option increases fixed memory overhead
  641. associated with each page of memory in the system. By this,
  642. 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
  643. usage tracking struct at boot. Total amount of this is printed out
  644. at boot.
  645. Only enable when you're ok with these tradeoffs and really
  646. sure you need the memory resource controller. Even when you enable
  647. this, you can set "cgroup_disable=memory" at your boot option to
  648. disable memory resource controller and you can avoid overheads
  649. (but lose benefits of memory resource controller).
  650. This config option also selects MM_OWNER config option, which
  651. could in turn add some fork/exit overhead.
  652. config KERNEL_MEMCG_SWAP
  653. bool "Memory Resource Controller Swap Extension"
  654. default y
  655. depends on KERNEL_MEMCG
  656. help
  657. Add swap management feature to memory resource controller. When you
  658. enable this, you can limit mem+swap usage per cgroup. In other words,
  659. when you disable this, memory resource controller has no cares to
  660. usage of swap...a process can exhaust all of the swap. This extension
  661. is useful when you want to avoid exhaustion swap but this itself
  662. adds more overheads and consumes memory for remembering information.
  663. Especially if you use 32bit system or small memory system, please
  664. be careful about enabling this. When memory resource controller
  665. is disabled by boot option, this will be automatically disabled and
  666. there will be no overhead from this. Even when you set this config=y,
  667. if boot option "swapaccount=0" is set, swap will not be accounted.
  668. Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
  669. size is 4096bytes, 512k per 1Gbytes of swap.
  670. config KERNEL_MEMCG_SWAP_ENABLED
  671. bool "Memory Resource Controller Swap Extension enabled by default"
  672. depends on KERNEL_MEMCG_SWAP
  673. help
  674. Memory Resource Controller Swap Extension comes with its price in
  675. a bigger memory consumption. General purpose distribution kernels
  676. which want to enable the feature but keep it disabled by default
  677. and let the user enable it by swapaccount boot command line
  678. parameter should have this option unselected.
  679. Those who want to have the feature enabled by default should
  680. select this option (if, for some reason, they need to disable it,
  681. then swapaccount=0 does the trick).
  682. config KERNEL_MEMCG_KMEM
  683. bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
  684. default y
  685. depends on KERNEL_MEMCG
  686. help
  687. The Kernel Memory extension for Memory Resource Controller can limit
  688. the amount of memory used by kernel objects in the system. Those are
  689. fundamentally different from the entities handled by the standard
  690. Memory Controller, which are page-based, and can be swapped. Users of
  691. the kmem extension can use it to guarantee that no group of processes
  692. will ever exhaust kernel resources alone.
  693. config KERNEL_CGROUP_PERF
  694. bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
  695. select KERNEL_PERF_EVENTS
  696. help
  697. This option extends the per-cpu mode to restrict monitoring to
  698. threads which belong to the cgroup specified and run on the
  699. designated cpu.
  700. menuconfig KERNEL_CGROUP_SCHED
  701. bool "Group CPU scheduler"
  702. default y
  703. help
  704. This feature lets CPU scheduler recognize task groups and control CPU
  705. bandwidth allocation to such task groups. It uses cgroups to group
  706. tasks.
  707. if KERNEL_CGROUP_SCHED
  708. config KERNEL_FAIR_GROUP_SCHED
  709. bool "Group scheduling for SCHED_OTHER"
  710. default y
  711. config KERNEL_CFS_BANDWIDTH
  712. bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
  713. default y
  714. depends on KERNEL_FAIR_GROUP_SCHED
  715. help
  716. This option allows users to define CPU bandwidth rates (limits) for
  717. tasks running within the fair group scheduler. Groups with no limit
  718. set are considered to be unconstrained and will run with no
  719. restriction.
  720. See tip/Documentation/scheduler/sched-bwc.txt for more information.
  721. config KERNEL_RT_GROUP_SCHED
  722. bool "Group scheduling for SCHED_RR/FIFO"
  723. default y
  724. help
  725. This feature lets you explicitly allocate real CPU bandwidth
  726. to task groups. If enabled, it will also make it impossible to
  727. schedule realtime tasks for non-root users until you allocate
  728. realtime bandwidth for them.
  729. endif
  730. config KERNEL_BLK_CGROUP
  731. bool "Block IO controller"
  732. default y
  733. help
  734. Generic block IO controller cgroup interface. This is the common
  735. cgroup interface which should be used by various IO controlling
  736. policies.
  737. Currently, CFQ IO scheduler uses it to recognize task groups and
  738. control disk bandwidth allocation (proportional time slice allocation)
  739. to such task groups. It is also used by bio throttling logic in
  740. block layer to implement upper limit in IO rates on a device.
  741. This option only enables generic Block IO controller infrastructure.
  742. One needs to also enable actual IO controlling logic/policy. For
  743. enabling proportional weight division of disk bandwidth in CFQ, set
  744. CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
  745. CONFIG_BLK_DEV_THROTTLING=y.
  746. if KERNEL_BLK_CGROUP
  747. config KERNEL_CFQ_GROUP_IOSCHED
  748. bool "Proportional weight of disk bandwidth in CFQ"
  749. config KERNEL_BLK_DEV_THROTTLING
  750. bool "Enable throttling policy"
  751. default y
  752. config KERNEL_BLK_DEV_THROTTLING_LOW
  753. bool "Block throttling .low limit interface support (EXPERIMENTAL)"
  754. depends on KERNEL_BLK_DEV_THROTTLING
  755. endif
  756. config KERNEL_DEBUG_BLK_CGROUP
  757. bool "Enable Block IO controller debugging"
  758. depends on KERNEL_BLK_CGROUP
  759. help
  760. Enable some debugging help. Currently it exports additional stat
  761. files in a cgroup which can be useful for debugging.
  762. config KERNEL_NET_CLS_CGROUP
  763. bool "legacy Control Group Classifier"
  764. config KERNEL_CGROUP_NET_CLASSID
  765. bool "legacy Network classid cgroup"
  766. config KERNEL_CGROUP_NET_PRIO
  767. bool "legacy Network priority cgroup"
  768. endif
  769. #
  770. # Namespace support symbols
  771. #
  772. config KERNEL_NAMESPACES
  773. bool "Enable kernel namespaces"
  774. default y if !SMALL_FLASH
  775. if KERNEL_NAMESPACES
  776. config KERNEL_UTS_NS
  777. bool "UTS namespace"
  778. default y
  779. help
  780. In this namespace, tasks see different info provided
  781. with the uname() system call.
  782. config KERNEL_IPC_NS
  783. bool "IPC namespace"
  784. default y
  785. help
  786. In this namespace, tasks work with IPC ids which correspond to
  787. different IPC objects in different namespaces.
  788. config KERNEL_USER_NS
  789. bool "User namespace (EXPERIMENTAL)"
  790. default y
  791. help
  792. This allows containers, i.e. vservers, to use user namespaces
  793. to provide different user info for different servers.
  794. config KERNEL_PID_NS
  795. bool "PID Namespaces"
  796. default y
  797. help
  798. Support process id namespaces. This allows having multiple
  799. processes with the same pid as long as they are in different
  800. pid namespaces. This is a building block of containers.
  801. config KERNEL_NET_NS
  802. bool "Network namespace"
  803. default y
  804. help
  805. Allow user space to create what appear to be multiple instances
  806. of the network stack.
  807. endif
  808. config KERNEL_DEVPTS_MULTIPLE_INSTANCES
  809. bool "Support multiple instances of devpts"
  810. default y if !SMALL_FLASH
  811. help
  812. Enable support for multiple instances of devpts filesystem.
  813. If you want to have isolated PTY namespaces (eg: in containers),
  814. say Y here. Otherwise, say N. If enabled, each mount of devpts
  815. filesystem with the '-o newinstance' option will create an
  816. independent PTY namespace.
  817. config KERNEL_POSIX_MQUEUE
  818. bool "POSIX Message Queues"
  819. default y if !SMALL_FLASH
  820. help
  821. POSIX variant of message queues is a part of IPC. In POSIX message
  822. queues every message has a priority which decides about succession
  823. of receiving it by a process. If you want to compile and run
  824. programs written e.g. for Solaris with use of its POSIX message
  825. queues (functions mq_*) say Y here.
  826. POSIX message queues are visible as a filesystem called 'mqueue'
  827. and can be mounted somewhere if you want to do filesystem
  828. operations on message queues.
  829. config KERNEL_SECCOMP_FILTER
  830. bool
  831. default y if !SMALL_FLASH
  832. config KERNEL_SECCOMP
  833. bool "Enable seccomp support"
  834. depends on !(TARGET_uml)
  835. select KERNEL_SECCOMP_FILTER
  836. default y if !SMALL_FLASH
  837. help
  838. Build kernel with support for seccomp.
  839. #
  840. # IPv4 configuration
  841. #
  842. config KERNEL_IP_MROUTE
  843. bool "Enable IPv4 multicast routing"
  844. default y
  845. help
  846. Multicast routing requires a multicast routing daemon in
  847. addition to kernel support.
  848. if KERNEL_IP_MROUTE
  849. config KERNEL_IP_MROUTE_MULTIPLE_TABLES
  850. def_bool y
  851. config KERNEL_IP_PIMSM_V1
  852. def_bool y
  853. config KERNEL_IP_PIMSM_V2
  854. def_bool y
  855. endif
  856. #
  857. # IPv6 configuration
  858. #
  859. config KERNEL_IPV6
  860. def_bool IPV6
  861. if KERNEL_IPV6
  862. config KERNEL_IPV6_MULTIPLE_TABLES
  863. def_bool y
  864. config KERNEL_IPV6_SUBTREES
  865. def_bool y
  866. config KERNEL_IPV6_MROUTE
  867. bool "Enable IPv6 multicast routing"
  868. default y
  869. help
  870. Multicast routing requires a multicast routing daemon in
  871. addition to kernel support.
  872. if KERNEL_IPV6_MROUTE
  873. config KERNEL_IPV6_MROUTE_MULTIPLE_TABLES
  874. def_bool y
  875. config KERNEL_IPV6_PIMSM_V2
  876. def_bool y
  877. endif
  878. config KERNEL_IPV6_SEG6_LWTUNNEL
  879. bool "Enable support for lightweight tunnels"
  880. default y if !SMALL_FLASH
  881. help
  882. Using lwtunnel (needed for IPv6 segment routing) requires ip-full package.
  883. config KERNEL_LWTUNNEL_BPF
  884. def_bool n
  885. endif
  886. #
  887. # Miscellaneous network configuration
  888. #
  889. config KERNEL_NET_L3_MASTER_DEV
  890. bool "L3 Master device support"
  891. help
  892. This module provides glue between core networking code and device
  893. drivers to support L3 master devices like VRF.
  894. config KERNEL_WIRELESS_EXT
  895. def_bool n
  896. config KERNEL_WEXT_CORE
  897. def_bool KERNEL_WIRELESS_EXT
  898. config KERNEL_WEXT_PRIV
  899. def_bool KERNEL_WIRELESS_EXT
  900. config KERNEL_WEXT_PROC
  901. def_bool KERNEL_WIRELESS_EXT
  902. config KERNEL_WEXT_SPY
  903. def_bool KERNEL_WIRELESS_EXT
  904. config KERNEL_PAGE_POOL
  905. def_bool n
  906. config KERNEL_PAGE_POOL_STATS
  907. bool "Page pool stats support"
  908. depends on KERNEL_PAGE_POOL
  909. #
  910. # NFS related symbols
  911. #
  912. config KERNEL_IP_PNP
  913. bool "Compile the kernel with rootfs on NFS"
  914. help
  915. If you want to make your kernel boot off a NFS server as root
  916. filesystem, select Y here.
  917. if KERNEL_IP_PNP
  918. config KERNEL_IP_PNP_DHCP
  919. def_bool y
  920. config KERNEL_IP_PNP_BOOTP
  921. def_bool n
  922. config KERNEL_IP_PNP_RARP
  923. def_bool n
  924. config KERNEL_NFS_FS
  925. def_bool y
  926. config KERNEL_NFS_V2
  927. def_bool y
  928. config KERNEL_NFS_V3
  929. def_bool y
  930. config KERNEL_ROOT_NFS
  931. def_bool y
  932. endif
  933. menu "Filesystem ACL and attr support options"
  934. config USE_FS_ACL_ATTR
  935. bool "Use filesystem ACL and attr support by default"
  936. help
  937. Make using ACLs (e.g. POSIX ACL, NFSv4 ACL) the default
  938. for kernel and packages, except tmpfs, flash filesystems,
  939. and old NFS. Also enable userspace extended attribute support
  940. by default. (OpenWrt already has an expection it will be
  941. present in the kernel).
  942. config KERNEL_FS_POSIX_ACL
  943. bool "Enable POSIX ACL support"
  944. default y if USE_FS_ACL_ATTR
  945. config KERNEL_BTRFS_FS_POSIX_ACL
  946. bool "Enable POSIX ACL for BtrFS Filesystems"
  947. select KERNEL_FS_POSIX_ACL
  948. default y if USE_FS_ACL_ATTR
  949. config KERNEL_EXT4_FS_POSIX_ACL
  950. bool "Enable POSIX ACL for Ext4 Filesystems"
  951. select KERNEL_FS_POSIX_ACL
  952. default y if USE_FS_ACL_ATTR
  953. config KERNEL_F2FS_FS_POSIX_ACL
  954. bool "Enable POSIX ACL for F2FS Filesystems"
  955. select KERNEL_FS_POSIX_ACL
  956. config KERNEL_JFFS2_FS_POSIX_ACL
  957. bool "Enable POSIX ACL for JFFS2 Filesystems"
  958. select KERNEL_FS_POSIX_ACL
  959. config KERNEL_TMPFS_POSIX_ACL
  960. bool "Enable POSIX ACL for TMPFS Filesystems"
  961. select KERNEL_FS_POSIX_ACL
  962. config KERNEL_CIFS_ACL
  963. bool "Enable CIFS ACLs"
  964. select KERNEL_FS_POSIX_ACL
  965. default y if USE_FS_ACL_ATTR
  966. config KERNEL_HFS_FS_POSIX_ACL
  967. bool "Enable POSIX ACL for HFS Filesystems"
  968. select KERNEL_FS_POSIX_ACL
  969. default y if USE_FS_ACL_ATTR
  970. config KERNEL_HFSPLUS_FS_POSIX_ACL
  971. bool "Enable POSIX ACL for HFS+ Filesystems"
  972. select KERNEL_FS_POSIX_ACL
  973. default y if USE_FS_ACL_ATTR
  974. config KERNEL_NFS_ACL_SUPPORT
  975. bool "Enable ACLs for NFS"
  976. default y if USE_FS_ACL_ATTR
  977. config KERNEL_NFS_V3_ACL_SUPPORT
  978. bool "Enable ACLs for NFSv3"
  979. config KERNEL_NFSD_V2_ACL_SUPPORT
  980. bool "Enable ACLs for NFSDv2"
  981. config KERNEL_NFSD_V3_ACL_SUPPORT
  982. bool "Enable ACLs for NFSDv3"
  983. config KERNEL_REISER_FS_POSIX_ACL
  984. bool "Enable POSIX ACLs for ReiserFS"
  985. select KERNEL_FS_POSIX_ACL
  986. default y if USE_FS_ACL_ATTR
  987. config KERNEL_XFS_POSIX_ACL
  988. bool "Enable POSIX ACLs for XFS"
  989. select KERNEL_FS_POSIX_ACL
  990. default y if USE_FS_ACL_ATTR
  991. config KERNEL_JFS_POSIX_ACL
  992. bool "Enable POSIX ACLs for JFS"
  993. select KERNEL_FS_POSIX_ACL
  994. default y if USE_FS_ACL_ATTR
  995. endmenu
  996. config KERNEL_DEVMEM
  997. bool "/dev/mem virtual device support"
  998. help
  999. Say Y here if you want to support the /dev/mem device.
  1000. The /dev/mem device is used to access areas of physical
  1001. memory.
  1002. config KERNEL_DEVKMEM
  1003. bool "/dev/kmem virtual device support"
  1004. help
  1005. Say Y here if you want to support the /dev/kmem device. The
  1006. /dev/kmem device is rarely used, but can be used for certain
  1007. kind of kernel debugging operations.
  1008. config KERNEL_SQUASHFS_FRAGMENT_CACHE_SIZE
  1009. int "Number of squashfs fragments cached"
  1010. default 2 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
  1011. default 3
  1012. config KERNEL_SQUASHFS_XATTR
  1013. bool "Squashfs XATTR support"
  1014. #
  1015. # compile optimization setting
  1016. #
  1017. choice
  1018. prompt "Compiler optimization level"
  1019. default KERNEL_CC_OPTIMIZE_FOR_SIZE if SMALL_FLASH
  1020. config KERNEL_CC_OPTIMIZE_FOR_PERFORMANCE
  1021. bool "Optimize for performance"
  1022. help
  1023. This is the default optimization level for the kernel, building
  1024. with the "-O2" compiler flag for best performance and most
  1025. helpful compile-time warnings.
  1026. config KERNEL_CC_OPTIMIZE_FOR_SIZE
  1027. bool "Optimize for size"
  1028. help
  1029. Enabling this option will pass "-Os" instead of "-O2" to
  1030. your compiler resulting in a smaller kernel.
  1031. endchoice
  1032. config KERNEL_AUDIT
  1033. bool "Auditing support"
  1034. config KERNEL_SECURITY
  1035. bool "Enable different security models"
  1036. config KERNEL_SECURITY_NETWORK
  1037. bool "Socket and Networking Security Hooks"
  1038. select KERNEL_SECURITY
  1039. config KERNEL_SECURITY_SELINUX
  1040. bool "NSA SELinux Support"
  1041. select KERNEL_SECURITY_NETWORK
  1042. select KERNEL_AUDIT
  1043. config KERNEL_SECURITY_SELINUX_BOOTPARAM
  1044. bool "NSA SELinux boot parameter"
  1045. depends on KERNEL_SECURITY_SELINUX
  1046. default y
  1047. config KERNEL_SECURITY_SELINUX_DISABLE
  1048. bool "NSA SELinux runtime disable"
  1049. depends on KERNEL_SECURITY_SELINUX
  1050. config KERNEL_SECURITY_SELINUX_DEVELOP
  1051. bool "NSA SELinux Development Support"
  1052. depends on KERNEL_SECURITY_SELINUX
  1053. default y
  1054. config KERNEL_SECURITY_SELINUX_SIDTAB_HASH_BITS
  1055. int
  1056. depends on KERNEL_SECURITY_SELINUX
  1057. default 9
  1058. config KERNEL_SECURITY_SELINUX_SID2STR_CACHE_SIZE
  1059. int
  1060. depends on KERNEL_SECURITY_SELINUX
  1061. default 256
  1062. config KERNEL_LSM
  1063. string
  1064. default "lockdown,yama,loadpin,safesetid,integrity,selinux"
  1065. depends on KERNEL_SECURITY_SELINUX
  1066. config KERNEL_EXT4_FS_SECURITY
  1067. bool "Ext4 Security Labels"
  1068. config KERNEL_F2FS_FS_SECURITY
  1069. bool "F2FS Security Labels"
  1070. config KERNEL_UBIFS_FS_SECURITY
  1071. bool "UBIFS Security Labels"
  1072. config KERNEL_JFFS2_FS_SECURITY
  1073. bool "JFFS2 Security Labels"