Config.in 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705
  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. depends on !TARGET_ROOTFS_INITRAMFS
  63. help
  64. Ext4 file system with some free space for uml images
  65. config TARGET_ROOTFS_ISO
  66. bool "iso"
  67. default n
  68. depends on TARGET_x86_generic
  69. depends on !TARGET_ROOTFS_INITRAMFS
  70. help
  71. Create some bootable ISO image
  72. config TARGET_ROOTFS_JFFS2
  73. bool "jffs2"
  74. default y if USES_JFFS2
  75. depends on !TARGET_ROOTFS_INITRAMFS
  76. help
  77. Build a jffs2 root filesystem
  78. config TARGET_ROOTFS_SQUASHFS
  79. bool "squashfs"
  80. default y if USES_SQUASHFS
  81. depends on !TARGET_ROOTFS_INITRAMFS
  82. help
  83. Build a squashfs-lzma root filesystem
  84. config TARGET_ROOTFS_UBIFS
  85. bool "ubifs"
  86. default y if USES_UBIFS
  87. depends on !TARGET_ROOTFS_INITRAMFS && USES_UBIFS
  88. help
  89. Build a ubifs root filesystem
  90. comment "Image Options"
  91. source "target/linux/*/image/Config.in"
  92. config TARGET_ROOTFS_PARTSIZE
  93. int "Root filesystem partition size (in MB)"
  94. depends on X86_GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
  95. default 48
  96. help
  97. Allows you to change the root filesystem partition size
  98. config TARGET_ROOTFS_MAXINODE
  99. int "Maximum number of inodes in root filesystem"
  100. depends on TARGET_ROOTFS_EXT4FS
  101. default 6000
  102. help
  103. Allows you to change the maximum number of inodes in the root filesystem
  104. config TARGET_ROOTFS_RESERVED_PCT
  105. int "Percentage of reserved blocks in root filesystem"
  106. depends on TARGET_ROOTFS_EXT4FS
  107. default 0
  108. help
  109. Allows you to change the percentage of reserved blocks in the root filesystem
  110. endmenu
  111. menu "Global build settings"
  112. config ALL
  113. bool "Select all packages by default"
  114. default n
  115. comment "General build options"
  116. config DISPLAY_SUPPORT
  117. bool "Show packages that require graphics support (local or remote)"
  118. default n
  119. config BUILD_PATENTED
  120. default y
  121. bool "Compile with support for patented functionality"
  122. help
  123. When this option is disabled, software which provides patented functionality will not be built.
  124. In case software provides optional support for patented functionality,
  125. this optional support will get disabled for this package.
  126. config BUILD_NLS
  127. default n
  128. bool "Compile with full language support"
  129. help
  130. When this option is enabled, packages are built with the full versions of iconv and GNU gettext
  131. instead of the default OpenWrt stubs. If uClibc is used, it is also built with locale support.
  132. config BUILD_STATIC_TOOLS
  133. default n
  134. bool "Attempt to link host utilities statically"
  135. help
  136. Linking host utilities like sed or firmware-utils statically increases the portability of the
  137. generated ImageBuilder and SDK tarballs, however it may fail on some Linux distributions.
  138. config SHADOW_PASSWORDS
  139. bool
  140. prompt "Enable shadow password support"
  141. default y
  142. help
  143. Enable shadow password support.
  144. config CLEAN_IPKG
  145. bool
  146. prompt "Remove ipkg/opkg status data files in final images"
  147. default n
  148. help
  149. This removes all ipkg/opkg status data files from the target directory before building the root fs
  150. config COLLECT_KERNEL_DEBUG
  151. bool
  152. prompt "Collect kernel debug information"
  153. select KERNEL_DEBUG_INFO
  154. default n
  155. help
  156. This collects debugging symbols from the kernel and all compiled modules.
  157. Useful for release builds, so that kernel issues can be debugged offline later.
  158. comment "Kernel build options"
  159. config KERNEL_DEBUG_FS
  160. bool "Compile the kernel with Debug FileSystem enabled"
  161. default y
  162. help
  163. debugfs is a virtual file system that kernel developers use to put
  164. debugging files into. Enable this option to be able to read and
  165. write to these files.
  166. config KERNEL_PERF_EVENTS
  167. bool
  168. default n
  169. config KERNEL_PROFILING
  170. bool "Compile the kernel with profiling enabled"
  171. default n
  172. select KERNEL_PERF_EVENTS
  173. help
  174. Enable the extended profiling support mechanisms used by profilers such
  175. as OProfile.
  176. config KERNEL_KALLSYMS
  177. bool "Compile the kernel with symbol table information"
  178. default y
  179. help
  180. This will give you more information in stack traces from kernel oopses
  181. config KERNEL_FTRACE
  182. bool "Compile the kernel with tracing support"
  183. default n
  184. config KERNEL_ENABLE_DEFAULT_TRACERS
  185. bool "Trace process context switches and events"
  186. depends on KERNEL_FTRACE
  187. default n
  188. config KERNEL_DEBUG_KERNEL
  189. bool
  190. default n
  191. config KERNEL_DEBUG_INFO
  192. bool "Compile the kernel with debug information"
  193. default y
  194. select KERNEL_DEBUG_KERNEL
  195. help
  196. This will compile your kernel and modules with debug information.
  197. config KERNEL_DEBUG_LL_UART_NONE
  198. bool
  199. default n
  200. depends on arm
  201. config KERNEL_DEBUG_LL
  202. bool
  203. default n
  204. depends on arm
  205. select KERNEL_DEBUG_LL_UART_NONE
  206. help
  207. ARM low level debugging
  208. config KERNEL_EARLY_PRINTK
  209. bool "Compile the kernel with early printk"
  210. default n
  211. depends on arm
  212. select KERNEL_DEBUG_KERNEL
  213. select KERNEL_DEBUG_LL if arm
  214. help
  215. Compile the kernel with early printk support.
  216. This is only useful for debugging purposes to send messages
  217. over the serial console in early boot.
  218. Enable this to debug early boot problems.
  219. config KERNEL_AIO
  220. bool "Compile the kernel with asynchronous IO support"
  221. default n
  222. config KERNEL_DIRECT_IO
  223. bool "Compile the kernel with direct IO support"
  224. default n
  225. config KERNEL_MAGIC_SYSRQ
  226. bool "Compile the kernel with SysRq support"
  227. default y
  228. config KERNEL_COREDUMP
  229. bool
  230. config KERNEL_ELF_CORE
  231. bool "Enable process core dump support"
  232. select KERNEL_COREDUMP
  233. default y
  234. config KERNEL_PROVE_LOCKING
  235. bool "Enable kernel lock checking"
  236. select KERNEL_DEBUG_KERNEL
  237. default n
  238. config KERNEL_PRINTK_TIME
  239. bool "Enable printk timestamps"
  240. default y
  241. config KERNEL_RELAY
  242. bool
  243. #
  244. # CGROUP support symbols
  245. #
  246. config KERNEL_FREEZER
  247. bool
  248. default y if KERNEL_CGROUP_FREEZER
  249. depends on KERNEL_CGROUPS
  250. config KERNEL_CGROUP_FREEZER
  251. bool
  252. depends on KERNEL_CGROUPS
  253. config KERNEL_CGROUP_DEVICE
  254. bool
  255. depends on KERNEL_CGROUPS
  256. config KERNEL_CPUSETS
  257. bool
  258. default y if KERNEL_CGROUP_CPUACCT
  259. depends on KERNEL_CGROUPS
  260. config KERNEL_PROC_PID_CPUSET
  261. bool
  262. default y if KERNEL_CGROUP_CPUACCT
  263. depends on KERNEL_CGROUPS
  264. config KERNEL_CGROUP_CPUACCT
  265. bool
  266. depends on KERNEL_CGROUPS
  267. config KERNEL_RESOURCE_COUNTERS
  268. bool
  269. default y if KERNEL_CGROUP_MEM_RES_CTLR
  270. depends on KERNEL_CGROUPS
  271. config KERNEL_CGROUP_MEM_RES_CTLR
  272. bool
  273. depends on KERNEL_CGROUPS
  274. config KERNEL_CGROUP_MEM_RES_CTLR_SWAP
  275. bool
  276. depends on KERNEL_CGROUPS
  277. config KERNEL_CGROUP_MEM_RES_CTLR_SWAP_ENABLED
  278. bool
  279. depends on KERNEL_CGROUPS
  280. config KERNEL_CGROUP_MEM_RES_CTLR_KMEM
  281. bool
  282. depends on KERNEL_CGROUPS
  283. config KERNEL_CGROUP_PERF
  284. bool
  285. depends on KERNEL_CGROUPS
  286. config KERNEL_CFS_BANDWIDTH
  287. bool
  288. default y if KERNEL_FAIR_GROUP_SCHED
  289. depends on KERNEL_CGROUP_SCHED
  290. config KERNEL_FAIR_GROUP_SCHED
  291. bool
  292. default y if KERNEL_CGROUP_SCHED
  293. depends on KERNEL_CGROUP_SCHED
  294. config KERNEL_RT_GROUP_SCHED
  295. bool
  296. default y if KERNEL_CGROUP_SCHED
  297. depends on KERNEL_CGROUP_SCHED
  298. config KERNEL_CGROUP_SCHED
  299. bool
  300. depends on KERNEL_CGROUPS
  301. config KERNEL_NET_CLS_CGROUP
  302. bool
  303. depends on KERNEL_CGROUPS
  304. config KERNEL_NETPRIO_CGROUP
  305. bool
  306. depends on KERNEL_CGROUPS
  307. config KERNEL_BLK_CGROUP
  308. bool
  309. depends on KERNEL_CGROUPS
  310. config KERNEL_DEBUG_BLK_CGROUP
  311. bool
  312. default n if KERNEL_CGROUPS
  313. depends on KERNEL_CGROUPS
  314. config KERNEL_CGROUPS
  315. bool "Enable kernel cgroups"
  316. default n
  317. select KERNEL_CGROUP_FREEZER
  318. select KERNEL_CGROUP_DEVICE
  319. select KERNEL_CGROUP_CPUACCT
  320. select KERNEL_CGROUP_MEM_RES_CTLR
  321. select KERNEL_CGROUP_MEM_RES_CTLR_SWAP
  322. select KERNEL_CGROUP_MEM_RES_CTLR_SWAP_ENABLED
  323. select KERNEL_CGROUP_MEM_RES_CTLR_KMEM
  324. select KERNEL_CGROUP_PERF
  325. select KERNEL_CGROUP_SCHED
  326. select KERNEL_NET_CLS_CGROUP
  327. select KERNEL_NETPRIO_CGROUP
  328. select KERNEL_BLK_CGROUP
  329. #
  330. # Namespace support symbols
  331. #
  332. config KERNEL_UTS_NS
  333. bool
  334. depends on KERNEL_NAMESPACES
  335. config KERNEL_IPC_NS
  336. bool
  337. depends on KERNEL_NAMESPACES
  338. config KERNEL_USER_NS
  339. bool
  340. depends on KERNEL_NAMESPACES
  341. config KERNEL_PID_NS
  342. bool
  343. depends on KERNEL_NAMESPACES
  344. config KERNEL_NET_NS
  345. bool
  346. depends on KERNEL_NAMESPACES
  347. config KERNEL_DEVPTS_MULTIPLE_INSTANCES
  348. bool
  349. depends on KERNEL_NAMESPACES
  350. config KERNEL_NAMESPACES
  351. bool "Enable kernel namespaces"
  352. default n
  353. select KERNEL_UTS_NS
  354. select KERNEL_IPC_NS
  355. select KERNEL_USER_NS
  356. select KERNEL_PID_NS
  357. select KERNEL_NET_NS
  358. select KERNEL_DEVPTS_MULTIPLE_INSTANCES
  359. comment "Package build options"
  360. config DEBUG
  361. bool
  362. prompt "Compile packages with debugging info"
  363. default n
  364. help
  365. Adds -g3 to the CFLAGS
  366. config IPV6
  367. bool
  368. prompt "Enable IPv6 support in packages"
  369. default y
  370. help
  371. Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
  372. config PKG_BUILD_PARALLEL
  373. bool
  374. prompt "Compile certain packages parallelized"
  375. default y
  376. help
  377. This adds a -jX option to certain packages that are known to
  378. behave well for parallel build. By default the package make processes
  379. use the main jobserver, in which case this option only takes effect
  380. when you add -jX to the make command.
  381. If you are unsure, select N.
  382. config PKG_BUILD_USE_JOBSERVER
  383. bool
  384. prompt "Use top-level make jobserver for packages"
  385. depends on PKG_BUILD_PARALLEL
  386. default y
  387. help
  388. This passes the main make process jobserver fds to package builds,
  389. enabling full parallelization across different packages
  390. Note that disabling this may overcommit CPU resources depending on the
  391. -j level of the main make process, the number of package
  392. submake jobs selected below and the number of actual CPUs present.
  393. Example: If the main make is passed a -j4 and the submake -j
  394. is also set to 4, we may end up with 16 parallel make processes
  395. in the worst case.
  396. config PKG_BUILD_JOBS
  397. int
  398. prompt "Number of package submake jobs (2-512)"
  399. range 2 512
  400. default 2
  401. depends on PKG_BUILD_PARALLEL && !PKG_BUILD_USE_JOBSERVER
  402. help
  403. The number of jobs (-jX) to pass to packages submake.
  404. config PKG_DEFAULT_PARALLEL
  405. bool
  406. prompt "Parallelize the default package build rule (May break build)"
  407. depends on PKG_BUILD_PARALLEL
  408. depends on BROKEN
  409. default n
  410. help
  411. Always set the default package build rules to parallel build.
  412. WARNING: This may break build or kill your cat, as it builds
  413. packages with multiple jobs that are probably not tested in
  414. a parallel build environment.
  415. Only say Y, if you don't mind fixing broken packages.
  416. Before reporting build bugs, set this to N and re-run the build.
  417. comment "Stripping options"
  418. choice
  419. prompt "Binary stripping method"
  420. default USE_STRIP if EXTERNAL_TOOLCHAIN
  421. default USE_STRIP if USE_GLIBC || USE_EGLIBC || USE_MUSL
  422. default USE_SSTRIP
  423. help
  424. Select the binary stripping method you wish to use.
  425. config NO_STRIP
  426. bool "none"
  427. help
  428. This will install unstripped binaries (useful for native compiling/debugging)
  429. config USE_STRIP
  430. bool "strip"
  431. help
  432. This will install binaries stripped using strip from binutils
  433. config USE_SSTRIP
  434. bool "sstrip"
  435. depends on !DEBUG
  436. depends on !USE_GLIBC
  437. depends on !USE_EGLIBC
  438. help
  439. This will install binaries stripped using sstrip
  440. endchoice
  441. config STRIP_ARGS
  442. string
  443. prompt "Strip arguments"
  444. depends on USE_STRIP
  445. default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
  446. default "--strip-all"
  447. help
  448. Specifies arguments passed to the strip command when stripping binaries
  449. config STRIP_KERNEL_EXPORTS
  450. bool "Strip unnecessary exports from the kernel image"
  451. help
  452. Reduces kernel size by stripping unused kernel exports from the kernel image
  453. Note that this might make the kernel incompatible with any kernel modules that
  454. were not selected at the time the kernel image was created
  455. config USE_MKLIBS
  456. bool "Strip unnecessary functions from libraries"
  457. help
  458. Reduces libraries to only those functions that are necessary for using all
  459. selected packages (including those selected as <M>)
  460. Note that this will make the system libraries incompatible with most of the packages
  461. that are not selected during the build process
  462. if INSTALL_LIBSTDCPP
  463. choice
  464. prompt "Preferred standard C++ library"
  465. default USE_LIBSTDCXX if USE_EGLIBC
  466. default USE_UCLIBCXX
  467. help
  468. Select the preferred standard C++ library for all packages that support this.
  469. config USE_UCLIBCXX
  470. bool "uClibc++"
  471. config USE_LIBSTDCXX
  472. bool "libstdc++"
  473. endchoice
  474. endif
  475. endmenu
  476. menuconfig DEVEL
  477. bool "Advanced configuration options (for developers)"
  478. default n
  479. config BROKEN
  480. bool "Show broken platforms / packages" if DEVEL
  481. default n
  482. config DOWNLOAD_FOLDER
  483. string "Download folder" if DEVEL
  484. default ""
  485. config LOCALMIRROR
  486. string "Local mirror for source packages" if DEVEL
  487. default ""
  488. config AUTOREBUILD
  489. bool "Automatic rebuild of packages" if DEVEL
  490. default y
  491. help
  492. Automatically rebuild packages when their files change
  493. config BUILD_SUFFIX
  494. string "Build suffix to append to the BUILD_DIR variable" if DEVEL
  495. default ""
  496. help
  497. Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
  498. config TARGET_ROOTFS_DIR
  499. string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
  500. default ""
  501. help
  502. Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
  503. Use this option to re-define the location of the target root file system directory.
  504. config CCACHE
  505. bool "Use ccache" if DEVEL
  506. default n
  507. help
  508. Compiler cache; see http://ccache.samba.org/
  509. config EXTERNAL_KERNEL_TREE
  510. string "Use external kernel tree" if DEVEL
  511. default ""
  512. config KERNEL_GIT_CLONE_URI
  513. string "Enter git repository to clone" if DEVEL
  514. default ""
  515. help
  516. Enter the full git repository path i.e.:
  517. git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
  518. This will create a git clone of the kernel in your build
  519. directory.
  520. config KERNEL_GIT_LOCAL_REPOSITORY
  521. string "Enter path to local reference repository" if DEVEL
  522. default ""
  523. help
  524. Enter a full pathname to a local reference git repository.
  525. In this instance, the --refererence option of git clone will
  526. be used thus creating a quick local clone of your repo.
  527. config BUILD_LOG
  528. bool "Enable log files during build process" if DEVEL
  529. help
  530. If enabled log files will be written to the ./log directory
  531. config SRC_TREE_OVERRIDE
  532. bool "Enable package source tree override" if DEVEL
  533. help
  534. If enabled, you can force a package to use a git tree as source
  535. code instead of the normal tarball. Create a symlink 'git-src'
  536. in the package directory, pointing to the .git tree that you want
  537. to pull the source code from
  538. menuconfig TARGET_OPTIONS
  539. bool "Target Options" if DEVEL
  540. config TARGET_OPTIMIZATION
  541. string "Target Optimizations" if TARGET_OPTIONS
  542. default DEFAULT_TARGET_OPTIMIZATION
  543. help
  544. Optimizations to use when building for the target host.
  545. config SOFT_FLOAT
  546. bool "Use software floating point by default" if TARGET_OPTIONS
  547. default y
  548. depends on (arm || armeb || powerpc || mipsel || mips || mips64el || mips64) && !HAS_FPU
  549. help
  550. If your target CPU does not have a Floating Point Unit (FPU) or a
  551. kernel FPU emulator, but you still wish to support floating point
  552. functions, then everything will need to be compiled with soft floating
  553. point support (-msoft-float).
  554. Most people will answer N.
  555. config USE_MIPS16
  556. bool "Build packages with MIPS16 instructions" if TARGET_OPTIONS
  557. depends on HAS_MIPS16
  558. help
  559. If your target CPU does support the MIPS16 instruction set
  560. and you want to use it for packages, enable this option.
  561. MIPS16 produces smaller binaries thus reducing pressure on
  562. caches and TLB.
  563. Most people will answer N.
  564. source "toolchain/Config.in"
  565. source "target/imagebuilder/Config.in"
  566. source "target/sdk/Config.in"
  567. source "target/toolchain/Config.in"
  568. source "tmp/.config-package.in"