Config-kernel.in 44 KB

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