Config.in 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898
  1. # Copyright (C) 2006-2012 OpenWrt.org
  2. #
  3. # This is free software, licensed under the GNU General Public License v2.
  4. # See /LICENSE for more information.
  5. #
  6. mainmenu "OpenWrt Configuration"
  7. config MODULES
  8. bool
  9. default y
  10. config HAVE_DOT_CONFIG
  11. bool
  12. default y
  13. source "target/Config.in"
  14. menu "Target Images"
  15. menuconfig TARGET_ROOTFS_INITRAMFS
  16. bool "ramdisk"
  17. default y if USES_INITRAMFS
  18. help
  19. Embed the rootfs into the kernel (initramfs)
  20. choice
  21. prompt "Compression"
  22. default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ar71xx
  23. default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
  24. default TARGET_INITRAMFS_COMPRESSION_NONE
  25. depends on TARGET_ROOTFS_INITRAMFS
  26. help
  27. Select ramdisk compression.
  28. config TARGET_INITRAMFS_COMPRESSION_NONE
  29. bool "none"
  30. config TARGET_INITRAMFS_COMPRESSION_GZIP
  31. bool "gzip"
  32. config TARGET_INITRAMFS_COMPRESSION_BZIP2
  33. bool "bzip2"
  34. config TARGET_INITRAMFS_COMPRESSION_LZMA
  35. bool "lzma"
  36. config TARGET_INITRAMFS_COMPRESSION_LZO
  37. bool "lzo"
  38. config TARGET_INITRAMFS_COMPRESSION_XZ
  39. bool "xz"
  40. endchoice
  41. config EXTERNAL_CPIO
  42. string
  43. prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
  44. default ""
  45. help
  46. Kernel uses specified external cpio as INITRAMFS_SOURCE
  47. comment "Root filesystem archives"
  48. config TARGET_ROOTFS_CPIOGZ
  49. bool "cpio.gz"
  50. default y if USES_CPIOGZ
  51. help
  52. Build a compressed cpio archive of the the root filesystem
  53. config TARGET_ROOTFS_TARGZ
  54. bool "tar.gz"
  55. default y if USES_TARGZ
  56. help
  57. Build a compressed tar archive of the the root filesystem
  58. comment "Root filesystem images"
  59. config TARGET_ROOTFS_EXT4FS
  60. bool "ext4"
  61. default y if USES_EXT4
  62. help
  63. Ext4 file system with some free space for uml images
  64. config TARGET_ROOTFS_ISO
  65. bool "iso"
  66. default n
  67. depends on TARGET_x86_generic
  68. help
  69. Create some bootable ISO image
  70. config TARGET_ROOTFS_JFFS2
  71. bool "jffs2"
  72. default y if USES_JFFS2
  73. help
  74. Build a jffs2 root filesystem
  75. config TARGET_ROOTFS_JFFS2_NAND
  76. bool "jffs2 for NAND"
  77. default y if USES_JFFS2_NAND
  78. depends on USES_JFFS2_NAND
  79. help
  80. Build a jffs2 root filesystem for NAND flash
  81. config TARGET_ROOTFS_SQUASHFS
  82. bool "squashfs"
  83. default y if USES_SQUASHFS
  84. help
  85. Build a squashfs-lzma root filesystem
  86. config TARGET_ROOTFS_UBIFS
  87. bool "ubifs"
  88. default y if USES_UBIFS
  89. depends on USES_UBIFS
  90. help
  91. Build a ubifs root filesystem
  92. comment "Image Options"
  93. source "target/linux/*/image/Config.in"
  94. config TARGET_ROOTFS_PARTSIZE
  95. int "Root filesystem partition size (in MB)"
  96. depends on X86_GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
  97. default 48
  98. help
  99. Allows you to change the root filesystem partition size
  100. config TARGET_ROOTFS_MAXINODE
  101. int "Maximum number of inodes in root filesystem"
  102. depends on TARGET_ROOTFS_EXT4FS
  103. default 6000
  104. help
  105. Allows you to change the maximum number of inodes in the root filesystem
  106. config TARGET_ROOTFS_RESERVED_PCT
  107. int "Percentage of reserved blocks in root filesystem"
  108. depends on TARGET_ROOTFS_EXT4FS
  109. default 0
  110. help
  111. Allows you to change the percentage of reserved blocks in the root filesystem
  112. config TARGET_ROOTFS_INCLUDE_KERNEL
  113. bool "Include kernel in root filesystem"
  114. depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
  115. default n if USES_UBIFS
  116. help
  117. Include the kernel image in the rootfs. Typically the image is placed
  118. below /boot.
  119. config TARGET_ROOTFS_INCLUDE_DTB
  120. bool "Include DTB in root filesystem"
  121. depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
  122. default n if USES_UBIFS
  123. help
  124. Include the device tree blob file(s) in the rootfs. Typically the DTBs
  125. are placed below /boot.
  126. endmenu
  127. menu "Global build settings"
  128. config ALL
  129. bool "Select all packages by default"
  130. default n
  131. comment "General build options"
  132. config DISPLAY_SUPPORT
  133. bool "Show packages that require graphics support (local or remote)"
  134. default n
  135. config BUILD_PATENTED
  136. default y
  137. bool "Compile with support for patented functionality"
  138. help
  139. When this option is disabled, software which provides patented functionality will not be built.
  140. In case software provides optional support for patented functionality,
  141. this optional support will get disabled for this package.
  142. config BUILD_NLS
  143. default n
  144. bool "Compile with full language support"
  145. help
  146. When this option is enabled, packages are built with the full versions of iconv and GNU gettext
  147. instead of the default OpenWrt stubs. If uClibc is used, it is also built with locale support.
  148. config BUILD_STATIC_TOOLS
  149. default n
  150. bool "Attempt to link host utilities statically"
  151. help
  152. Linking host utilities like sed or firmware-utils statically increases the portability of the
  153. generated ImageBuilder and SDK tarballs, however it may fail on some Linux distributions.
  154. config SHADOW_PASSWORDS
  155. bool
  156. prompt "Enable shadow password support"
  157. default y
  158. help
  159. Enable shadow password support.
  160. config CLEAN_IPKG
  161. bool
  162. prompt "Remove ipkg/opkg status data files in final images"
  163. default n
  164. help
  165. This removes all ipkg/opkg status data files from the target directory before building the root fs
  166. config COLLECT_KERNEL_DEBUG
  167. bool
  168. prompt "Collect kernel debug information"
  169. select KERNEL_DEBUG_INFO
  170. default n
  171. help
  172. This collects debugging symbols from the kernel and all compiled modules.
  173. Useful for release builds, so that kernel issues can be debugged offline later.
  174. comment "Kernel build options"
  175. config KERNEL_DEBUG_FS
  176. bool "Compile the kernel with Debug FileSystem enabled"
  177. default y
  178. help
  179. debugfs is a virtual file system that kernel developers use to put
  180. debugging files into. Enable this option to be able to read and
  181. write to these files.
  182. config KERNEL_PERF_EVENTS
  183. bool
  184. default n
  185. config KERNEL_PROFILING
  186. bool "Compile the kernel with profiling enabled"
  187. default n
  188. select KERNEL_PERF_EVENTS
  189. help
  190. Enable the extended profiling support mechanisms used by profilers such
  191. as OProfile.
  192. config KERNEL_KALLSYMS
  193. bool "Compile the kernel with symbol table information"
  194. default y
  195. help
  196. This will give you more information in stack traces from kernel oopses
  197. config KERNEL_FTRACE
  198. bool "Compile the kernel with tracing support"
  199. default n
  200. config KERNEL_FTRACE_SYSCALLS
  201. bool "Trace system calls"
  202. depends on KERNEL_FTRACE
  203. default n
  204. config KERNEL_ENABLE_DEFAULT_TRACERS
  205. bool "Trace process context switches and events"
  206. depends on KERNEL_FTRACE
  207. default n
  208. config KERNEL_DEBUG_KERNEL
  209. bool
  210. default n
  211. config KERNEL_DEBUG_INFO
  212. bool "Compile the kernel with debug information"
  213. default y
  214. select KERNEL_DEBUG_KERNEL
  215. help
  216. This will compile your kernel and modules with debug information.
  217. config KERNEL_DEBUG_LL_UART_NONE
  218. bool
  219. default n
  220. depends on arm
  221. config KERNEL_DEBUG_LL
  222. bool
  223. default n
  224. depends on arm
  225. select KERNEL_DEBUG_LL_UART_NONE
  226. help
  227. ARM low level debugging
  228. config KERNEL_EARLY_PRINTK
  229. bool "Compile the kernel with early printk"
  230. default n
  231. depends on arm
  232. select KERNEL_DEBUG_KERNEL
  233. select KERNEL_DEBUG_LL if arm
  234. help
  235. Compile the kernel with early printk support.
  236. This is only useful for debugging purposes to send messages
  237. over the serial console in early boot.
  238. Enable this to debug early boot problems.
  239. config KERNEL_AIO
  240. bool "Compile the kernel with asynchronous IO support"
  241. default n
  242. config KERNEL_DIRECT_IO
  243. bool "Compile the kernel with direct IO support"
  244. default n
  245. config KERNEL_MAGIC_SYSRQ
  246. bool "Compile the kernel with SysRq support"
  247. default y
  248. config KERNEL_COREDUMP
  249. bool
  250. config KERNEL_ELF_CORE
  251. bool "Enable process core dump support"
  252. select KERNEL_COREDUMP
  253. default y
  254. config KERNEL_PROVE_LOCKING
  255. bool "Enable kernel lock checking"
  256. select KERNEL_DEBUG_KERNEL
  257. default n
  258. config KERNEL_PRINTK_TIME
  259. bool "Enable printk timestamps"
  260. default y
  261. config KERNEL_RELAY
  262. bool
  263. config KERNEL_KEXEC
  264. bool "Enable kexec support"
  265. config USE_RFKILL
  266. bool "Enable rfkill support"
  267. default RFKILL_SUPPORT
  268. #
  269. # CGROUP support symbols
  270. #
  271. config KERNEL_CGROUPS
  272. bool "Enable kernel cgroups"
  273. default n
  274. if KERNEL_CGROUPS
  275. config KERNEL_CGROUP_DEBUG
  276. bool "Example debug cgroup subsystem"
  277. default n
  278. help
  279. This option enables a simple cgroup subsystem that
  280. exports useful debugging information about the cgroups
  281. framework.
  282. config KERNEL_FREEZER
  283. bool
  284. default y if KERNEL_CGROUP_FREEZER
  285. config KERNEL_CGROUP_FREEZER
  286. bool "Freezer cgroup subsystem"
  287. default n
  288. help
  289. Provides a way to freeze and unfreeze all tasks in a
  290. cgroup.
  291. config KERNEL_CGROUP_DEVICE
  292. bool "Device controller for cgroups"
  293. default y
  294. help
  295. Provides a cgroup implementing whitelists for devices which
  296. a process in the cgroup can mknod or open.
  297. config KERNEL_CPUSETS
  298. bool "Cpuset support"
  299. default n
  300. help
  301. This option will let you create and manage CPUSETs which
  302. allow dynamically partitioning a system into sets of CPUs and
  303. Memory Nodes and assigning tasks to run only within those sets.
  304. This is primarily useful on large SMP or NUMA systems.
  305. config KERNEL_PROC_PID_CPUSET
  306. bool "Include legacy /proc/<pid>/cpuset file"
  307. default n
  308. depends on KERNEL_CPUSETS
  309. config KERNEL_CGROUP_CPUACCT
  310. bool "Simple CPU accounting cgroup subsystem"
  311. default n
  312. help
  313. Provides a simple Resource Controller for monitoring the
  314. total CPU consumed by the tasks in a cgroup.
  315. config KERNEL_RESOURCE_COUNTERS
  316. bool "Resource counters"
  317. default n
  318. help
  319. This option enables controller independent resource accounting
  320. infrastructure that works with cgroups.
  321. config KERNEL_MM_OWNER
  322. bool
  323. default y if KERNEL_MEMCG
  324. config KERNEL_MEMCG
  325. bool "Memory Resource Controller for Control Groups"
  326. default n
  327. depends on KERNEL_RESOURCE_COUNTERS
  328. help
  329. Provides a memory resource controller that manages both anonymous
  330. memory and page cache. (See Documentation/cgroups/memory.txt)
  331. Note that setting this option increases fixed memory overhead
  332. associated with each page of memory in the system. By this,
  333. 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
  334. usage tracking struct at boot. Total amount of this is printed out
  335. at boot.
  336. Only enable when you're ok with these trade offs and really
  337. sure you need the memory resource controller. Even when you enable
  338. this, you can set "cgroup_disable=memory" at your boot option to
  339. disable memory resource controller and you can avoid overheads.
  340. (and lose benefits of memory resource controller)
  341. This config option also selects MM_OWNER config option, which
  342. could in turn add some fork/exit overhead.
  343. config KERNEL_MEMCG_SWAP
  344. bool "Memory Resource Controller Swap Extension"
  345. default n
  346. depends on KERNEL_MEMCG
  347. help
  348. Add swap management feature to memory resource controller. When you
  349. enable this, you can limit mem+swap usage per cgroup. In other words,
  350. when you disable this, memory resource controller has no cares to
  351. usage of swap...a process can exhaust all of the swap. This extension
  352. is useful when you want to avoid exhaustion swap but this itself
  353. adds more overheads and consumes memory for remembering information.
  354. Especially if you use 32bit system or small memory system, please
  355. be careful about enabling this. When memory resource controller
  356. is disabled by boot option, this will be automatically disabled and
  357. there will be no overhead from this. Even when you set this config=y,
  358. if boot option "swapaccount=0" is set, swap will not be accounted.
  359. Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
  360. size is 4096bytes, 512k per 1Gbytes of swap.
  361. config KERNEL_MEMCG_SWAP_ENABLED
  362. bool "Memory Resource Controller Swap Extension enabled by default"
  363. default n
  364. depends on KERNEL_MEMCG_SWAP
  365. help
  366. Memory Resource Controller Swap Extension comes with its price in
  367. a bigger memory consumption. General purpose distribution kernels
  368. which want to enable the feature but keep it disabled by default
  369. and let the user enable it by swapaccount boot command line
  370. parameter should have this option unselected.
  371. For those who want to have the feature enabled by default should
  372. select this option (if, for some reason, they need to disable it
  373. then swapaccount=0 does the trick).
  374. config KERNEL_MEMCG_KMEM
  375. bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
  376. default n
  377. depends on KERNEL_MEMCG
  378. help
  379. The Kernel Memory extension for Memory Resource Controller can limit
  380. the amount of memory used by kernel objects in the system. Those are
  381. fundamentally different from the entities handled by the standard
  382. Memory Controller, which are page-based, and can be swapped. Users of
  383. the kmem extension can use it to guarantee that no group of processes
  384. will ever exhaust kernel resources alone.
  385. config KERNEL_CGROUP_PERF
  386. bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
  387. default n
  388. select KERNEL_PERF_EVENTS
  389. help
  390. This option extends the per-cpu mode to restrict monitoring to
  391. threads which belong to the cgroup specified and run on the
  392. designated cpu.
  393. menuconfig KERNEL_CGROUP_SCHED
  394. bool "Group CPU scheduler"
  395. default n
  396. help
  397. This feature lets CPU scheduler recognize task groups and control CPU
  398. bandwidth allocation to such task groups. It uses cgroups to group
  399. tasks.
  400. if KERNEL_CGROUP_SCHED
  401. config KERNEL_FAIR_GROUP_SCHED
  402. bool "Group scheduling for SCHED_OTHER"
  403. default n
  404. config KERNEL_CFS_BANDWIDTH
  405. bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
  406. default n
  407. depends on KERNEL_FAIR_GROUP_SCHED
  408. help
  409. This option allows users to define CPU bandwidth rates (limits) for
  410. tasks running within the fair group scheduler. Groups with no limit
  411. set are considered to be unconstrained and will run with no
  412. restriction.
  413. See tip/Documentation/scheduler/sched-bwc.txt for more information.
  414. config KERNEL_RT_GROUP_SCHED
  415. bool "Group scheduling for SCHED_RR/FIFO"
  416. default n
  417. help
  418. This feature lets you explicitly allocate real CPU bandwidth
  419. to task groups. If enabled, it will also make it impossible to
  420. schedule realtime tasks for non-root users until you allocate
  421. realtime bandwidth for them.
  422. endif
  423. config KERNEL_BLK_CGROUP
  424. bool "Block IO controller"
  425. default y
  426. help
  427. Generic block IO controller cgroup interface. This is the common
  428. cgroup interface which should be used by various IO controlling
  429. policies.
  430. Currently, CFQ IO scheduler uses it to recognize task groups and
  431. control disk bandwidth allocation (proportional time slice allocation)
  432. to such task groups. It is also used by bio throttling logic in
  433. block layer to implement upper limit in IO rates on a device.
  434. This option only enables generic Block IO controller infrastructure.
  435. One needs to also enable actual IO controlling logic/policy. For
  436. enabling proportional weight division of disk bandwidth in CFQ, set
  437. CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
  438. CONFIG_BLK_DEV_THROTTLING=y.
  439. config KERNEL_DEBUG_BLK_CGROUP
  440. bool "Enable Block IO controller debugging"
  441. default n
  442. depends on KERNEL_BLK_CGROUP
  443. help
  444. Enable some debugging help. Currently it exports additional stat
  445. files in a cgroup which can be useful for debugging.
  446. config KERNEL_NET_CLS_CGROUP
  447. bool "Control Group Classifier"
  448. default y
  449. config KERNEL_NETPRIO_CGROUP
  450. bool "Network priority cgroup"
  451. default y
  452. endif
  453. #
  454. # Namespace support symbols
  455. #
  456. config KERNEL_NAMESPACES
  457. bool "Enable kernel namespaces"
  458. default n
  459. if KERNEL_NAMESPACES
  460. config KERNEL_UTS_NS
  461. bool "UTS namespace"
  462. default y
  463. help
  464. In this namespace tasks see different info provided
  465. with the uname() system call
  466. config KERNEL_IPC_NS
  467. bool "IPC namespace"
  468. default y
  469. help
  470. In this namespace tasks work with IPC ids which correspond to
  471. different IPC objects in different namespaces.
  472. config KERNEL_USER_NS
  473. bool "User namespace (EXPERIMENTAL)"
  474. default y
  475. help
  476. This allows containers, i.e. vservers, to use user namespaces
  477. to provide different user info for different servers.
  478. config KERNEL_PID_NS
  479. bool "PID Namespaces"
  480. default y
  481. help
  482. Support process id namespaces. This allows having multiple
  483. processes with the same pid as long as they are in different
  484. pid namespaces. This is a building block of containers.
  485. config KERNEL_NET_NS
  486. bool "Network namespace"
  487. default y
  488. help
  489. Allow user space to create what appear to be multiple instances
  490. of the network stack.
  491. endif
  492. #
  493. # LXC related symbols
  494. #
  495. config KERNEL_LXC_MISC
  496. bool "Enable miscellaneous LXC related options"
  497. default n
  498. if KERNEL_LXC_MISC
  499. config KERNEL_DEVPTS_MULTIPLE_INSTANCES
  500. bool "Support multiple instances of devpts"
  501. default y
  502. help
  503. Enable support for multiple instances of devpts filesystem.
  504. If you want to have isolated PTY namespaces (eg: in containers),
  505. say Y here. Otherwise, say N. If enabled, each mount of devpts
  506. filesystem with the '-o newinstance' option will create an
  507. independent PTY namespace.
  508. config KERNEL_POSIX_MQUEUE
  509. bool "POSIX Message Queues"
  510. default n
  511. help
  512. POSIX variant of message queues is a part of IPC. In POSIX message
  513. queues every message has a priority which decides about succession
  514. of receiving it by a process. If you want to compile and run
  515. programs written e.g. for Solaris with use of its POSIX message
  516. queues (functions mq_*) say Y here.
  517. POSIX message queues are visible as a filesystem called 'mqueue'
  518. and can be mounted somewhere if you want to do filesystem
  519. operations on message queues.
  520. endif
  521. comment "Package build options"
  522. config DEBUG
  523. bool
  524. prompt "Compile packages with debugging info"
  525. default n
  526. help
  527. Adds -g3 to the CFLAGS
  528. config IPV6
  529. bool
  530. prompt "Enable IPv6 support in packages"
  531. default y
  532. help
  533. Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
  534. config PKG_BUILD_PARALLEL
  535. bool
  536. prompt "Compile certain packages parallelized"
  537. default y
  538. help
  539. This adds a -jX option to certain packages that are known to
  540. behave well for parallel build. By default the package make processes
  541. use the main jobserver, in which case this option only takes effect
  542. when you add -jX to the make command.
  543. If you are unsure, select N.
  544. config PKG_BUILD_USE_JOBSERVER
  545. bool
  546. prompt "Use top-level make jobserver for packages"
  547. depends on PKG_BUILD_PARALLEL
  548. default y
  549. help
  550. This passes the main make process jobserver fds to package builds,
  551. enabling full parallelization across different packages
  552. Note that disabling this may overcommit CPU resources depending on the
  553. -j level of the main make process, the number of package
  554. submake jobs selected below and the number of actual CPUs present.
  555. Example: If the main make is passed a -j4 and the submake -j
  556. is also set to 4, we may end up with 16 parallel make processes
  557. in the worst case.
  558. config PKG_BUILD_JOBS
  559. int
  560. prompt "Number of package submake jobs (2-512)"
  561. range 2 512
  562. default 2
  563. depends on PKG_BUILD_PARALLEL && !PKG_BUILD_USE_JOBSERVER
  564. help
  565. The number of jobs (-jX) to pass to packages submake.
  566. config PKG_DEFAULT_PARALLEL
  567. bool
  568. prompt "Parallelize the default package build rule (May break build)"
  569. depends on PKG_BUILD_PARALLEL
  570. depends on BROKEN
  571. default n
  572. help
  573. Always set the default package build rules to parallel build.
  574. WARNING: This may break build or kill your cat, as it builds
  575. packages with multiple jobs that are probably not tested in
  576. a parallel build environment.
  577. Only say Y, if you don't mind fixing broken packages.
  578. Before reporting build bugs, set this to N and re-run the build.
  579. comment "Stripping options"
  580. choice
  581. prompt "Binary stripping method"
  582. default USE_STRIP if EXTERNAL_TOOLCHAIN
  583. default USE_STRIP if USE_GLIBC || USE_EGLIBC || USE_MUSL
  584. default USE_SSTRIP
  585. help
  586. Select the binary stripping method you wish to use.
  587. config NO_STRIP
  588. bool "none"
  589. help
  590. This will install unstripped binaries (useful for native compiling/debugging)
  591. config USE_STRIP
  592. bool "strip"
  593. help
  594. This will install binaries stripped using strip from binutils
  595. config USE_SSTRIP
  596. bool "sstrip"
  597. depends on !DEBUG
  598. depends on !USE_GLIBC
  599. depends on !USE_EGLIBC
  600. help
  601. This will install binaries stripped using sstrip
  602. endchoice
  603. config STRIP_ARGS
  604. string
  605. prompt "Strip arguments"
  606. depends on USE_STRIP
  607. default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
  608. default "--strip-all"
  609. help
  610. Specifies arguments passed to the strip command when stripping binaries
  611. config STRIP_KERNEL_EXPORTS
  612. bool "Strip unnecessary exports from the kernel image"
  613. help
  614. Reduces kernel size by stripping unused kernel exports from the kernel image
  615. Note that this might make the kernel incompatible with any kernel modules that
  616. were not selected at the time the kernel image was created
  617. config USE_MKLIBS
  618. bool "Strip unnecessary functions from libraries"
  619. help
  620. Reduces libraries to only those functions that are necessary for using all
  621. selected packages (including those selected as <M>)
  622. Note that this will make the system libraries incompatible with most of the packages
  623. that are not selected during the build process
  624. choice
  625. prompt "Preferred standard C++ library"
  626. default USE_LIBSTDCXX if USE_EGLIBC
  627. default USE_UCLIBCXX
  628. help
  629. Select the preferred standard C++ library for all packages that support this.
  630. config USE_UCLIBCXX
  631. bool "uClibc++"
  632. config USE_LIBSTDCXX
  633. bool "libstdc++"
  634. endchoice
  635. endmenu
  636. menuconfig DEVEL
  637. bool "Advanced configuration options (for developers)"
  638. default n
  639. config BROKEN
  640. bool "Show broken platforms / packages" if DEVEL
  641. default n
  642. config DOWNLOAD_FOLDER
  643. string "Download folder" if DEVEL
  644. default ""
  645. config LOCALMIRROR
  646. string "Local mirror for source packages" if DEVEL
  647. default ""
  648. config AUTOREBUILD
  649. bool "Automatic rebuild of packages" if DEVEL
  650. default y
  651. help
  652. Automatically rebuild packages when their files change
  653. config BUILD_SUFFIX
  654. string "Build suffix to append to the BUILD_DIR variable" if DEVEL
  655. default ""
  656. help
  657. Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
  658. config TARGET_ROOTFS_DIR
  659. string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
  660. default ""
  661. help
  662. Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
  663. Use this option to re-define the location of the target root file system directory.
  664. config CCACHE
  665. bool "Use ccache" if DEVEL
  666. default n
  667. help
  668. Compiler cache; see http://ccache.samba.org/
  669. config EXTERNAL_KERNEL_TREE
  670. string "Use external kernel tree" if DEVEL
  671. default ""
  672. config KERNEL_GIT_CLONE_URI
  673. string "Enter git repository to clone" if DEVEL
  674. default ""
  675. help
  676. Enter the full git repository path i.e.:
  677. git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
  678. This will create a git clone of the kernel in your build
  679. directory.
  680. config KERNEL_GIT_LOCAL_REPOSITORY
  681. string "Enter path to local reference repository" if DEVEL
  682. default ""
  683. help
  684. Enter a full pathname to a local reference git repository.
  685. In this instance, the --refererence option of git clone will
  686. be used thus creating a quick local clone of your repo.
  687. config BUILD_LOG
  688. bool "Enable log files during build process" if DEVEL
  689. help
  690. If enabled log files will be written to the ./log directory
  691. config SRC_TREE_OVERRIDE
  692. bool "Enable package source tree override" if DEVEL
  693. help
  694. If enabled, you can force a package to use a git tree as source
  695. code instead of the normal tarball. Create a symlink 'git-src'
  696. in the package directory, pointing to the .git tree that you want
  697. to pull the source code from
  698. config EXTRA_OPTIMIZATION
  699. string "Additional compiler options" if DEVEL
  700. default "-fno-caller-saves"
  701. help
  702. Extra Target-independent optimizations to use when building for the target.
  703. menuconfig TARGET_OPTIONS
  704. bool "Target Options" if DEVEL
  705. config TARGET_OPTIMIZATION
  706. string "Target Optimizations" if TARGET_OPTIONS
  707. default DEFAULT_TARGET_OPTIMIZATION
  708. help
  709. Optimizations to use when building for the target host.
  710. config SOFT_FLOAT
  711. bool "Use software floating point by default" if TARGET_OPTIONS
  712. default y
  713. depends on (arm || armeb || powerpc || mipsel || mips || mips64el || mips64) && !HAS_FPU
  714. help
  715. If your target CPU does not have a Floating Point Unit (FPU) or a
  716. kernel FPU emulator, but you still wish to support floating point
  717. functions, then everything will need to be compiled with soft floating
  718. point support (-msoft-float).
  719. Most people will answer N.
  720. config USE_MIPS16
  721. bool "Build packages with MIPS16 instructions" if TARGET_OPTIONS
  722. depends on HAS_MIPS16
  723. depends on !GCC_VERSION_4_6
  724. default y
  725. help
  726. If your target CPU does support the MIPS16 instruction set
  727. and you want to use it for packages, enable this option.
  728. MIPS16 produces smaller binaries thus reducing pressure on
  729. caches and TLB.
  730. Most people will answer N.
  731. source "toolchain/Config.in"
  732. source "target/imagebuilder/Config.in"
  733. source "target/sdk/Config.in"
  734. source "target/toolchain/Config.in"
  735. source "tmp/.config-package.in"