Config.in 15 KB

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