Config.in 12 KB

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