Config.in 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  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 !DEBUG
  132. depends !USE_GLIBC
  133. depends !USE_EGLIBC
  134. help
  135. This will install binaries stripped using sstrip
  136. endchoice
  137. config USE_MKLIBS
  138. bool "Strip unnecessary functions from libraries"
  139. help
  140. Reduces libraries to only those functions that are necessary for using all
  141. selected packages (including those selected as <M>)
  142. Note that this will make the system libraries incompatible with most of the packages
  143. that are not selected during the build process
  144. config STRIP_KERNEL_EXPORTS
  145. depends LINUX_2_6
  146. bool "Strip unnecessary exports from the kernel image"
  147. help
  148. Reduces kernel size by stripping unused kernel exports from the kernel image
  149. Note that this might make the kernel incompatible with any kernel modules that
  150. were not selected at the time the kernel image was created
  151. comment "Package build options"
  152. config DEBUG
  153. bool
  154. prompt "Compile packages with debugging info"
  155. default n
  156. help
  157. Adds -g3 to the CFLAGS
  158. config DEBUG_DIR
  159. bool "Install debugging binaries into a staging directory"
  160. default n
  161. help
  162. This will install all compiled package binaries into build_dir/target-*/debug-*/,
  163. useful for cross-debugging via gdb/gdbserver
  164. config IPV6
  165. bool
  166. prompt "Enable IPv6 support in packages"
  167. default n
  168. help
  169. Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
  170. comment "Kernel build options"
  171. config KERNEL_KALLSYMS
  172. bool "Compile the kernel with symbol table information"
  173. default n
  174. help
  175. This will give you more information in stack traces from kernel oopses
  176. config KERNEL_PROFILING
  177. bool "Compile the kernel with profiling enabled"
  178. default n
  179. help
  180. Enable the extended profiling support mechanisms used by profilers such
  181. as OProfile.
  182. config KERNEL_DEBUG_FS
  183. bool "Compile the kernel with Debug Filesystem enabled"
  184. depends LINUX_2_6
  185. default y
  186. help
  187. debugfs is a virtual file system that kernel developers use to put
  188. debugging files into. Enable this option to be able to read and
  189. write to these files.
  190. endmenu
  191. menuconfig DEVEL
  192. bool "Advanced configuration options (for developers)"
  193. default n
  194. config BROKEN
  195. bool
  196. prompt "Show broken platforms / packages" if DEVEL
  197. default n
  198. config DOWNLOAD_FOLDER
  199. string
  200. prompt "Download folder" if DEVEL
  201. default ""
  202. config LOCALMIRROR
  203. string
  204. prompt "Local mirror for source packages" if DEVEL
  205. config AUTOREBUILD
  206. bool
  207. prompt "Automatic rebuild of packages" if DEVEL
  208. default y
  209. help
  210. Automatically rebuild packages when their files change
  211. config BUILD_SUFFIX
  212. string
  213. prompt "Build suffix to append to the BUILD_DIR variable" if DEVEL
  214. default ""
  215. help
  216. Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
  217. config TARGET_ROOTFS_DIR
  218. string
  219. prompt "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
  220. default ""
  221. help
  222. Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
  223. Use this option to re-define the location of the target root file system directory.
  224. config CCACHE
  225. bool
  226. prompt "Use ccache" if DEVEL
  227. default n
  228. help
  229. Compiler cache; see http://ccache.samba.org/
  230. config EXTERNAL_KERNEL_TREE
  231. string
  232. prompt "Use external kernel tree" if DEVEL
  233. default ""
  234. config KERNEL_GIT_CLONE_URI
  235. string
  236. prompt "Enter git repository to clone" if DEVEL
  237. default ""
  238. help
  239. Enter the full git repository path i.e.:
  240. git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
  241. This will create a git clone of the kernel in your build
  242. directory.
  243. config KERNEL_GIT_LOCAL_REPOSITORY
  244. string
  245. prompt "Enter path to local reference repository" if DEVEL
  246. default ""
  247. help
  248. Enter a full pathname to a local reference git repository.
  249. In this instance, the --refererence option of git clone will
  250. be used thus creating a quick local clone of your repo.
  251. menuconfig TARGET_OPTIONS
  252. bool "Target Options" if DEVEL
  253. config TARGET_OPTIMIZATION
  254. string
  255. prompt "Target Optimizations" if TARGET_OPTIONS
  256. default DEFAULT_TARGET_OPTIMIZATION
  257. help
  258. Optimizations to use when building for the target host.
  259. config SOFT_FLOAT
  260. bool
  261. prompt "Use software floating point by default" if TARGET_OPTIONS
  262. default y
  263. depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU
  264. help
  265. If your target CPU does not have a Floating Point Unit (FPU) or a
  266. kernel FPU emulator, but you still wish to support floating point
  267. functions, then everything will need to be compiled with soft floating
  268. point support (-msoft-float).
  269. Most people will answer N.
  270. source "toolchain/Config.in"
  271. source "target/imagebuilder/Config.in"
  272. source "target/sdk/Config.in"
  273. source "target/toolchain/Config.in"
  274. source "tmp/.config-package.in"