Config.in 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  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. config 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 "ramdisk compression"
  20. depends TARGET_ROOTFS_INITRAMFS
  21. depends !LINUX_2_6_25
  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. 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. config TARGET_ROOTFS_JFFS2
  39. bool "jffs2"
  40. default y if USES_JFFS2
  41. depends !TARGET_ROOTFS_INITRAMFS
  42. help
  43. Build a jffs2 root filesystem
  44. config TARGET_ROOTFS_SQUASHFS
  45. bool "squashfs"
  46. default y if USES_SQUASHFS
  47. depends !TARGET_ROOTFS_INITRAMFS
  48. help
  49. Build a squashfs-lzma root filesystem
  50. config TARGET_ROOTFS_TGZ
  51. bool "tgz"
  52. default y if USES_TGZ
  53. depends !TARGET_ROOTFS_INITRAMFS
  54. help
  55. Build a compressed tar archive of the the root filesystem
  56. config TARGET_ROOTFS_CPIOGZ
  57. bool "cpiogz"
  58. default y if USES_CPIOGZ
  59. depends !TARGET_ROOTFS_INITRAMFS
  60. help
  61. Build a compressed cpio archive of the the root filesystem
  62. config TARGET_ROOTFS_EXT2FS
  63. bool "ext2"
  64. default y if USES_EXT2
  65. depends !TARGET_ROOTFS_INITRAMFS
  66. help
  67. Ext2 file system with some free space for uml images
  68. config TARGET_ROOTFS_ISO
  69. bool "iso"
  70. default n
  71. depends TARGET_ROOTFS_INITRAMFS && TARGET_x86
  72. help
  73. Create some bootable ISO image
  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_FSPART
  83. int "Filesystem part size (in MB)"
  84. depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT2FS || TARGET_rb532 || TARGET_olpc
  85. default 48
  86. help
  87. Allows you to change the filesystem partition size
  88. config TARGET_ROOTFS_MAXINODE
  89. int "Maximum number of inodes in filesystem"
  90. depends TARGET_ROOTFS_EXT2FS
  91. default 6000
  92. help
  93. Allows you to change the maximum number of inodes in the 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 CLEAN_IPKG
  101. bool
  102. prompt "Disable ipkg/opkg installation on the target"
  103. default n
  104. help
  105. This removes all ipkg data from the target directory before building the root fs
  106. config LARGEFILE
  107. bool
  108. prompt "Enable large file (files > 2 GB) support"
  109. default y
  110. help
  111. Enable large file (files > 2 GB) support.
  112. config SHADOW_PASSWORDS
  113. bool
  114. prompt "Enable shadow password support"
  115. default y
  116. help
  117. Enable shadow password support.
  118. choice
  119. prompt "Binary stripping method"
  120. default USE_STRIP if EXTERNAL_TOOLCHAIN
  121. default USE_STRIP if USE_GLIBC || USE_EGLIBC
  122. default USE_SSTRIP
  123. help
  124. Select the binary stripping method you wish to use.
  125. config NO_STRIP
  126. bool "none"
  127. help
  128. This will install unstripped binaries (useful for native compiling/debugging)
  129. config USE_STRIP
  130. bool "strip"
  131. help
  132. This will install binaries stripped using strip from binutils
  133. config USE_SSTRIP
  134. bool "sstrip"
  135. depends !DEBUG
  136. depends !USE_GLIBC
  137. depends !USE_EGLIBC
  138. help
  139. This will install binaries stripped using sstrip
  140. endchoice
  141. config BUILD_PATENTED
  142. default y
  143. bool "Compile with support for patented functionality"
  144. help
  145. When this option is disabled, software which provides patented functionality will not be built.
  146. In case software provides optional support for patented functionality,
  147. this optional support will get disabled for this package.
  148. config STRIP_ARGS
  149. string
  150. prompt "Strip arguments"
  151. depends USE_STRIP
  152. default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
  153. default "--strip-all"
  154. help
  155. Specifies arguments passed to the strip command when stripping binaries
  156. config USE_MKLIBS
  157. bool "Strip unnecessary functions from libraries"
  158. help
  159. Reduces libraries to only those functions that are necessary for using all
  160. selected packages (including those selected as <M>)
  161. Note that this will make the system libraries incompatible with most of the packages
  162. that are not selected during the build process
  163. config STRIP_KERNEL_EXPORTS
  164. depends LINUX_2_6
  165. bool "Strip unnecessary exports from the kernel image"
  166. help
  167. Reduces kernel size by stripping unused kernel exports from the kernel image
  168. Note that this might make the kernel incompatible with any kernel modules that
  169. were not selected at the time the kernel image was created
  170. comment "Package build options"
  171. config DEBUG
  172. bool
  173. prompt "Compile packages with debugging info"
  174. default n
  175. help
  176. Adds -g3 to the CFLAGS
  177. config IPV6
  178. bool
  179. prompt "Enable IPv6 support in packages"
  180. default n
  181. help
  182. Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
  183. comment "Kernel build options"
  184. config KERNEL_KALLSYMS
  185. bool "Compile the kernel with symbol table information"
  186. default n
  187. help
  188. This will give you more information in stack traces from kernel oopses
  189. config KERNEL_PROFILING
  190. bool "Compile the kernel with profiling enabled"
  191. default n
  192. help
  193. Enable the extended profiling support mechanisms used by profilers such
  194. as OProfile.
  195. config KERNEL_DEBUG_FS
  196. bool "Compile the kernel with Debug Filesystem enabled"
  197. depends LINUX_2_6
  198. default y
  199. help
  200. debugfs is a virtual file system that kernel developers use to put
  201. debugging files into. Enable this option to be able to read and
  202. write to these files.
  203. endmenu
  204. menuconfig DEVEL
  205. bool "Advanced configuration options (for developers)"
  206. default n
  207. config BROKEN
  208. bool
  209. prompt "Show broken platforms / packages" if DEVEL
  210. default n
  211. config DOWNLOAD_FOLDER
  212. string
  213. prompt "Download folder" if DEVEL
  214. default ""
  215. config LOCALMIRROR
  216. string
  217. prompt "Local mirror for source packages" if DEVEL
  218. config AUTOREBUILD
  219. bool
  220. prompt "Automatic rebuild of packages" if DEVEL
  221. default y
  222. help
  223. Automatically rebuild packages when their files change
  224. config BUILD_SUFFIX
  225. string
  226. prompt "Build suffix to append to the BUILD_DIR variable" if DEVEL
  227. default ""
  228. help
  229. Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
  230. config TARGET_ROOTFS_DIR
  231. string
  232. prompt "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
  233. default ""
  234. help
  235. Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
  236. Use this option to re-define the location of the target root file system directory.
  237. config CCACHE
  238. bool
  239. prompt "Use ccache" if DEVEL
  240. default n
  241. help
  242. Compiler cache; see http://ccache.samba.org/
  243. config EXTERNAL_KERNEL_TREE
  244. string
  245. prompt "Use external kernel tree" if DEVEL
  246. default ""
  247. config KERNEL_GIT_CLONE_URI
  248. string
  249. prompt "Enter git repository to clone" if DEVEL
  250. default ""
  251. help
  252. Enter the full git repository path i.e.:
  253. git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
  254. This will create a git clone of the kernel in your build
  255. directory.
  256. config KERNEL_GIT_LOCAL_REPOSITORY
  257. string
  258. prompt "Enter path to local reference repository" if DEVEL
  259. default ""
  260. help
  261. Enter a full pathname to a local reference git repository.
  262. In this instance, the --refererence option of git clone will
  263. be used thus creating a quick local clone of your repo.
  264. menuconfig TARGET_OPTIONS
  265. bool "Target Options" if DEVEL
  266. config TARGET_OPTIMIZATION
  267. string
  268. prompt "Target Optimizations" if TARGET_OPTIONS
  269. default DEFAULT_TARGET_OPTIMIZATION
  270. help
  271. Optimizations to use when building for the target host.
  272. config SOFT_FLOAT
  273. bool
  274. prompt "Use software floating point by default" if TARGET_OPTIONS
  275. default y
  276. depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU
  277. help
  278. If your target CPU does not have a Floating Point Unit (FPU) or a
  279. kernel FPU emulator, but you still wish to support floating point
  280. functions, then everything will need to be compiled with soft floating
  281. point support (-msoft-float).
  282. Most people will answer N.
  283. source "toolchain/Config.in"
  284. source "target/imagebuilder/Config.in"
  285. source "target/sdk/Config.in"
  286. source "target/toolchain/Config.in"
  287. source "tmp/.config-package.in"