Config-kernel.in 42 KB

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