Config.in 8.0 KB

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