Config-kernel.in 42 KB

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