Config-kernel.in 41 KB

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