Config.in 8.2 KB

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