Config.in 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  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_LZ4
  39. bool "lz4"
  40. config TARGET_INITRAMFS_COMPRESSION_XZ
  41. bool "xz"
  42. endchoice
  43. config EXTERNAL_CPIO
  44. string
  45. prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
  46. default ""
  47. help
  48. Kernel uses specified external cpio as INITRAMFS_SOURCE
  49. comment "Root filesystem archives"
  50. config TARGET_ROOTFS_CPIOGZ
  51. bool "cpio.gz"
  52. default y if USES_CPIOGZ
  53. help
  54. Build a compressed cpio archive of the the root filesystem
  55. config TARGET_ROOTFS_TARGZ
  56. bool "tar.gz"
  57. default y if USES_TARGZ
  58. help
  59. Build a compressed tar archive of the the root filesystem
  60. comment "Root filesystem images"
  61. config TARGET_ROOTFS_EXT4FS
  62. bool "ext4"
  63. default y if USES_EXT4
  64. help
  65. Ext4 file system with some free space for uml images
  66. config TARGET_ROOTFS_ISO
  67. bool "iso"
  68. default n
  69. depends on TARGET_x86_generic
  70. help
  71. Create some bootable ISO image
  72. config TARGET_ROOTFS_JFFS2
  73. bool "jffs2"
  74. default y if USES_JFFS2
  75. help
  76. Build a jffs2 root filesystem
  77. config TARGET_ROOTFS_JFFS2_NAND
  78. bool "jffs2 for NAND"
  79. default y if USES_JFFS2_NAND
  80. depends on USES_JFFS2_NAND
  81. help
  82. Build a jffs2 root filesystem for NAND flash
  83. config TARGET_ROOTFS_SQUASHFS
  84. bool "squashfs"
  85. default y if USES_SQUASHFS
  86. help
  87. Build a squashfs-lzma root filesystem
  88. menuconfig TARGET_ROOTFS_UBIFS
  89. bool "ubifs"
  90. default y if USES_UBIFS
  91. depends on USES_UBIFS
  92. help
  93. Build a ubifs root filesystem
  94. choice
  95. prompt "compression"
  96. default TARGET_UBIFS_COMPRESSION_NONE
  97. depends on TARGET_ROOTFS_UBIFS
  98. help
  99. Select compression type
  100. config TARGET_UBIFS_COMPRESSION_NONE
  101. bool "none"
  102. config TARGET_UBIFS_COMPRESSION_LZO
  103. bool "lzo"
  104. config TARGET_UBIFS_COMPRESSION_ZLIB
  105. bool "zlib"
  106. endchoice
  107. config TARGET_UBIFS_FREE_SPACE_FIXUP
  108. bool "free space fixup" if TARGET_ROOTFS_UBIFS
  109. default y
  110. help
  111. The file-system free space has to be fixed up on first mount
  112. config TARGET_UBIFS_JOURNAL_SIZE
  113. string
  114. prompt "journal size" if TARGET_ROOTFS_UBIFS
  115. default ""
  116. comment "Image Options"
  117. source "target/linux/*/image/Config.in"
  118. config TARGET_ROOTFS_PARTSIZE
  119. int "Root filesystem partition size (in MB)"
  120. depends on X86_GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
  121. default 48
  122. help
  123. Allows you to change the root filesystem partition size
  124. config TARGET_ROOTFS_MAXINODE
  125. int "Maximum number of inodes in root filesystem"
  126. depends on TARGET_ROOTFS_EXT4FS
  127. default 6000
  128. help
  129. Allows you to change the maximum number of inodes in the root filesystem
  130. config TARGET_ROOTFS_RESERVED_PCT
  131. int "Percentage of reserved blocks in root filesystem"
  132. depends on TARGET_ROOTFS_EXT4FS
  133. default 0
  134. help
  135. Allows you to change the percentage of reserved blocks in the root filesystem
  136. menuconfig TARGET_ROOTFS_INCLUDE_KERNEL
  137. bool "Include kernel in root filesystem"
  138. depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
  139. default n if USES_UBIFS
  140. help
  141. Include the kernel image in the rootfs. Typically the image is placed
  142. below /boot.
  143. config TARGET_ROOTFS_INCLUDE_UIMAGE
  144. bool "include uImage" if TARGET_ROOTFS_INCLUDE_KERNEL
  145. default y
  146. help
  147. This option might not apply to all targets. Make sure
  148. to check target/linux/<your_target>/image/Makefile to
  149. see if this option will have any effect.
  150. config TARGET_ROOTFS_INCLUDE_ZIMAGE
  151. bool "include zImage" if TARGET_ROOTFS_INCLUDE_KERNEL
  152. default y
  153. help
  154. This option might not apply to all targets. Make sure
  155. to check target/linux/<your_target>/image/Makefile to
  156. see if this option will have any effect.
  157. config TARGET_ROOTFS_INCLUDE_FIT
  158. bool "include FIT" if TARGET_ROOTFS_INCLUDE_KERNEL
  159. default y
  160. help
  161. This option might not apply to all targets. Make sure
  162. to check target/linux/<your_target>/image/Makefile to
  163. see if this option will have any effect.
  164. config TARGET_ROOTFS_INCLUDE_DTB
  165. bool "Include DTB in root filesystem"
  166. depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
  167. default n if USES_UBIFS
  168. help
  169. Include the device tree blob file(s) in the rootfs. Typically the DTBs
  170. are placed below /boot.
  171. endmenu
  172. menu "Global build settings"
  173. config ALL
  174. bool "Select all packages by default"
  175. default n
  176. comment "General build options"
  177. config DISPLAY_SUPPORT
  178. bool "Show packages that require graphics support (local or remote)"
  179. default n
  180. config BUILD_PATENTED
  181. default y
  182. bool "Compile with support for patented functionality"
  183. help
  184. When this option is disabled, software which provides patented functionality will not be built.
  185. In case software provides optional support for patented functionality,
  186. this optional support will get disabled for this package.
  187. config BUILD_NLS
  188. default n
  189. bool "Compile with full language support"
  190. help
  191. When this option is enabled, packages are built with the full versions of iconv and GNU gettext
  192. instead of the default OpenWrt stubs. If uClibc is used, it is also built with locale support.
  193. config BUILD_STATIC_TOOLS
  194. default n
  195. bool "Attempt to link host utilities statically"
  196. help
  197. Linking host utilities like sed or firmware-utils statically increases the portability of the
  198. generated ImageBuilder and SDK tarballs, however it may fail on some Linux distributions.
  199. config SHADOW_PASSWORDS
  200. bool
  201. prompt "Enable shadow password support"
  202. default y
  203. help
  204. Enable shadow password support.
  205. config CLEAN_IPKG
  206. bool
  207. prompt "Remove ipkg/opkg status data files in final images"
  208. default n
  209. help
  210. This removes all ipkg/opkg status data files from the target directory before building the root fs
  211. config COLLECT_KERNEL_DEBUG
  212. bool
  213. prompt "Collect kernel debug information"
  214. select KERNEL_DEBUG_INFO
  215. default n
  216. help
  217. This collects debugging symbols from the kernel and all compiled modules.
  218. Useful for release builds, so that kernel issues can be debugged offline later.
  219. comment "Kernel build options"
  220. source "Config-kernel.in"
  221. comment "Package build options"
  222. config DEBUG
  223. bool
  224. prompt "Compile packages with debugging info"
  225. default n
  226. help
  227. Adds -g3 to the CFLAGS
  228. config IPV6
  229. bool
  230. prompt "Enable IPv6 support in packages"
  231. default y
  232. help
  233. Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
  234. config PKG_BUILD_PARALLEL
  235. bool
  236. prompt "Compile certain packages parallelized"
  237. default y
  238. help
  239. This adds a -jX option to certain packages that are known to
  240. behave well for parallel build. By default the package make processes
  241. use the main jobserver, in which case this option only takes effect
  242. when you add -jX to the make command.
  243. If you are unsure, select N.
  244. config PKG_BUILD_USE_JOBSERVER
  245. bool
  246. prompt "Use top-level make jobserver for packages"
  247. depends on PKG_BUILD_PARALLEL
  248. default y
  249. help
  250. This passes the main make process jobserver fds to package builds,
  251. enabling full parallelization across different packages
  252. Note that disabling this may overcommit CPU resources depending on the
  253. -j level of the main make process, the number of package
  254. submake jobs selected below and the number of actual CPUs present.
  255. Example: If the main make is passed a -j4 and the submake -j
  256. is also set to 4, we may end up with 16 parallel make processes
  257. in the worst case.
  258. config PKG_BUILD_JOBS
  259. int
  260. prompt "Number of package submake jobs (2-512)"
  261. range 2 512
  262. default 2
  263. depends on PKG_BUILD_PARALLEL && !PKG_BUILD_USE_JOBSERVER
  264. help
  265. The number of jobs (-jX) to pass to packages submake.
  266. config PKG_DEFAULT_PARALLEL
  267. bool
  268. prompt "Parallelize the default package build rule (May break build)"
  269. depends on PKG_BUILD_PARALLEL
  270. depends on BROKEN
  271. default n
  272. help
  273. Always set the default package build rules to parallel build.
  274. WARNING: This may break build or kill your cat, as it builds
  275. packages with multiple jobs that are probably not tested in
  276. a parallel build environment.
  277. Only say Y, if you don't mind fixing broken packages.
  278. Before reporting build bugs, set this to N and re-run the build.
  279. comment "Stripping options"
  280. choice
  281. prompt "Binary stripping method"
  282. default USE_STRIP if EXTERNAL_TOOLCHAIN
  283. default USE_STRIP if USE_GLIBC || USE_EGLIBC || USE_MUSL
  284. default USE_SSTRIP
  285. help
  286. Select the binary stripping method you wish to use.
  287. config NO_STRIP
  288. bool "none"
  289. help
  290. This will install unstripped binaries (useful for native compiling/debugging)
  291. config USE_STRIP
  292. bool "strip"
  293. help
  294. This will install binaries stripped using strip from binutils
  295. config USE_SSTRIP
  296. bool "sstrip"
  297. depends on !DEBUG
  298. depends on !USE_GLIBC
  299. depends on !USE_EGLIBC
  300. help
  301. This will install binaries stripped using sstrip
  302. endchoice
  303. config STRIP_ARGS
  304. string
  305. prompt "Strip arguments"
  306. depends on USE_STRIP
  307. default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
  308. default "--strip-all"
  309. help
  310. Specifies arguments passed to the strip command when stripping binaries
  311. config STRIP_KERNEL_EXPORTS
  312. bool "Strip unnecessary exports from the kernel image"
  313. help
  314. Reduces kernel size by stripping unused kernel exports from the kernel image
  315. Note that this might make the kernel incompatible with any kernel modules that
  316. were not selected at the time the kernel image was created
  317. config USE_MKLIBS
  318. bool "Strip unnecessary functions from libraries"
  319. help
  320. Reduces libraries to only those functions that are necessary for using all
  321. selected packages (including those selected as <M>)
  322. Note that this will make the system libraries incompatible with most of the packages
  323. that are not selected during the build process
  324. choice
  325. prompt "Preferred standard C++ library"
  326. default USE_LIBSTDCXX if USE_EGLIBC
  327. default USE_UCLIBCXX
  328. help
  329. Select the preferred standard C++ library for all packages that support this.
  330. config USE_UCLIBCXX
  331. bool "uClibc++"
  332. config USE_LIBSTDCXX
  333. bool "libstdc++"
  334. endchoice
  335. endmenu
  336. menuconfig DEVEL
  337. bool "Advanced configuration options (for developers)"
  338. default n
  339. config BROKEN
  340. bool "Show broken platforms / packages" if DEVEL
  341. default n
  342. config DOWNLOAD_FOLDER
  343. string "Download folder" if DEVEL
  344. default ""
  345. config LOCALMIRROR
  346. string "Local mirror for source packages" if DEVEL
  347. default ""
  348. config AUTOREBUILD
  349. bool "Automatic rebuild of packages" if DEVEL
  350. default y
  351. help
  352. Automatically rebuild packages when their files change
  353. config BUILD_SUFFIX
  354. string "Build suffix to append to the BUILD_DIR variable" if DEVEL
  355. default ""
  356. help
  357. Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
  358. config TARGET_ROOTFS_DIR
  359. string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
  360. default ""
  361. help
  362. Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
  363. Use this option to re-define the location of the target root file system directory.
  364. config CCACHE
  365. bool "Use ccache" if DEVEL
  366. default n
  367. help
  368. Compiler cache; see http://ccache.samba.org/
  369. config EXTERNAL_KERNEL_TREE
  370. string "Use external kernel tree" if DEVEL
  371. default ""
  372. config KERNEL_GIT_CLONE_URI
  373. string "Enter git repository to clone" if DEVEL
  374. default ""
  375. help
  376. Enter the full git repository path i.e.:
  377. git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
  378. This will create a git clone of the kernel in your build
  379. directory.
  380. config KERNEL_GIT_LOCAL_REPOSITORY
  381. string "Enter path to local reference repository" if DEVEL
  382. default ""
  383. help
  384. Enter a full pathname to a local reference git repository.
  385. In this instance, the --refererence option of git clone will
  386. be used thus creating a quick local clone of your repo.
  387. config BUILD_LOG
  388. bool "Enable log files during build process" if DEVEL
  389. help
  390. If enabled log files will be written to the ./log directory
  391. config SRC_TREE_OVERRIDE
  392. bool "Enable package source tree override" if DEVEL
  393. help
  394. If enabled, you can force a package to use a git tree as source
  395. code instead of the normal tarball. Create a symlink 'git-src'
  396. in the package directory, pointing to the .git tree that you want
  397. to pull the source code from
  398. config EXTRA_OPTIMIZATION
  399. string "Additional compiler options" if DEVEL
  400. default "-fno-caller-saves"
  401. help
  402. Extra Target-independent optimizations to use when building for the target.
  403. menuconfig TARGET_OPTIONS
  404. bool "Target Options" if DEVEL
  405. config TARGET_OPTIMIZATION
  406. string "Target Optimizations" if TARGET_OPTIONS
  407. default DEFAULT_TARGET_OPTIMIZATION
  408. help
  409. Optimizations to use when building for the target host.
  410. config SOFT_FLOAT
  411. bool "Use software floating point by default" if TARGET_OPTIONS
  412. default y
  413. depends on (arm || armeb || powerpc || mipsel || mips || mips64el || mips64) && !HAS_FPU
  414. help
  415. If your target CPU does not have a Floating Point Unit (FPU) or a
  416. kernel FPU emulator, but you still wish to support floating point
  417. functions, then everything will need to be compiled with soft floating
  418. point support (-msoft-float).
  419. Most people will answer N.
  420. config USE_MIPS16
  421. bool "Build packages with MIPS16 instructions" if TARGET_OPTIONS
  422. depends on HAS_MIPS16
  423. depends on !GCC_VERSION_4_6
  424. default y
  425. help
  426. If your target CPU does support the MIPS16 instruction set
  427. and you want to use it for packages, enable this option.
  428. MIPS16 produces smaller binaries thus reducing pressure on
  429. caches and TLB.
  430. Most people will answer N.
  431. source "toolchain/Config.in"
  432. source "target/imagebuilder/Config.in"
  433. source "target/sdk/Config.in"
  434. source "target/toolchain/Config.in"
  435. source "tmp/.config-package.in"