Config-kernel.in 42 KB

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