Config-kernel.in 42 KB

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