Config.in 11 KB

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