Config.in 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  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. endchoice
  36. comment "Root filesystem archives"
  37. config TARGET_ROOTFS_CPIOGZ
  38. bool "cpio.gz"
  39. default y if USES_CPIOGZ
  40. help
  41. Build a compressed cpio archive of the the root filesystem
  42. config TARGET_ROOTFS_TARGZ
  43. bool "tar.gz"
  44. default y if USES_TARGZ
  45. help
  46. Build a compressed tar archive of the the root filesystem
  47. comment "Root filesystem images"
  48. config TARGET_ROOTFS_EXT4FS
  49. bool "ext4"
  50. default y if USES_EXT4
  51. depends !TARGET_ROOTFS_INITRAMFS
  52. help
  53. Ext4 file system with some free space for uml images
  54. config TARGET_ROOTFS_ISO
  55. bool "iso"
  56. default n
  57. depends TARGET_ROOTFS_INITRAMFS && TARGET_x86
  58. help
  59. Create some bootable ISO image
  60. config TARGET_ROOTFS_JFFS2
  61. bool "jffs2"
  62. default y if USES_JFFS2
  63. depends !TARGET_ROOTFS_INITRAMFS
  64. help
  65. Build a jffs2 root filesystem
  66. config TARGET_ROOTFS_SQUASHFS
  67. bool "squashfs"
  68. default y if USES_SQUASHFS
  69. depends !TARGET_ROOTFS_INITRAMFS
  70. help
  71. Build a squashfs-lzma root filesystem
  72. config TARGET_ROOTFS_UBIFS
  73. bool "ubifs"
  74. default y if USES_UBIFS
  75. depends !TARGET_ROOTFS_INITRAMFS && USES_UBIFS
  76. help
  77. Build a ubifs root filesystem
  78. comment "Image Options"
  79. source "target/linux/*/image/Config.in"
  80. config TARGET_ROOTFS_PARTSIZE
  81. int "Root filesystem partition size (in MB)"
  82. depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
  83. default 48
  84. help
  85. Allows you to change the root filesystem partition size
  86. config TARGET_ROOTFS_MAXINODE
  87. int "Maximum number of inodes in root filesystem"
  88. depends TARGET_ROOTFS_EXT4FS
  89. default 6000
  90. help
  91. Allows you to change the maximum number of inodes in the root filesystem
  92. endmenu
  93. menu "Global build settings"
  94. config ALL
  95. bool "Select all packages by default"
  96. default n
  97. comment "General build options"
  98. config DISPLAY_SUPPORT
  99. bool "Show packages that require graphics support (local or remote)"
  100. default n
  101. config BUILD_PATENTED
  102. default y
  103. bool "Compile with support for patented functionality"
  104. help
  105. When this option is disabled, software which provides patented functionality will not be built.
  106. In case software provides optional support for patented functionality,
  107. this optional support will get disabled for this package.
  108. config LARGEFILE
  109. bool
  110. prompt "Enable large file (files > 2 GB) support"
  111. default y
  112. help
  113. Enable large file (files > 2 GB) support.
  114. config SHADOW_PASSWORDS
  115. bool
  116. prompt "Enable shadow password support"
  117. default y
  118. help
  119. Enable shadow password support.
  120. config CLEAN_IPKG
  121. bool
  122. prompt "Remove ipkg/opkg status data files in final images"
  123. default n
  124. help
  125. This removes all ipkg/opkg status data files from the target directory before building the root fs
  126. config COLLECT_KERNEL_DEBUG
  127. bool
  128. prompt "Collect kernel debug information"
  129. select KERNEL_DEBUG_INFO
  130. default n
  131. help
  132. This collects debugging symbols from the kernel and all compiled modules.
  133. Useful for release builds, so that kernel issues can be debugged offline later.
  134. comment "Kernel build options"
  135. config KERNEL_DEBUG_FS
  136. bool "Compile the kernel with Debug FileSystem enabled"
  137. default y
  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 "Parallelize the default package build rule (May break build)"
  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. Only say Y, if you don't mind fixing broken packages.
  230. Before reporting build bugs, set this to N and re-run the build.
  231. config TOOLCHAIN_PARALLEL
  232. bool
  233. prompt "Parallelize the toolchain build (May break build)"
  234. depends on PKG_BUILD_PARALLEL
  235. default n
  236. help
  237. Build the toolchain with parallel make jobs.
  238. This speeds up the toolchain build on SMP machines, but may
  239. break the build for certain toolchain versions.
  240. If you say Y, toolchain build might break.
  241. Before reporting build bugs, set this to N and re-run the build.
  242. comment "Stripping options"
  243. choice
  244. prompt "Binary stripping method"
  245. default USE_STRIP if EXTERNAL_TOOLCHAIN
  246. default USE_STRIP if USE_GLIBC || USE_EGLIBC
  247. default USE_SSTRIP
  248. help
  249. Select the binary stripping method you wish to use.
  250. config NO_STRIP
  251. bool "none"
  252. help
  253. This will install unstripped binaries (useful for native compiling/debugging)
  254. config USE_STRIP
  255. bool "strip"
  256. help
  257. This will install binaries stripped using strip from binutils
  258. config USE_SSTRIP
  259. bool "sstrip"
  260. depends !DEBUG
  261. depends !USE_GLIBC
  262. depends !USE_EGLIBC
  263. help
  264. This will install binaries stripped using sstrip
  265. endchoice
  266. config STRIP_ARGS
  267. string
  268. prompt "Strip arguments"
  269. depends USE_STRIP
  270. default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
  271. default "--strip-all"
  272. help
  273. Specifies arguments passed to the strip command when stripping binaries
  274. config STRIP_KERNEL_EXPORTS
  275. bool "Strip unnecessary exports from the kernel image"
  276. help
  277. Reduces kernel size by stripping unused kernel exports from the kernel image
  278. Note that this might make the kernel incompatible with any kernel modules that
  279. were not selected at the time the kernel image was created
  280. config USE_MKLIBS
  281. bool "Strip unnecessary functions from libraries"
  282. help
  283. Reduces libraries to only those functions that are necessary for using all
  284. selected packages (including those selected as <M>)
  285. Note that this will make the system libraries incompatible with most of the packages
  286. that are not selected during the build process
  287. endmenu
  288. menuconfig DEVEL
  289. bool "Advanced configuration options (for developers)"
  290. default n
  291. config BROKEN
  292. bool "Show broken platforms / packages" if DEVEL
  293. default n
  294. config DOWNLOAD_FOLDER
  295. string "Download folder" if DEVEL
  296. default ""
  297. config LOCALMIRROR
  298. string "Local mirror for source packages" if DEVEL
  299. default ""
  300. config AUTOREBUILD
  301. bool "Automatic rebuild of packages" if DEVEL
  302. default y
  303. help
  304. Automatically rebuild packages when their files change
  305. config BUILD_SUFFIX
  306. string "Build suffix to append to the BUILD_DIR variable" if DEVEL
  307. default ""
  308. help
  309. Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
  310. config TARGET_ROOTFS_DIR
  311. string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
  312. default ""
  313. help
  314. Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
  315. Use this option to re-define the location of the target root file system directory.
  316. config CCACHE
  317. bool "Use ccache" if DEVEL
  318. default n
  319. help
  320. Compiler cache; see http://ccache.samba.org/
  321. config EXTERNAL_KERNEL_TREE
  322. string "Use external kernel tree" if DEVEL
  323. default ""
  324. config KERNEL_GIT_CLONE_URI
  325. string "Enter git repository to clone" if DEVEL
  326. default ""
  327. help
  328. Enter the full git repository path i.e.:
  329. git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
  330. This will create a git clone of the kernel in your build
  331. directory.
  332. config KERNEL_GIT_LOCAL_REPOSITORY
  333. string "Enter path to local reference repository" if DEVEL
  334. default ""
  335. help
  336. Enter a full pathname to a local reference git repository.
  337. In this instance, the --refererence option of git clone will
  338. be used thus creating a quick local clone of your repo.
  339. menuconfig TARGET_OPTIONS
  340. bool "Target Options" if DEVEL
  341. config TARGET_OPTIMIZATION
  342. string "Target Optimizations" if TARGET_OPTIONS
  343. default DEFAULT_TARGET_OPTIMIZATION
  344. help
  345. Optimizations to use when building for the target host.
  346. config SOFT_FLOAT
  347. bool "Use software floating point by default" if TARGET_OPTIONS
  348. default y
  349. depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU
  350. help
  351. If your target CPU does not have a Floating Point Unit (FPU) or a
  352. kernel FPU emulator, but you still wish to support floating point
  353. functions, then everything will need to be compiled with soft floating
  354. point support (-msoft-float).
  355. Most people will answer N.
  356. source "toolchain/Config.in"
  357. source "target/imagebuilder/Config.in"
  358. source "target/sdk/Config.in"
  359. source "target/toolchain/Config.in"
  360. source "tmp/.config-package.in"