Config-kernel.in 41 KB

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