Config-kernel.in 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  1. # Copyright (C) 2006-2014 OpenWrt.org
  2. #
  3. # This is free software, licensed under the GNU General Public License v2.
  4. # See /LICENSE for more information.
  5. #
  6. config KERNEL_BUILD_USER
  7. string "Custom Kernel Build User Name"
  8. default "builder" if BUILDBOT
  9. default ""
  10. help
  11. Sets the Kernel build user string, which for example will be returned
  12. by 'uname -a' on running systems.
  13. If not set, uses system user at build time.
  14. config KERNEL_BUILD_DOMAIN
  15. string "Custom Kernel Build Domain Name"
  16. default "buildhost" if BUILDBOT
  17. default ""
  18. help
  19. Sets the Kernel build domain string, which for example will be
  20. returned by 'uname -a' on running systems.
  21. If not set, uses system hostname at build time.
  22. config KERNEL_PRINTK
  23. bool "Enable support for printk"
  24. default y
  25. config KERNEL_CRASHLOG
  26. bool "Crash logging"
  27. depends on !(arm || powerpc || sparc || TARGET_uml || i386 || x86_64)
  28. default y
  29. config KERNEL_SWAP
  30. bool "Support for paging of anonymous memory (swap)"
  31. default y if !SMALL_FLASH
  32. config KERNEL_DEBUG_FS
  33. bool "Compile the kernel with debug filesystem enabled"
  34. default y
  35. help
  36. debugfs is a virtual file system that kernel developers use to put
  37. debugging files into. Enable this option to be able to read and
  38. write to these files. Many common debugging facilities, such as
  39. ftrace, require the existence of debugfs.
  40. config KERNEL_MIPS_FPU_EMULATOR
  41. bool "Compile the kernel with MIPS FPU Emulator"
  42. default y if TARGET_pistachio
  43. depends on (mips || mipsel || mips64 || mips64el)
  44. config KERNEL_ARM_PMU
  45. bool
  46. default n
  47. depends on (arm || aarch64)
  48. config KERNEL_X86_VSYSCALL_EMULATION
  49. bool "Enable vsyscall emulation"
  50. default n
  51. depends on x86_64
  52. help
  53. This enables emulation of the legacy vsyscall page. Disabling
  54. it is roughly equivalent to booting with vsyscall=none, except
  55. that it will also disable the helpful warning if a program
  56. tries to use a vsyscall. With this option set to N, offending
  57. programs will just segfault, citing addresses of the form
  58. 0xffffffffff600?00.
  59. This option is required by many programs built before 2013, and
  60. care should be used even with newer programs if set to N.
  61. Disabling this option saves about 7K of kernel size and
  62. possibly 4K of additional runtime pagetable memory.
  63. config KERNEL_PERF_EVENTS
  64. bool "Compile the kernel with performance events and counters"
  65. default n
  66. select KERNEL_ARM_PMU if (arm || aarch64)
  67. config KERNEL_PROFILING
  68. bool "Compile the kernel with profiling enabled"
  69. default n
  70. select KERNEL_PERF_EVENTS
  71. help
  72. Enable the extended profiling support mechanisms used by profilers such
  73. as OProfile.
  74. config KERNEL_TASKSTATS
  75. bool "Compile the kernel with task resource/io statistics and accounting"
  76. default n
  77. help
  78. Enable the collection and publishing of task/io statistics and
  79. accounting. Enable this option to enable i/o monitoring in system
  80. monitors.
  81. if KERNEL_TASKSTATS
  82. config KERNEL_TASK_DELAY_ACCT
  83. def_bool y
  84. config KERNEL_TASK_IO_ACCOUNTING
  85. def_bool y
  86. config KERNEL_TASK_XACCT
  87. def_bool y
  88. endif
  89. config KERNEL_KALLSYMS
  90. bool "Compile the kernel with symbol table information"
  91. default y if !SMALL_FLASH
  92. help
  93. This will give you more information in stack traces from kernel oopses.
  94. config KERNEL_FTRACE
  95. bool "Compile the kernel with tracing support"
  96. depends on !TARGET_uml
  97. default n
  98. config KERNEL_FTRACE_SYSCALLS
  99. bool "Trace system calls"
  100. depends on KERNEL_FTRACE
  101. default n
  102. config KERNEL_ENABLE_DEFAULT_TRACERS
  103. bool "Trace process context switches and events"
  104. depends on KERNEL_FTRACE
  105. default n
  106. config KERNEL_FUNCTION_TRACER
  107. bool "Function tracer"
  108. depends on KERNEL_FTRACE
  109. default n
  110. config KERNEL_FUNCTION_GRAPH_TRACER
  111. bool "Function graph tracer"
  112. depends on KERNEL_FUNCTION_TRACER
  113. default n
  114. config KERNEL_DYNAMIC_FTRACE
  115. bool "Enable/disable function tracing dynamically"
  116. depends on KERNEL_FUNCTION_TRACER
  117. default n
  118. config KERNEL_FUNCTION_PROFILER
  119. bool "Function profiler"
  120. depends on KERNEL_FUNCTION_TRACER
  121. default n
  122. config KERNEL_DEBUG_KERNEL
  123. bool
  124. default n
  125. config KERNEL_DEBUG_INFO
  126. bool "Compile the kernel with debug information"
  127. default y if !SMALL_FLASH
  128. select KERNEL_DEBUG_KERNEL
  129. help
  130. This will compile your kernel and modules with debug information.
  131. config KERNEL_DEBUG_LL_UART_NONE
  132. bool
  133. default n
  134. depends on arm
  135. config KERNEL_DEBUG_LL
  136. bool
  137. default n
  138. depends on arm
  139. select KERNEL_DEBUG_LL_UART_NONE
  140. help
  141. ARM low level debugging.
  142. config KERNEL_DYNAMIC_DEBUG
  143. bool "Compile the kernel with dynamic printk"
  144. select KERNEL_DEBUG_FS
  145. default n
  146. help
  147. Compiles debug level messages into the kernel, which would not
  148. otherwise be available at runtime. These messages can then be
  149. enabled/disabled based on various levels of scope - per source file,
  150. function, module, format string, and line number. This mechanism
  151. implicitly compiles in all pr_debug() and dev_dbg() calls, which
  152. enlarges the kernel text size by about 2%.
  153. config KERNEL_EARLY_PRINTK
  154. bool "Compile the kernel with early printk"
  155. default y if TARGET_bcm53xx
  156. default n
  157. depends on arm
  158. select KERNEL_DEBUG_KERNEL
  159. select KERNEL_DEBUG_LL if arm
  160. help
  161. Compile the kernel with early printk support. This is only useful for
  162. debugging purposes to send messages over the serial console in early boot.
  163. Enable this to debug early boot problems.
  164. config KERNEL_KPROBES
  165. bool "Compile the kernel with kprobes support"
  166. default n
  167. select KERNEL_FTRACE
  168. select KERNEL_PERF_EVENTS
  169. help
  170. Compiles the kernel with KPROBES support, which allows you to trap
  171. at almost any kernel address and execute a callback function.
  172. register_kprobe() establishes a probepoint and specifies the
  173. callback. Kprobes is useful for kernel debugging, non-intrusive
  174. instrumentation and testing.
  175. If in doubt, say "N".
  176. config KERNEL_KPROBE_EVENT
  177. bool
  178. default y if KERNEL_KPROBES
  179. config KERNEL_KPROBE_EVENTS
  180. bool
  181. default y if KERNEL_KPROBES
  182. config KERNEL_AIO
  183. bool "Compile the kernel with asynchronous IO support"
  184. default y if !SMALL_FLASH
  185. config KERNEL_FHANDLE
  186. bool "Compile the kernel with support for fhandle syscalls"
  187. default y if !SMALL_FLASH
  188. config KERNEL_FANOTIFY
  189. bool "Compile the kernel with modern file notification support"
  190. default y if !SMALL_FLASH
  191. config KERNEL_BLK_DEV_BSG
  192. bool "Compile the kernel with SCSI generic v4 support for any block device"
  193. default n
  194. config KERNEL_MAGIC_SYSRQ
  195. bool "Compile the kernel with SysRq support"
  196. default y
  197. config KERNEL_DEBUG_PINCTRL
  198. bool "Compile the kernel with pinctrl debugging"
  199. select KERNEL_DEBUG_KERNEL
  200. config KERNEL_DEBUG_GPIO
  201. bool "Compile the kernel with gpio debugging"
  202. select KERNEL_DEBUG_KERNEL
  203. config KERNEL_COREDUMP
  204. bool
  205. config KERNEL_ELF_CORE
  206. bool "Enable process core dump support"
  207. select KERNEL_COREDUMP
  208. default y if !SMALL_FLASH
  209. config KERNEL_PROVE_LOCKING
  210. bool "Enable kernel lock checking"
  211. select KERNEL_DEBUG_KERNEL
  212. default n
  213. config KERNEL_PRINTK_TIME
  214. bool "Enable printk timestamps"
  215. default y
  216. config KERNEL_SLUB_DEBUG
  217. bool
  218. config KERNEL_SLUB_DEBUG_ON
  219. bool
  220. config KERNEL_SLABINFO
  221. select KERNEL_SLUB_DEBUG
  222. select KERNEL_SLUB_DEBUG_ON
  223. bool "Enable /proc slab debug info"
  224. config KERNEL_PROC_PAGE_MONITOR
  225. bool "Enable /proc page monitoring"
  226. config KERNEL_RELAY
  227. bool
  228. config KERNEL_KEXEC
  229. bool "Enable kexec support"
  230. config KERNEL_PROC_VMCORE
  231. bool
  232. config KERNEL_CRASH_DUMP
  233. depends on i386 || x86_64 || arm || armeb
  234. select KERNEL_KEXEC
  235. select KERNEL_PROC_VMCORE
  236. bool "Enable support for kexec crashdump"
  237. default y
  238. config USE_RFKILL
  239. bool "Enable rfkill support"
  240. default RFKILL_SUPPORT
  241. config USE_SPARSE
  242. bool "Enable sparse check during kernel build"
  243. default n
  244. config KERNEL_DEVTMPFS
  245. bool "Compile the kernel with device tmpfs enabled"
  246. default n
  247. help
  248. devtmpfs is a simple, kernel-managed /dev filesystem. The kernel creates
  249. devices nodes for all registered devices to simplify boot, but leaves more
  250. complex tasks to userspace (e.g. udev).
  251. if KERNEL_DEVTMPFS
  252. config KERNEL_DEVTMPFS_MOUNT
  253. bool "Automatically mount devtmpfs after root filesystem is mounted"
  254. default n
  255. endif
  256. config KERNEL_KEYS
  257. bool "Enable kernel access key retention support"
  258. default n
  259. config KERNEL_PERSISTENT_KEYRINGS
  260. bool "Enable kernel persistent keyrings"
  261. depends on KERNEL_KEYS
  262. default n
  263. config KERNEL_BIG_KEYS
  264. bool "Enable large payload keys on kernel keyrings"
  265. depends on KERNEL_KEYS
  266. default n
  267. config KERNEL_ENCRYPTED_KEYS
  268. tristate "Enable keys with encrypted payloads on kernel keyrings"
  269. depends on KERNEL_KEYS
  270. default n
  271. #
  272. # CGROUP support symbols
  273. #
  274. config KERNEL_CGROUPS
  275. bool "Enable kernel cgroups"
  276. default y if !SMALL_FLASH
  277. if KERNEL_CGROUPS
  278. config KERNEL_CGROUP_DEBUG
  279. bool "Example debug cgroup subsystem"
  280. default n
  281. help
  282. This option enables a simple cgroup subsystem that
  283. exports useful debugging information about the cgroups
  284. framework.
  285. config KERNEL_FREEZER
  286. bool
  287. default y if KERNEL_CGROUP_FREEZER
  288. config KERNEL_CGROUP_FREEZER
  289. bool "Freezer cgroup subsystem"
  290. default y
  291. help
  292. Provides a way to freeze and unfreeze all tasks in a
  293. cgroup.
  294. config KERNEL_CGROUP_DEVICE
  295. bool "Device controller for cgroups"
  296. default y
  297. help
  298. Provides a cgroup implementing whitelists for devices which
  299. a process in the cgroup can mknod or open.
  300. config KERNEL_CGROUP_PIDS
  301. bool "PIDs cgroup subsystem"
  302. default y
  303. help
  304. Provides enforcement of process number limits in the scope of a
  305. cgroup.
  306. config KERNEL_CPUSETS
  307. bool "Cpuset support"
  308. default y if !SMALL_FLASH
  309. help
  310. This option will let you create and manage CPUSETs which
  311. allow dynamically partitioning a system into sets of CPUs and
  312. Memory Nodes and assigning tasks to run only within those sets.
  313. This is primarily useful on large SMP or NUMA systems.
  314. config KERNEL_PROC_PID_CPUSET
  315. bool "Include legacy /proc/<pid>/cpuset file"
  316. default n
  317. depends on KERNEL_CPUSETS
  318. config KERNEL_CGROUP_CPUACCT
  319. bool "Simple CPU accounting cgroup subsystem"
  320. default y if !SMALL_FLASH
  321. help
  322. Provides a simple Resource Controller for monitoring the
  323. total CPU consumed by the tasks in a cgroup.
  324. config KERNEL_RESOURCE_COUNTERS
  325. bool "Resource counters"
  326. default y if !SMALL_FLASH
  327. help
  328. This option enables controller independent resource accounting
  329. infrastructure that works with cgroups.
  330. config KERNEL_MM_OWNER
  331. bool
  332. default y if KERNEL_MEMCG
  333. config KERNEL_MEMCG
  334. bool "Memory Resource Controller for Control Groups"
  335. default y if !SMALL_FLASH
  336. depends on KERNEL_RESOURCE_COUNTERS || !LINUX_3_18
  337. help
  338. Provides a memory resource controller that manages both anonymous
  339. memory and page cache. (See Documentation/cgroups/memory.txt)
  340. Note that setting this option increases fixed memory overhead
  341. associated with each page of memory in the system. By this,
  342. 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
  343. usage tracking struct at boot. Total amount of this is printed out
  344. at boot.
  345. Only enable when you're ok with these tradeoffs and really
  346. sure you need the memory resource controller. Even when you enable
  347. this, you can set "cgroup_disable=memory" at your boot option to
  348. disable memory resource controller and you can avoid overheads
  349. (but lose benefits of memory resource controller).
  350. This config option also selects MM_OWNER config option, which
  351. could in turn add some fork/exit overhead.
  352. config KERNEL_MEMCG_SWAP
  353. bool "Memory Resource Controller Swap Extension"
  354. default n
  355. depends on KERNEL_MEMCG
  356. help
  357. Add swap management feature to memory resource controller. When you
  358. enable this, you can limit mem+swap usage per cgroup. In other words,
  359. when you disable this, memory resource controller has no cares to
  360. usage of swap...a process can exhaust all of the swap. This extension
  361. is useful when you want to avoid exhaustion swap but this itself
  362. adds more overheads and consumes memory for remembering information.
  363. Especially if you use 32bit system or small memory system, please
  364. be careful about enabling this. When memory resource controller
  365. is disabled by boot option, this will be automatically disabled and
  366. there will be no overhead from this. Even when you set this config=y,
  367. if boot option "swapaccount=0" is set, swap will not be accounted.
  368. Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
  369. size is 4096bytes, 512k per 1Gbytes of swap.
  370. config KERNEL_MEMCG_SWAP_ENABLED
  371. bool "Memory Resource Controller Swap Extension enabled by default"
  372. default n
  373. depends on KERNEL_MEMCG_SWAP
  374. help
  375. Memory Resource Controller Swap Extension comes with its price in
  376. a bigger memory consumption. General purpose distribution kernels
  377. which want to enable the feature but keep it disabled by default
  378. and let the user enable it by swapaccount boot command line
  379. parameter should have this option unselected.
  380. Those who want to have the feature enabled by default should
  381. select this option (if, for some reason, they need to disable it,
  382. then swapaccount=0 does the trick).
  383. config KERNEL_MEMCG_KMEM
  384. bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
  385. default y if !SMALL_FLASH
  386. depends on KERNEL_MEMCG
  387. help
  388. The Kernel Memory extension for Memory Resource Controller can limit
  389. the amount of memory used by kernel objects in the system. Those are
  390. fundamentally different from the entities handled by the standard
  391. Memory Controller, which are page-based, and can be swapped. Users of
  392. the kmem extension can use it to guarantee that no group of processes
  393. will ever exhaust kernel resources alone.
  394. config KERNEL_CGROUP_PERF
  395. bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
  396. select KERNEL_PERF_EVENTS
  397. default n
  398. help
  399. This option extends the per-cpu mode to restrict monitoring to
  400. threads which belong to the cgroup specified and run on the
  401. designated cpu.
  402. menuconfig KERNEL_CGROUP_SCHED
  403. bool "Group CPU scheduler"
  404. default y if !SMALL_FLASH
  405. help
  406. This feature lets CPU scheduler recognize task groups and control CPU
  407. bandwidth allocation to such task groups. It uses cgroups to group
  408. tasks.
  409. if KERNEL_CGROUP_SCHED
  410. config KERNEL_FAIR_GROUP_SCHED
  411. bool "Group scheduling for SCHED_OTHER"
  412. default y if !SMALL_FLASH
  413. config KERNEL_CFS_BANDWIDTH
  414. bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
  415. default n
  416. depends on KERNEL_FAIR_GROUP_SCHED
  417. help
  418. This option allows users to define CPU bandwidth rates (limits) for
  419. tasks running within the fair group scheduler. Groups with no limit
  420. set are considered to be unconstrained and will run with no
  421. restriction.
  422. See tip/Documentation/scheduler/sched-bwc.txt for more information.
  423. config KERNEL_RT_GROUP_SCHED
  424. bool "Group scheduling for SCHED_RR/FIFO"
  425. default y if !SMALL_FLASH
  426. help
  427. This feature lets you explicitly allocate real CPU bandwidth
  428. to task groups. If enabled, it will also make it impossible to
  429. schedule realtime tasks for non-root users until you allocate
  430. realtime bandwidth for them.
  431. endif
  432. config KERNEL_BLK_CGROUP
  433. bool "Block IO controller"
  434. default y
  435. help
  436. Generic block IO controller cgroup interface. This is the common
  437. cgroup interface which should be used by various IO controlling
  438. policies.
  439. Currently, CFQ IO scheduler uses it to recognize task groups and
  440. control disk bandwidth allocation (proportional time slice allocation)
  441. to such task groups. It is also used by bio throttling logic in
  442. block layer to implement upper limit in IO rates on a device.
  443. This option only enables generic Block IO controller infrastructure.
  444. One needs to also enable actual IO controlling logic/policy. For
  445. enabling proportional weight division of disk bandwidth in CFQ, set
  446. CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
  447. CONFIG_BLK_DEV_THROTTLING=y.
  448. if KERNEL_BLK_CGROUP
  449. config KERNEL_CFQ_GROUP_IOSCHED
  450. bool "Proportional weight of disk bandwidth in CFQ"
  451. config KERNEL_BLK_DEV_THROTTLING
  452. bool "Enable throttling policy"
  453. default y if TARGET_brcm2708
  454. config KERNEL_BLK_DEV_THROTTLING_LOW
  455. bool "Block throttling .low limit interface support (EXPERIMENTAL)"
  456. depends on KERNEL_BLK_DEV_THROTTLING
  457. endif
  458. config KERNEL_DEBUG_BLK_CGROUP
  459. bool "Enable Block IO controller debugging"
  460. default n
  461. depends on KERNEL_BLK_CGROUP
  462. help
  463. Enable some debugging help. Currently it exports additional stat
  464. files in a cgroup which can be useful for debugging.
  465. config KERNEL_NET_CLS_CGROUP
  466. bool "Control Group Classifier"
  467. default y
  468. config KERNEL_NETPRIO_CGROUP
  469. bool "Network priority cgroup"
  470. default y
  471. endif
  472. #
  473. # Namespace support symbols
  474. #
  475. config KERNEL_NAMESPACES
  476. bool "Enable kernel namespaces"
  477. default y if !SMALL_FLASH
  478. if KERNEL_NAMESPACES
  479. config KERNEL_UTS_NS
  480. bool "UTS namespace"
  481. default y
  482. help
  483. In this namespace, tasks see different info provided
  484. with the uname() system call.
  485. config KERNEL_IPC_NS
  486. bool "IPC namespace"
  487. default y
  488. help
  489. In this namespace, tasks work with IPC ids which correspond to
  490. different IPC objects in different namespaces.
  491. config KERNEL_USER_NS
  492. bool "User namespace (EXPERIMENTAL)"
  493. default y
  494. help
  495. This allows containers, i.e. vservers, to use user namespaces
  496. to provide different user info for different servers.
  497. config KERNEL_PID_NS
  498. bool "PID Namespaces"
  499. default y
  500. help
  501. Support process id namespaces. This allows having multiple
  502. processes with the same pid as long as they are in different
  503. pid namespaces. This is a building block of containers.
  504. config KERNEL_NET_NS
  505. bool "Network namespace"
  506. default y
  507. help
  508. Allow user space to create what appear to be multiple instances
  509. of the network stack.
  510. endif
  511. config KERNEL_DEVPTS_MULTIPLE_INSTANCES
  512. bool "Support multiple instances of devpts"
  513. default y if !SMALL_FLASH
  514. help
  515. Enable support for multiple instances of devpts filesystem.
  516. If you want to have isolated PTY namespaces (eg: in containers),
  517. say Y here. Otherwise, say N. If enabled, each mount of devpts
  518. filesystem with the '-o newinstance' option will create an
  519. independent PTY namespace.
  520. config KERNEL_POSIX_MQUEUE
  521. bool "POSIX Message Queues"
  522. default y if !SMALL_FLASH
  523. help
  524. POSIX variant of message queues is a part of IPC. In POSIX message
  525. queues every message has a priority which decides about succession
  526. of receiving it by a process. If you want to compile and run
  527. programs written e.g. for Solaris with use of its POSIX message
  528. queues (functions mq_*) say Y here.
  529. POSIX message queues are visible as a filesystem called 'mqueue'
  530. and can be mounted somewhere if you want to do filesystem
  531. operations on message queues.
  532. config KERNEL_SECCOMP_FILTER
  533. bool
  534. default y if !SMALL_FLASH
  535. config KERNEL_SECCOMP
  536. bool "Enable seccomp support"
  537. depends on !(TARGET_uml)
  538. select KERNEL_SECCOMP_FILTER
  539. default y if !SMALL_FLASH
  540. help
  541. Build kernel with support for seccomp.
  542. #
  543. # IPv4 configuration
  544. #
  545. config KERNEL_IP_MROUTE
  546. bool "Enable IPv4 multicast routing"
  547. default y
  548. help
  549. Multicast routing requires a multicast routing daemon in
  550. addition to kernel support.
  551. #
  552. # IPv6 configuration
  553. #
  554. config KERNEL_IPV6
  555. def_bool IPV6
  556. if KERNEL_IPV6
  557. config KERNEL_IPV6_MULTIPLE_TABLES
  558. def_bool y
  559. config KERNEL_IPV6_SUBTREES
  560. def_bool y
  561. config KERNEL_IPV6_MROUTE
  562. bool "Enable IPv6 multicast routing"
  563. default y
  564. help
  565. Multicast routing requires a multicast routing daemon in
  566. addition to kernel support.
  567. config KERNEL_IPV6_PIMSM_V2
  568. def_bool n
  569. endif
  570. #
  571. # NFS related symbols
  572. #
  573. config KERNEL_IP_PNP
  574. bool "Compile the kernel with rootfs on NFS"
  575. help
  576. If you want to make your kernel boot off a NFS server as root
  577. filesystem, select Y here.
  578. if KERNEL_IP_PNP
  579. config KERNEL_IP_PNP_DHCP
  580. def_bool y
  581. config KERNEL_IP_PNP_BOOTP
  582. def_bool n
  583. config KERNEL_IP_PNP_RARP
  584. def_bool n
  585. config KERNEL_NFS_FS
  586. def_bool y
  587. config KERNEL_NFS_V2
  588. def_bool y
  589. config KERNEL_NFS_V3
  590. def_bool y
  591. config KERNEL_ROOT_NFS
  592. def_bool y
  593. endif
  594. menu "Filesystem ACL and attr support options"
  595. config USE_FS_ACL_ATTR
  596. bool "Use filesystem ACL and attr support by default"
  597. default n
  598. help
  599. Make using ACLs (e.g. POSIX ACL, NFSv4 ACL) the default
  600. for kernel and packages, except tmpfs, flash filesystems,
  601. and old NFS. Also enable userspace extended attribute support
  602. by default. (OpenWrt already has an expection it will be
  603. present in the kernel).
  604. config KERNEL_FS_POSIX_ACL
  605. bool "Enable POSIX ACL support"
  606. default y if USE_FS_ACL_ATTR
  607. config KERNEL_BTRFS_FS_POSIX_ACL
  608. bool "Enable POSIX ACL for BtrFS Filesystems"
  609. select KERNEL_FS_POSIX_ACL
  610. default y if USE_FS_ACL_ATTR
  611. config KERNEL_EXT4_FS_POSIX_ACL
  612. bool "Enable POSIX ACL for Ext4 Filesystems"
  613. select KERNEL_FS_POSIX_ACL
  614. default y if USE_FS_ACL_ATTR
  615. config KERNEL_F2FS_FS_POSIX_ACL
  616. bool "Enable POSIX ACL for F2FS Filesystems"
  617. select KERNEL_FS_POSIX_ACL
  618. default n
  619. config KERNEL_JFFS2_FS_POSIX_ACL
  620. bool "Enable POSIX ACL for JFFS2 Filesystems"
  621. select KERNEL_FS_POSIX_ACL
  622. default n
  623. config KERNEL_TMPFS_POSIX_ACL
  624. bool "Enable POSIX ACL for TMPFS Filesystems"
  625. select KERNEL_FS_POSIX_ACL
  626. default n
  627. config KERNEL_CIFS_ACL
  628. bool "Enable CIFS ACLs"
  629. select KERNEL_FS_POSIX_ACL
  630. default y if USE_FS_ACL_ATTR
  631. config KERNEL_HFS_FS_POSIX_ACL
  632. bool "Enable POSIX ACL for HFS Filesystems"
  633. select KERNEL_FS_POSIX_ACL
  634. default y if USE_FS_ACL_ATTR
  635. config KERNEL_HFSPLUG_FS_POSIX_ACL
  636. bool "Enable POSIX ACL for HFS+ Filesystems"
  637. select KERNEL_FS_POSIX_ACL
  638. default y if USE_FS_ACL_ATTR
  639. config KERNEL_NFS_ACL_SUPPORT
  640. bool "Enable ACLs for NFS"
  641. default y if USE_FS_ACL_ATTR
  642. config KERNEL_NFS_V3_ACL_SUPPORT
  643. bool "Enable ACLs for NFSv3"
  644. default n
  645. config KERNEL_NFSD_V2_ACL_SUPPORT
  646. bool "Enable ACLs for NFSDv2"
  647. default n
  648. config KERNEL_NFSD_V3_ACL_SUPPORT
  649. bool "Enable ACLs for NFSDv3"
  650. default n
  651. config KERNEL_REISER_FS_POSIX_ACL
  652. bool "Enable POSIX ACLs for ReiserFS"
  653. select KERNEL_FS_POSIX_ACL
  654. default y if USE_FS_ACL_ATTR
  655. config KERNEL_XFS_POSIX_ACL
  656. bool "Enable POSIX ACLs for XFS"
  657. select KERNEL_FS_POSIX_ACL
  658. default y if USE_FS_ACL_ATTR
  659. config KERNEL_JFS_POSIX_ACL
  660. bool "Enable POSIX ACLs for JFS"
  661. select KERNEL_FS_POSIX_ACL
  662. default y if USE_FS_ACL_ATTR
  663. endmenu
  664. config KERNEL_DEVMEM
  665. bool "/dev/mem virtual device support"
  666. help
  667. Say Y here if you want to support the /dev/mem device.
  668. The /dev/mem device is used to access areas of physical
  669. memory.
  670. config KERNEL_DEVKMEM
  671. bool "/dev/kmem virtual device support"
  672. help
  673. Say Y here if you want to support the /dev/kmem device. The
  674. /dev/kmem device is rarely used, but can be used for certain
  675. kind of kernel debugging operations.
  676. config KERNEL_SQUASHFS_FRAGMENT_CACHE_SIZE
  677. int "Number of squashfs fragments cached"
  678. default 2 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
  679. default 3
  680. #
  681. # compile optimiziation setting
  682. #
  683. choice
  684. prompt "Compiler optimization level"
  685. default KERNEL_CC_OPTIMIZE_FOR_SIZE if SMALL_FLASH
  686. config KERNEL_CC_OPTIMIZE_FOR_PERFORMANCE
  687. bool "Optimize for performance"
  688. help
  689. This is the default optimization level for the kernel, building
  690. with the "-O2" compiler flag for best performance and most
  691. helpful compile-time warnings.
  692. config KERNEL_CC_OPTIMIZE_FOR_SIZE
  693. bool "Optimize for size"
  694. help
  695. Enabling this option will pass "-Os" instead of "-O2" to
  696. your compiler resulting in a smaller kernel.
  697. endchoice