Config-kernel.in 43 KB

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