Config.in 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  1. # Copyright (C) 2006-2010 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 HAVE_DOT_CONFIG
  8. bool
  9. default y
  10. source "target/Config.in"
  11. menu "Target Images"
  12. menuconfig TARGET_ROOTFS_INITRAMFS
  13. bool "ramdisk"
  14. default y if USES_INITRAMFS
  15. help
  16. Embed the rootfs into the kernel (initramfs)
  17. choice
  18. prompt "Compression"
  19. default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ar71xx
  20. default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
  21. default TARGET_INITRAMFS_COMPRESSION_NONE
  22. depends TARGET_ROOTFS_INITRAMFS
  23. help
  24. Select ramdisk compression.
  25. config TARGET_INITRAMFS_COMPRESSION_NONE
  26. bool "none"
  27. config TARGET_INITRAMFS_COMPRESSION_GZIP
  28. bool "gzip"
  29. config TARGET_INITRAMFS_COMPRESSION_BZIP2
  30. bool "bzip2"
  31. config TARGET_INITRAMFS_COMPRESSION_LZMA
  32. bool "lzma"
  33. config TARGET_INITRAMFS_COMPRESSION_LZO
  34. bool "lzo"
  35. config TARGET_INITRAMFS_COMPRESSION_XZ
  36. bool "xz"
  37. depends LINUX_2_6_38
  38. endchoice
  39. comment "Root filesystem archives"
  40. config TARGET_ROOTFS_CPIOGZ
  41. bool "cpio.gz"
  42. default y if USES_CPIOGZ
  43. help
  44. Build a compressed cpio archive of the the root filesystem
  45. config TARGET_ROOTFS_TARGZ
  46. bool "tar.gz"
  47. default y if USES_TARGZ
  48. help
  49. Build a compressed tar archive of the the root filesystem
  50. comment "Root filesystem images"
  51. config TARGET_ROOTFS_EXT4FS
  52. bool "ext4"
  53. default y if USES_EXT4
  54. depends !TARGET_ROOTFS_INITRAMFS
  55. help
  56. Ext4 file system with some free space for uml images
  57. config TARGET_ROOTFS_ISO
  58. bool "iso"
  59. default n
  60. depends TARGET_ROOTFS_INITRAMFS && TARGET_x86
  61. help
  62. Create some bootable ISO image
  63. config TARGET_ROOTFS_JFFS2
  64. bool "jffs2"
  65. default y if USES_JFFS2
  66. depends !TARGET_ROOTFS_INITRAMFS
  67. help
  68. Build a jffs2 root filesystem
  69. config TARGET_ROOTFS_SQUASHFS
  70. bool "squashfs"
  71. default y if USES_SQUASHFS
  72. depends !TARGET_ROOTFS_INITRAMFS
  73. help
  74. Build a squashfs-lzma root filesystem
  75. config TARGET_ROOTFS_UBIFS
  76. bool "ubifs"
  77. default y if USES_UBIFS
  78. depends !TARGET_ROOTFS_INITRAMFS && USES_UBIFS
  79. help
  80. Build a ubifs root filesystem
  81. comment "Image Options"
  82. source "target/linux/*/image/Config.in"
  83. config TARGET_ROOTFS_PARTSIZE
  84. int "Root filesystem partition size (in MB)"
  85. depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
  86. default 48
  87. help
  88. Allows you to change the root filesystem partition size
  89. config TARGET_ROOTFS_MAXINODE
  90. int "Maximum number of inodes in root filesystem"
  91. depends TARGET_ROOTFS_EXT4FS
  92. default 6000
  93. help
  94. Allows you to change the maximum number of inodes in the root filesystem
  95. endmenu
  96. menu "Global build settings"
  97. config ALL
  98. bool "Select all packages by default"
  99. default n
  100. comment "General build options"
  101. config DISPLAY_SUPPORT
  102. bool "Show packages that require graphics support (local or remote)"
  103. default n
  104. config BUILD_PATENTED
  105. default y
  106. bool "Compile with support for patented functionality"
  107. help
  108. When this option is disabled, software which provides patented functionality will not be built.
  109. In case software provides optional support for patented functionality,
  110. this optional support will get disabled for this package.
  111. config BUILD_NLS
  112. default n
  113. bool "Compile with full language support"
  114. help
  115. When this option is enabled, packages are built with the full versions of iconv and GNU gettext
  116. instead of the default OpenWrt stubs.
  117. config SHADOW_PASSWORDS
  118. bool
  119. prompt "Enable shadow password support"
  120. default y
  121. help
  122. Enable shadow password support.
  123. config CLEAN_IPKG
  124. bool
  125. prompt "Remove ipkg/opkg status data files in final images"
  126. default n
  127. help
  128. This removes all ipkg/opkg status data files from the target directory before building the root fs
  129. config COLLECT_KERNEL_DEBUG
  130. bool
  131. prompt "Collect kernel debug information"
  132. select KERNEL_DEBUG_INFO
  133. default n
  134. help
  135. This collects debugging symbols from the kernel and all compiled modules.
  136. Useful for release builds, so that kernel issues can be debugged offline later.
  137. comment "Kernel build options"
  138. config KERNEL_DEBUG_FS
  139. bool "Compile the kernel with Debug FileSystem enabled"
  140. default y
  141. help
  142. debugfs is a virtual file system that kernel developers use to put
  143. debugging files into. Enable this option to be able to read and
  144. write to these files.
  145. config KERNEL_PROFILING
  146. bool "Compile the kernel with profiling enabled"
  147. default n
  148. help
  149. Enable the extended profiling support mechanisms used by profilers such
  150. as OProfile.
  151. config KERNEL_KALLSYMS
  152. bool "Compile the kernel with symbol table information"
  153. default n
  154. help
  155. This will give you more information in stack traces from kernel oopses
  156. config KERNEL_DEBUG_KERNEL
  157. bool
  158. default n
  159. config KERNEL_DEBUG_INFO
  160. bool "Compile the kernel with debug information"
  161. default n
  162. select KERNEL_DEBUG_KERNEL
  163. help
  164. This will compile your kernel and modules with debug information.
  165. config KERNEL_DEBUG_LL
  166. bool
  167. default n
  168. depends on arm
  169. help
  170. ARM low level debugging
  171. config KERNEL_EARLY_PRINTK
  172. bool "Compile the kernel with early printk"
  173. default n
  174. depends on arm
  175. select KERNEL_DEBUG_KERNEL
  176. select KERNEL_DEBUG_LL if arm
  177. help
  178. Compile the kernel with early printk support.
  179. This is only useful for debugging purposes to send messages
  180. over the serial console in early boot.
  181. Enable this to debug early boot problems.
  182. config KERNEL_AIO
  183. bool "Compile the kernel with asynchronous IO support"
  184. default n
  185. config KERNEL_MAGIC_SYSRQ
  186. bool "Compile the kernel with SysRq support"
  187. default n
  188. config KERNEL_ELF_CORE
  189. bool "Enable process core dump support"
  190. default y
  191. config KERNEL_PROVE_LOCKING
  192. bool "Enable kernel lock checking"
  193. select KERNEL_DEBUG_KERNEL
  194. default n
  195. comment "Package build options"
  196. config DEBUG
  197. bool
  198. prompt "Compile packages with debugging info"
  199. default n
  200. help
  201. Adds -g3 to the CFLAGS
  202. config IPV6
  203. bool
  204. prompt "Enable IPv6 support in packages"
  205. default y
  206. help
  207. Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
  208. config PKG_BUILD_PARALLEL
  209. bool
  210. prompt "Compile certain packages parallelized"
  211. default n
  212. help
  213. This adds a -jX option to certain packages that are known to
  214. behave well for parallel build.
  215. Note that this may overcommit CPU resources depending on the
  216. -j level of the main make process, the number of package
  217. submake jobs selected below and the number of actual CPUs present.
  218. Example: If the main make is passed a -j4 and the submake -j
  219. is also set to 4, we may end up with 16 parallel make processes
  220. in the worst case.
  221. You get maximum build performance, if you set the package build
  222. jobs to the number of CPUs (cores) available and also start the main
  223. make process with -jX, where X is the number of CPUs (cores).
  224. However, make sure you have enough RAM available for
  225. NR_CPUS to the power of two (NR_CPUS^2) make jobs.
  226. If you are unsure, select N.
  227. config PKG_BUILD_JOBS
  228. int
  229. prompt "Number of package submake jobs (2-512)"
  230. range 2 512
  231. default 2
  232. depends on PKG_BUILD_PARALLEL
  233. help
  234. The number of jobs (-jX) to pass to packages submake.
  235. config PKG_DEFAULT_PARALLEL
  236. bool
  237. prompt "Parallelize the default package build rule (May break build)"
  238. depends on PKG_BUILD_PARALLEL
  239. default n
  240. help
  241. Always set the default package build rules to parallel build.
  242. WARNING: This may break build or kill your cat, as it builds
  243. packages with multiple jobs that are probably not tested in
  244. a parallel build environment.
  245. Only say Y, if you don't mind fixing broken packages.
  246. Before reporting build bugs, set this to N and re-run the build.
  247. config TOOLCHAIN_PARALLEL
  248. bool
  249. prompt "Parallelize the toolchain build (May break build)"
  250. depends on PKG_BUILD_PARALLEL
  251. default n
  252. help
  253. Build the toolchain with parallel make jobs.
  254. This speeds up the toolchain build on SMP machines, but may
  255. break the build for certain toolchain versions.
  256. If you say Y, toolchain build might break.
  257. Before reporting build bugs, set this to N and re-run the build.
  258. comment "Stripping options"
  259. choice
  260. prompt "Binary stripping method"
  261. default USE_STRIP if EXTERNAL_TOOLCHAIN
  262. default USE_STRIP if USE_GLIBC || USE_EGLIBC
  263. default USE_SSTRIP
  264. help
  265. Select the binary stripping method you wish to use.
  266. config NO_STRIP
  267. bool "none"
  268. help
  269. This will install unstripped binaries (useful for native compiling/debugging)
  270. config USE_STRIP
  271. bool "strip"
  272. help
  273. This will install binaries stripped using strip from binutils
  274. config USE_SSTRIP
  275. bool "sstrip"
  276. depends !DEBUG
  277. depends !USE_GLIBC
  278. depends !USE_EGLIBC
  279. help
  280. This will install binaries stripped using sstrip
  281. endchoice
  282. config STRIP_ARGS
  283. string
  284. prompt "Strip arguments"
  285. depends USE_STRIP
  286. default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
  287. default "--strip-all"
  288. help
  289. Specifies arguments passed to the strip command when stripping binaries
  290. config STRIP_KERNEL_EXPORTS
  291. bool "Strip unnecessary exports from the kernel image"
  292. help
  293. Reduces kernel size by stripping unused kernel exports from the kernel image
  294. Note that this might make the kernel incompatible with any kernel modules that
  295. were not selected at the time the kernel image was created
  296. config USE_MKLIBS
  297. bool "Strip unnecessary functions from libraries"
  298. help
  299. Reduces libraries to only those functions that are necessary for using all
  300. selected packages (including those selected as <M>)
  301. Note that this will make the system libraries incompatible with most of the packages
  302. that are not selected during the build process
  303. endmenu
  304. menuconfig DEVEL
  305. bool "Advanced configuration options (for developers)"
  306. default n
  307. config BROKEN
  308. bool "Show broken platforms / packages" if DEVEL
  309. default n
  310. config DOWNLOAD_FOLDER
  311. string "Download folder" if DEVEL
  312. default ""
  313. config LOCALMIRROR
  314. string "Local mirror for source packages" if DEVEL
  315. default ""
  316. config AUTOREBUILD
  317. bool "Automatic rebuild of packages" if DEVEL
  318. default y
  319. help
  320. Automatically rebuild packages when their files change
  321. config BUILD_SUFFIX
  322. string "Build suffix to append to the BUILD_DIR variable" if DEVEL
  323. default ""
  324. help
  325. Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
  326. config TARGET_ROOTFS_DIR
  327. string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
  328. default ""
  329. help
  330. Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
  331. Use this option to re-define the location of the target root file system directory.
  332. config CCACHE
  333. bool "Use ccache" if DEVEL
  334. default n
  335. help
  336. Compiler cache; see http://ccache.samba.org/
  337. config EXTERNAL_KERNEL_TREE
  338. string "Use external kernel tree" if DEVEL
  339. default ""
  340. config KERNEL_GIT_CLONE_URI
  341. string "Enter git repository to clone" if DEVEL
  342. default ""
  343. help
  344. Enter the full git repository path i.e.:
  345. git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
  346. This will create a git clone of the kernel in your build
  347. directory.
  348. config KERNEL_GIT_LOCAL_REPOSITORY
  349. string "Enter path to local reference repository" if DEVEL
  350. default ""
  351. help
  352. Enter a full pathname to a local reference git repository.
  353. In this instance, the --refererence option of git clone will
  354. be used thus creating a quick local clone of your repo.
  355. config BUILD_LOG
  356. bool "Enable log files during build process" if DEVEL
  357. help
  358. If enabled log files will be written to the ./log directory
  359. config SRC_TREE_OVERRIDE
  360. bool "Enable package source tree override" if DEVEL
  361. help
  362. If enabled, you can force a package to use a git tree as source
  363. code instead of the normal tarball. Create a symlink 'git-src'
  364. in the package directory, pointing to the .git tree that you want
  365. to pull the source code from
  366. menuconfig TARGET_OPTIONS
  367. bool "Target Options" if DEVEL
  368. config TARGET_OPTIMIZATION
  369. string "Target Optimizations" if TARGET_OPTIONS
  370. default DEFAULT_TARGET_OPTIMIZATION
  371. help
  372. Optimizations to use when building for the target host.
  373. config SOFT_FLOAT
  374. bool "Use software floating point by default" if TARGET_OPTIONS
  375. default y
  376. depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU
  377. help
  378. If your target CPU does not have a Floating Point Unit (FPU) or a
  379. kernel FPU emulator, but you still wish to support floating point
  380. functions, then everything will need to be compiled with soft floating
  381. point support (-msoft-float).
  382. Most people will answer N.
  383. source "toolchain/Config.in"
  384. source "target/imagebuilder/Config.in"
  385. source "target/sdk/Config.in"
  386. source "target/toolchain/Config.in"
  387. source "tmp/.config-package.in"