2
0

Config-kernel.in 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345
  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. config KERNEL_FRAME_WARN
  333. int
  334. range 0 8192
  335. default 1280 if KERNEL_KASAN && !ARCH_64BIT
  336. default 1024 if !ARCH_64BIT
  337. default 2048 if ARCH_64BIT
  338. help
  339. Tell the compiler to warn at build time for stack frames larger than this.
  340. Setting this too low will cause a lot of warnings.
  341. Setting it to 0 disables the warning.
  342. # KERNEL_DEBUG_LL symbols must have the default value set as otherwise
  343. # KConfig wont evaluate them unless KERNEL_EARLY_PRINTK is selected
  344. # which means that buildroot wont override the DEBUG_LL symbols in target
  345. # kernel configurations and lead to devices that dont have working console
  346. config KERNEL_DEBUG_LL_UART_NONE
  347. bool
  348. default n
  349. depends on arm
  350. config KERNEL_DEBUG_LL
  351. bool
  352. default n
  353. depends on arm
  354. select KERNEL_DEBUG_LL_UART_NONE
  355. help
  356. ARM low level debugging.
  357. config KERNEL_DEBUG_VIRTUAL
  358. bool "Compile the kernel with VM translations debugging"
  359. select KERNEL_DEBUG_KERNEL
  360. help
  361. Enable checks sanity checks to catch invalid uses of
  362. virt_to_phys()/phys_to_virt() against the non-linear address space.
  363. config KERNEL_DYNAMIC_DEBUG
  364. bool "Compile the kernel with dynamic printk"
  365. select KERNEL_DEBUG_FS
  366. help
  367. Compiles debug level messages into the kernel, which would not
  368. otherwise be available at runtime. These messages can then be
  369. enabled/disabled based on various levels of scope - per source file,
  370. function, module, format string, and line number. This mechanism
  371. implicitly compiles in all pr_debug() and dev_dbg() calls, which
  372. enlarges the kernel text size by about 2%.
  373. config KERNEL_EARLY_PRINTK
  374. bool "Compile the kernel with early printk"
  375. default y if TARGET_bcm53xx
  376. depends on arm
  377. select KERNEL_DEBUG_KERNEL
  378. select KERNEL_DEBUG_LL if arm
  379. help
  380. Compile the kernel with early printk support. This is only useful for
  381. debugging purposes to send messages over the serial console in early boot.
  382. Enable this to debug early boot problems.
  383. config KERNEL_KPROBES
  384. bool "Compile the kernel with kprobes support"
  385. select KERNEL_FTRACE
  386. select KERNEL_PERF_EVENTS
  387. help
  388. Compiles the kernel with KPROBES support, which allows you to trap
  389. at almost any kernel address and execute a callback function.
  390. register_kprobe() establishes a probepoint and specifies the
  391. callback. Kprobes is useful for kernel debugging, non-intrusive
  392. instrumentation and testing.
  393. If in doubt, say "N".
  394. config KERNEL_KPROBE_EVENTS
  395. bool
  396. default y if KERNEL_KPROBES
  397. config KERNEL_BPF_EVENTS
  398. bool "Compile the kernel with BPF event support"
  399. select KERNEL_KPROBES
  400. help
  401. Allows to attach BPF programs to kprobe, uprobe and tracepoint events.
  402. This is required to use BPF maps of type BPF_MAP_TYPE_PERF_EVENT_ARRAY
  403. for sending data from BPF programs to user-space for post-processing
  404. or logging.
  405. config KERNEL_BPF_KPROBE_OVERRIDE
  406. bool
  407. depends on KERNEL_KPROBES
  408. default n
  409. config KERNEL_AIO
  410. bool "Compile the kernel with asynchronous IO support"
  411. default y if !SMALL_FLASH
  412. config KERNEL_IO_URING
  413. bool "Compile the kernel with io_uring support"
  414. depends on !SMALL_FLASH
  415. default y if (x86_64 || aarch64)
  416. config KERNEL_FHANDLE
  417. bool "Compile the kernel with support for fhandle syscalls"
  418. default y if !SMALL_FLASH
  419. config KERNEL_FANOTIFY
  420. bool "Compile the kernel with modern file notification support"
  421. default y if !SMALL_FLASH
  422. config KERNEL_BLK_DEV_BSG
  423. bool "Compile the kernel with SCSI generic v4 support for any block device"
  424. config KERNEL_TRANSPARENT_HUGEPAGE
  425. bool
  426. choice
  427. prompt "Transparent Hugepage Support sysfs defaults"
  428. depends on KERNEL_TRANSPARENT_HUGEPAGE
  429. default KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
  430. config KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
  431. bool "always"
  432. config KERNEL_TRANSPARENT_HUGEPAGE_MADVISE
  433. bool "madvise"
  434. endchoice
  435. config KERNEL_HUGETLBFS
  436. bool
  437. config KERNEL_HUGETLB_PAGE
  438. bool "Compile the kernel with HugeTLB support"
  439. select KERNEL_TRANSPARENT_HUGEPAGE
  440. select KERNEL_HUGETLBFS
  441. config KERNEL_MAGIC_SYSRQ
  442. bool "Compile the kernel with SysRq support"
  443. default y
  444. config KERNEL_DEBUG_PINCTRL
  445. bool "Compile the kernel with pinctrl debugging"
  446. select KERNEL_DEBUG_KERNEL
  447. config KERNEL_DEBUG_GPIO
  448. bool "Compile the kernel with gpio debugging"
  449. select KERNEL_DEBUG_KERNEL
  450. config KERNEL_COREDUMP
  451. bool
  452. config KERNEL_ELF_CORE
  453. bool "Enable process core dump support"
  454. select KERNEL_COREDUMP
  455. default y if !SMALL_FLASH
  456. config KERNEL_PROVE_LOCKING
  457. bool "Enable kernel lock checking"
  458. select KERNEL_DEBUG_KERNEL
  459. config KERNEL_SOFTLOCKUP_DETECTOR
  460. bool "Compile the kernel with detect Soft 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. soft lockups.
  465. Softlockups are bugs that cause the kernel to loop in kernel
  466. mode for more than 20 seconds, without giving other tasks a
  467. chance to run. The current stack trace is displayed upon
  468. detection and the system will stay locked up.
  469. config KERNEL_HARDLOCKUP_DETECTOR
  470. bool "Compile the kernel with detect Hard Lockups"
  471. depends on KERNEL_DEBUG_KERNEL
  472. help
  473. Say Y here to enable the kernel to act as a watchdog to detect
  474. hard lockups.
  475. Hardlockups are bugs that cause the CPU to loop in kernel mode
  476. for more than 10 seconds, without letting other interrupts have a
  477. chance to run. The current stack trace is displayed upon detection
  478. and the system will stay locked up.
  479. config KERNEL_DETECT_HUNG_TASK
  480. bool "Compile the kernel with detect Hung Tasks"
  481. depends on KERNEL_DEBUG_KERNEL
  482. default KERNEL_SOFTLOCKUP_DETECTOR
  483. help
  484. Say Y here to enable the kernel to detect "hung tasks",
  485. which are bugs that cause the task to be stuck in
  486. uninterruptible "D" state indefinitely.
  487. When a hung task is detected, the kernel will print the
  488. current stack trace (which you should report), but the
  489. task will stay in uninterruptible state. If lockdep is
  490. enabled then all held locks will also be reported. This
  491. feature has negligible overhead.
  492. config KERNEL_WQ_WATCHDOG
  493. bool "Compile the kernel with detect Workqueue Stalls"
  494. depends on KERNEL_DEBUG_KERNEL
  495. help
  496. Say Y here to enable stall detection on workqueues. If a
  497. worker pool doesn't make forward progress on a pending work
  498. item for over a given amount of time, 30s by default, a
  499. warning message is printed along with dump of workqueue
  500. state. This can be configured through kernel parameter
  501. "workqueue.watchdog_thresh" and its sysfs counterpart.
  502. config KERNEL_DEBUG_ATOMIC_SLEEP
  503. bool "Compile the kernel with sleep inside atomic section checking"
  504. depends on KERNEL_DEBUG_KERNEL
  505. help
  506. If you say Y here, various routines which may sleep will become very
  507. noisy if they are called inside atomic sections: when a spinlock is
  508. held, inside an rcu read side critical section, inside preempt disabled
  509. sections, inside an interrupt, etc...
  510. config KERNEL_DEBUG_VM
  511. bool "Compile the kernel with debug VM"
  512. depends on KERNEL_DEBUG_KERNEL
  513. help
  514. Enable this to turn on extended checks in the virtual-memory system
  515. that may impact performance.
  516. If unsure, say N.
  517. config KERNEL_PRINTK_TIME
  518. bool "Enable printk timestamps"
  519. default y
  520. config KERNEL_SLUB_DEBUG
  521. bool
  522. config KERNEL_SLUB_DEBUG_ON
  523. bool
  524. config KERNEL_SLABINFO
  525. select KERNEL_SLUB_DEBUG
  526. select KERNEL_SLUB_DEBUG_ON
  527. bool "Enable /proc slab debug info"
  528. config KERNEL_PROC_PAGE_MONITOR
  529. bool "Enable /proc page monitoring"
  530. config KERNEL_RELAY
  531. bool
  532. config KERNEL_KEXEC
  533. bool "Enable kexec support"
  534. config KERNEL_PROC_VMCORE
  535. bool
  536. config KERNEL_PROC_KCORE
  537. bool
  538. config KERNEL_CRASH_DUMP
  539. depends on i386 || x86_64 || arm || armeb
  540. select KERNEL_KEXEC
  541. select KERNEL_PROC_VMCORE
  542. select KERNEL_PROC_KCORE
  543. bool "Enable support for kexec crashdump"
  544. default y
  545. config USE_RFKILL
  546. bool "Enable rfkill support"
  547. default RFKILL_SUPPORT
  548. config USE_SPARSE
  549. bool "Enable sparse check during kernel build"
  550. config KERNEL_DEVTMPFS
  551. bool "Compile the kernel with device tmpfs enabled"
  552. help
  553. devtmpfs is a simple, kernel-managed /dev filesystem. The kernel creates
  554. devices nodes for all registered devices to simplify boot, but leaves more
  555. complex tasks to userspace (e.g. udev).
  556. if KERNEL_DEVTMPFS
  557. config KERNEL_DEVTMPFS_MOUNT
  558. bool "Automatically mount devtmpfs after root filesystem is mounted"
  559. endif
  560. config KERNEL_KEYS
  561. bool "Enable kernel access key retention support"
  562. default !SMALL_FLASH
  563. config KERNEL_PERSISTENT_KEYRINGS
  564. bool "Enable kernel persistent keyrings"
  565. depends on KERNEL_KEYS
  566. config KERNEL_KEYS_REQUEST_CACHE
  567. bool "Enable temporary caching of the last request_key() result"
  568. depends on KERNEL_KEYS
  569. config KERNEL_BIG_KEYS
  570. bool "Enable large payload keys on kernel keyrings"
  571. depends on KERNEL_KEYS
  572. #
  573. # CGROUP support symbols
  574. #
  575. config KERNEL_CGROUPS
  576. bool "Enable kernel cgroups"
  577. default y if !SMALL_FLASH
  578. if KERNEL_CGROUPS
  579. config KERNEL_CGROUP_DEBUG
  580. bool "Example debug cgroup subsystem"
  581. help
  582. This option enables a simple cgroup subsystem that
  583. exports useful debugging information about the cgroups
  584. framework.
  585. config KERNEL_FREEZER
  586. bool
  587. config KERNEL_CGROUP_FREEZER
  588. bool "legacy Freezer cgroup subsystem"
  589. select KERNEL_FREEZER
  590. help
  591. Provides a way to freeze and unfreeze all tasks in a
  592. cgroup.
  593. (legacy cgroup1-only controller, in cgroup2 freezer
  594. is integrated in the Memory controller)
  595. config KERNEL_CGROUP_DEVICE
  596. bool "legacy Device controller for cgroups"
  597. help
  598. Provides a cgroup implementing whitelists for devices which
  599. a process in the cgroup can mknod or open.
  600. (legacy cgroup1-only controller)
  601. config KERNEL_CGROUP_HUGETLB
  602. bool "HugeTLB controller"
  603. select KERNEL_HUGETLB_PAGE
  604. config KERNEL_CGROUP_PIDS
  605. bool "PIDs cgroup subsystem"
  606. default y
  607. help
  608. Provides enforcement of process number limits in the scope of a
  609. cgroup.
  610. config KERNEL_CGROUP_RDMA
  611. bool "RDMA controller for cgroups"
  612. default y
  613. config KERNEL_CGROUP_BPF
  614. bool "Support for eBPF programs attached to cgroups"
  615. default y
  616. config KERNEL_CPUSETS
  617. bool "Cpuset support"
  618. default y
  619. help
  620. This option will let you create and manage CPUSETs which
  621. allow dynamically partitioning a system into sets of CPUs and
  622. Memory Nodes and assigning tasks to run only within those sets.
  623. This is primarily useful on large SMP or NUMA systems.
  624. config KERNEL_PROC_PID_CPUSET
  625. bool "Include legacy /proc/<pid>/cpuset file"
  626. depends on KERNEL_CPUSETS
  627. config KERNEL_CGROUP_CPUACCT
  628. bool "Simple CPU accounting cgroup subsystem"
  629. default y
  630. help
  631. Provides a simple Resource Controller for monitoring the
  632. total CPU consumed by the tasks in a cgroup.
  633. config KERNEL_RESOURCE_COUNTERS
  634. bool "Resource counters"
  635. default y
  636. help
  637. This option enables controller independent resource accounting
  638. infrastructure that works with cgroups.
  639. config KERNEL_MM_OWNER
  640. bool
  641. default y if KERNEL_MEMCG
  642. config KERNEL_MEMCG
  643. bool "Memory Resource Controller for Control Groups"
  644. default y
  645. select KERNEL_FREEZER
  646. depends on KERNEL_RESOURCE_COUNTERS
  647. help
  648. Provides a memory resource controller that manages both anonymous
  649. memory and page cache. (See Documentation/cgroups/memory.txt)
  650. Note that setting this option increases fixed memory overhead
  651. associated with each page of memory in the system. By this,
  652. 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
  653. usage tracking struct at boot. Total amount of this is printed out
  654. at boot.
  655. Only enable when you're ok with these tradeoffs and really
  656. sure you need the memory resource controller. Even when you enable
  657. this, you can set "cgroup_disable=memory" at your boot option to
  658. disable memory resource controller and you can avoid overheads
  659. (but lose benefits of memory resource controller).
  660. This config option also selects MM_OWNER config option, which
  661. could in turn add some fork/exit overhead.
  662. config KERNEL_MEMCG_SWAP
  663. bool "Memory Resource Controller Swap Extension"
  664. default y
  665. depends on KERNEL_MEMCG
  666. help
  667. Add swap management feature to memory resource controller. When you
  668. enable this, you can limit mem+swap usage per cgroup. In other words,
  669. when you disable this, memory resource controller has no cares to
  670. usage of swap...a process can exhaust all of the swap. This extension
  671. is useful when you want to avoid exhaustion swap but this itself
  672. adds more overheads and consumes memory for remembering information.
  673. Especially if you use 32bit system or small memory system, please
  674. be careful about enabling this. When memory resource controller
  675. is disabled by boot option, this will be automatically disabled and
  676. there will be no overhead from this. Even when you set this config=y,
  677. if boot option "swapaccount=0" is set, swap will not be accounted.
  678. Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
  679. size is 4096bytes, 512k per 1Gbytes of swap.
  680. config KERNEL_MEMCG_SWAP_ENABLED
  681. bool "Memory Resource Controller Swap Extension enabled by default"
  682. depends on KERNEL_MEMCG_SWAP
  683. help
  684. Memory Resource Controller Swap Extension comes with its price in
  685. a bigger memory consumption. General purpose distribution kernels
  686. which want to enable the feature but keep it disabled by default
  687. and let the user enable it by swapaccount boot command line
  688. parameter should have this option unselected.
  689. Those who want to have the feature enabled by default should
  690. select this option (if, for some reason, they need to disable it,
  691. then swapaccount=0 does the trick).
  692. config KERNEL_MEMCG_KMEM
  693. bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
  694. default y
  695. depends on KERNEL_MEMCG
  696. help
  697. The Kernel Memory extension for Memory Resource Controller can limit
  698. the amount of memory used by kernel objects in the system. Those are
  699. fundamentally different from the entities handled by the standard
  700. Memory Controller, which are page-based, and can be swapped. Users of
  701. the kmem extension can use it to guarantee that no group of processes
  702. will ever exhaust kernel resources alone.
  703. config KERNEL_CGROUP_PERF
  704. bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
  705. select KERNEL_PERF_EVENTS
  706. help
  707. This option extends the per-cpu mode to restrict monitoring to
  708. threads which belong to the cgroup specified and run on the
  709. designated cpu.
  710. menuconfig KERNEL_CGROUP_SCHED
  711. bool "Group CPU scheduler"
  712. default y
  713. help
  714. This feature lets CPU scheduler recognize task groups and control CPU
  715. bandwidth allocation to such task groups. It uses cgroups to group
  716. tasks.
  717. if KERNEL_CGROUP_SCHED
  718. config KERNEL_FAIR_GROUP_SCHED
  719. bool "Group scheduling for SCHED_OTHER"
  720. default y
  721. config KERNEL_CFS_BANDWIDTH
  722. bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
  723. default y
  724. depends on KERNEL_FAIR_GROUP_SCHED
  725. help
  726. This option allows users to define CPU bandwidth rates (limits) for
  727. tasks running within the fair group scheduler. Groups with no limit
  728. set are considered to be unconstrained and will run with no
  729. restriction.
  730. See tip/Documentation/scheduler/sched-bwc.txt for more information.
  731. config KERNEL_RT_GROUP_SCHED
  732. bool "Group scheduling for SCHED_RR/FIFO"
  733. default y
  734. help
  735. This feature lets you explicitly allocate real CPU bandwidth
  736. to task groups. If enabled, it will also make it impossible to
  737. schedule realtime tasks for non-root users until you allocate
  738. realtime bandwidth for them.
  739. endif
  740. config KERNEL_BLK_CGROUP
  741. bool "Block IO controller"
  742. default y
  743. help
  744. Generic block IO controller cgroup interface. This is the common
  745. cgroup interface which should be used by various IO controlling
  746. policies.
  747. Currently, CFQ IO scheduler uses it to recognize task groups and
  748. control disk bandwidth allocation (proportional time slice allocation)
  749. to such task groups. It is also used by bio throttling logic in
  750. block layer to implement upper limit in IO rates on a device.
  751. This option only enables generic Block IO controller infrastructure.
  752. One needs to also enable actual IO controlling logic/policy. For
  753. enabling proportional weight division of disk bandwidth in CFQ, set
  754. CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
  755. CONFIG_BLK_DEV_THROTTLING=y.
  756. if KERNEL_BLK_CGROUP
  757. config KERNEL_CFQ_GROUP_IOSCHED
  758. bool "Proportional weight of disk bandwidth in CFQ"
  759. config KERNEL_BLK_DEV_THROTTLING
  760. bool "Enable throttling policy"
  761. default y
  762. config KERNEL_BLK_DEV_THROTTLING_LOW
  763. bool "Block throttling .low limit interface support (EXPERIMENTAL)"
  764. depends on KERNEL_BLK_DEV_THROTTLING
  765. endif
  766. config KERNEL_DEBUG_BLK_CGROUP
  767. bool "Enable Block IO controller debugging"
  768. depends on KERNEL_BLK_CGROUP
  769. help
  770. Enable some debugging help. Currently it exports additional stat
  771. files in a cgroup which can be useful for debugging.
  772. config KERNEL_NET_CLS_CGROUP
  773. bool "legacy Control Group Classifier"
  774. config KERNEL_CGROUP_NET_CLASSID
  775. bool "legacy Network classid cgroup"
  776. config KERNEL_CGROUP_NET_PRIO
  777. bool "legacy Network priority cgroup"
  778. endif
  779. #
  780. # Namespace support symbols
  781. #
  782. config KERNEL_NAMESPACES
  783. bool "Enable kernel namespaces"
  784. default y if !SMALL_FLASH
  785. if KERNEL_NAMESPACES
  786. config KERNEL_UTS_NS
  787. bool "UTS namespace"
  788. default y
  789. help
  790. In this namespace, tasks see different info provided
  791. with the uname() system call.
  792. config KERNEL_IPC_NS
  793. bool "IPC namespace"
  794. default y
  795. help
  796. In this namespace, tasks work with IPC ids which correspond to
  797. different IPC objects in different namespaces.
  798. config KERNEL_USER_NS
  799. bool "User namespace (EXPERIMENTAL)"
  800. default y
  801. help
  802. This allows containers, i.e. vservers, to use user namespaces
  803. to provide different user info for different servers.
  804. config KERNEL_PID_NS
  805. bool "PID Namespaces"
  806. default y
  807. help
  808. Support process id namespaces. This allows having multiple
  809. processes with the same pid as long as they are in different
  810. pid namespaces. This is a building block of containers.
  811. config KERNEL_NET_NS
  812. bool "Network namespace"
  813. default y
  814. help
  815. Allow user space to create what appear to be multiple instances
  816. of the network stack.
  817. endif
  818. config KERNEL_DEVPTS_MULTIPLE_INSTANCES
  819. bool "Support multiple instances of devpts"
  820. default y if !SMALL_FLASH
  821. help
  822. Enable support for multiple instances of devpts filesystem.
  823. If you want to have isolated PTY namespaces (eg: in containers),
  824. say Y here. Otherwise, say N. If enabled, each mount of devpts
  825. filesystem with the '-o newinstance' option will create an
  826. independent PTY namespace.
  827. config KERNEL_POSIX_MQUEUE
  828. bool "POSIX Message Queues"
  829. default y if !SMALL_FLASH
  830. help
  831. POSIX variant of message queues is a part of IPC. In POSIX message
  832. queues every message has a priority which decides about succession
  833. of receiving it by a process. If you want to compile and run
  834. programs written e.g. for Solaris with use of its POSIX message
  835. queues (functions mq_*) say Y here.
  836. POSIX message queues are visible as a filesystem called 'mqueue'
  837. and can be mounted somewhere if you want to do filesystem
  838. operations on message queues.
  839. config KERNEL_SECCOMP_FILTER
  840. bool
  841. default y if !SMALL_FLASH
  842. config KERNEL_SECCOMP
  843. bool "Enable seccomp support"
  844. depends on !(TARGET_uml)
  845. select KERNEL_SECCOMP_FILTER
  846. default y if !SMALL_FLASH
  847. help
  848. Build kernel with support for seccomp.
  849. #
  850. # IPv4 configuration
  851. #
  852. config KERNEL_IP_MROUTE
  853. bool "Enable IPv4 multicast routing"
  854. default y
  855. help
  856. Multicast routing requires a multicast routing daemon in
  857. addition to kernel support.
  858. if KERNEL_IP_MROUTE
  859. config KERNEL_IP_MROUTE_MULTIPLE_TABLES
  860. def_bool y
  861. config KERNEL_IP_PIMSM_V1
  862. def_bool y
  863. config KERNEL_IP_PIMSM_V2
  864. def_bool y
  865. endif
  866. #
  867. # IPv6 configuration
  868. #
  869. config KERNEL_IPV6
  870. def_bool IPV6
  871. if KERNEL_IPV6
  872. config KERNEL_IPV6_MULTIPLE_TABLES
  873. def_bool y
  874. config KERNEL_IPV6_SUBTREES
  875. def_bool y
  876. config KERNEL_IPV6_MROUTE
  877. bool "Enable IPv6 multicast routing"
  878. default y
  879. help
  880. Multicast routing requires a multicast routing daemon in
  881. addition to kernel support.
  882. if KERNEL_IPV6_MROUTE
  883. config KERNEL_IPV6_MROUTE_MULTIPLE_TABLES
  884. def_bool y
  885. config KERNEL_IPV6_PIMSM_V2
  886. def_bool y
  887. endif
  888. config KERNEL_IPV6_SEG6_LWTUNNEL
  889. bool "Enable support for lightweight tunnels"
  890. default y if !SMALL_FLASH
  891. help
  892. Using lwtunnel (needed for IPv6 segment routing) requires ip-full package.
  893. config KERNEL_LWTUNNEL_BPF
  894. def_bool n
  895. endif
  896. #
  897. # Miscellaneous network configuration
  898. #
  899. config KERNEL_NET_L3_MASTER_DEV
  900. bool "L3 Master device support"
  901. help
  902. This module provides glue between core networking code and device
  903. drivers to support L3 master devices like VRF.
  904. config KERNEL_WIRELESS_EXT
  905. def_bool n
  906. config KERNEL_WEXT_CORE
  907. def_bool KERNEL_WIRELESS_EXT
  908. config KERNEL_WEXT_PRIV
  909. def_bool KERNEL_WIRELESS_EXT
  910. config KERNEL_WEXT_PROC
  911. def_bool KERNEL_WIRELESS_EXT
  912. config KERNEL_WEXT_SPY
  913. def_bool KERNEL_WIRELESS_EXT
  914. config KERNEL_PAGE_POOL
  915. def_bool n
  916. config KERNEL_PAGE_POOL_STATS
  917. bool "Page pool stats support"
  918. depends on KERNEL_PAGE_POOL
  919. #
  920. # NFS related symbols
  921. #
  922. config KERNEL_IP_PNP
  923. bool "Compile the kernel with rootfs on NFS"
  924. help
  925. If you want to make your kernel boot off a NFS server as root
  926. filesystem, select Y here.
  927. if KERNEL_IP_PNP
  928. config KERNEL_IP_PNP_DHCP
  929. def_bool y
  930. config KERNEL_IP_PNP_BOOTP
  931. def_bool n
  932. config KERNEL_IP_PNP_RARP
  933. def_bool n
  934. config KERNEL_NFS_FS
  935. def_bool y
  936. config KERNEL_NFS_V2
  937. def_bool y
  938. config KERNEL_NFS_V3
  939. def_bool y
  940. config KERNEL_ROOT_NFS
  941. def_bool y
  942. endif
  943. menu "Filesystem ACL and attr support options"
  944. config USE_FS_ACL_ATTR
  945. bool "Use filesystem ACL and attr support by default"
  946. help
  947. Make using ACLs (e.g. POSIX ACL, NFSv4 ACL) the default
  948. for kernel and packages, except tmpfs, flash filesystems,
  949. and old NFS. Also enable userspace extended attribute support
  950. by default. (OpenWrt already has an expection it will be
  951. present in the kernel).
  952. config KERNEL_FS_POSIX_ACL
  953. bool "Enable POSIX ACL support"
  954. default y if USE_FS_ACL_ATTR
  955. config KERNEL_BTRFS_FS_POSIX_ACL
  956. bool "Enable POSIX ACL for BtrFS Filesystems"
  957. select KERNEL_FS_POSIX_ACL
  958. default y if USE_FS_ACL_ATTR
  959. config KERNEL_EXT4_FS_POSIX_ACL
  960. bool "Enable POSIX ACL for Ext4 Filesystems"
  961. select KERNEL_FS_POSIX_ACL
  962. default y if USE_FS_ACL_ATTR
  963. config KERNEL_F2FS_FS_POSIX_ACL
  964. bool "Enable POSIX ACL for F2FS Filesystems"
  965. select KERNEL_FS_POSIX_ACL
  966. config KERNEL_JFFS2_FS_POSIX_ACL
  967. bool "Enable POSIX ACL for JFFS2 Filesystems"
  968. select KERNEL_FS_POSIX_ACL
  969. config KERNEL_TMPFS_POSIX_ACL
  970. bool "Enable POSIX ACL for TMPFS Filesystems"
  971. select KERNEL_FS_POSIX_ACL
  972. config KERNEL_CIFS_ACL
  973. bool "Enable CIFS ACLs"
  974. select KERNEL_FS_POSIX_ACL
  975. default y if USE_FS_ACL_ATTR
  976. config KERNEL_HFS_FS_POSIX_ACL
  977. bool "Enable POSIX ACL for HFS Filesystems"
  978. select KERNEL_FS_POSIX_ACL
  979. default y if USE_FS_ACL_ATTR
  980. config KERNEL_HFSPLUS_FS_POSIX_ACL
  981. bool "Enable POSIX ACL for HFS+ Filesystems"
  982. select KERNEL_FS_POSIX_ACL
  983. default y if USE_FS_ACL_ATTR
  984. config KERNEL_NFS_ACL_SUPPORT
  985. bool "Enable ACLs for NFS"
  986. default y if USE_FS_ACL_ATTR
  987. config KERNEL_NFS_V3_ACL_SUPPORT
  988. bool "Enable ACLs for NFSv3"
  989. config KERNEL_NFSD_V2_ACL_SUPPORT
  990. bool "Enable ACLs for NFSDv2"
  991. config KERNEL_NFSD_V3_ACL_SUPPORT
  992. bool "Enable ACLs for NFSDv3"
  993. config KERNEL_REISER_FS_POSIX_ACL
  994. bool "Enable POSIX ACLs for ReiserFS"
  995. select KERNEL_FS_POSIX_ACL
  996. default y if USE_FS_ACL_ATTR
  997. config KERNEL_XFS_POSIX_ACL
  998. bool "Enable POSIX ACLs for XFS"
  999. select KERNEL_FS_POSIX_ACL
  1000. default y if USE_FS_ACL_ATTR
  1001. config KERNEL_JFS_POSIX_ACL
  1002. bool "Enable POSIX ACLs for JFS"
  1003. select KERNEL_FS_POSIX_ACL
  1004. default y if USE_FS_ACL_ATTR
  1005. endmenu
  1006. config KERNEL_DEVMEM
  1007. bool "/dev/mem virtual device support"
  1008. help
  1009. Say Y here if you want to support the /dev/mem device.
  1010. The /dev/mem device is used to access areas of physical
  1011. memory.
  1012. config KERNEL_DEVKMEM
  1013. bool "/dev/kmem virtual device support"
  1014. help
  1015. Say Y here if you want to support the /dev/kmem device. The
  1016. /dev/kmem device is rarely used, but can be used for certain
  1017. kind of kernel debugging operations.
  1018. config KERNEL_SQUASHFS_FRAGMENT_CACHE_SIZE
  1019. int "Number of squashfs fragments cached"
  1020. default 2 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
  1021. default 3
  1022. config KERNEL_SQUASHFS_XATTR
  1023. bool "Squashfs XATTR support"
  1024. #
  1025. # compile optimization setting
  1026. #
  1027. choice
  1028. prompt "Compiler optimization level"
  1029. default KERNEL_CC_OPTIMIZE_FOR_SIZE if SMALL_FLASH
  1030. config KERNEL_CC_OPTIMIZE_FOR_PERFORMANCE
  1031. bool "Optimize for performance"
  1032. help
  1033. This is the default optimization level for the kernel, building
  1034. with the "-O2" compiler flag for best performance and most
  1035. helpful compile-time warnings.
  1036. config KERNEL_CC_OPTIMIZE_FOR_SIZE
  1037. bool "Optimize for size"
  1038. help
  1039. Enabling this option will pass "-Os" instead of "-O2" to
  1040. your compiler resulting in a smaller kernel.
  1041. endchoice
  1042. config KERNEL_AUDIT
  1043. bool "Auditing support"
  1044. config KERNEL_SECURITY
  1045. bool "Enable different security models"
  1046. config KERNEL_SECURITY_NETWORK
  1047. bool "Socket and Networking Security Hooks"
  1048. select KERNEL_SECURITY
  1049. config KERNEL_SECURITY_SELINUX
  1050. bool "NSA SELinux Support"
  1051. select KERNEL_SECURITY_NETWORK
  1052. select KERNEL_AUDIT
  1053. config KERNEL_SECURITY_SELINUX_BOOTPARAM
  1054. bool "NSA SELinux boot parameter"
  1055. depends on KERNEL_SECURITY_SELINUX
  1056. default y
  1057. config KERNEL_SECURITY_SELINUX_DISABLE
  1058. bool "NSA SELinux runtime disable"
  1059. depends on KERNEL_SECURITY_SELINUX
  1060. config KERNEL_SECURITY_SELINUX_DEVELOP
  1061. bool "NSA SELinux Development Support"
  1062. depends on KERNEL_SECURITY_SELINUX
  1063. default y
  1064. config KERNEL_SECURITY_SELINUX_SIDTAB_HASH_BITS
  1065. int
  1066. depends on KERNEL_SECURITY_SELINUX
  1067. default 9
  1068. config KERNEL_SECURITY_SELINUX_SID2STR_CACHE_SIZE
  1069. int
  1070. depends on KERNEL_SECURITY_SELINUX
  1071. default 256
  1072. config KERNEL_LSM
  1073. string
  1074. default "lockdown,yama,loadpin,safesetid,integrity,selinux"
  1075. depends on KERNEL_SECURITY_SELINUX
  1076. config KERNEL_EXT4_FS_SECURITY
  1077. bool "Ext4 Security Labels"
  1078. config KERNEL_F2FS_FS_SECURITY
  1079. bool "F2FS Security Labels"
  1080. config KERNEL_UBIFS_FS_SECURITY
  1081. bool "UBIFS Security Labels"
  1082. config KERNEL_JFFS2_FS_SECURITY
  1083. bool "JFFS2 Security Labels"