Config.in 15 KB

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