Config.in 8.1 KB

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