Config.in 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  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 DEBUG_DIR
  170. bool "Install debugging binaries into a staging directory"
  171. default n
  172. help
  173. This will install all compiled package binaries into build_dir/target-*/debug-*/,
  174. useful for cross-debugging via gdb/gdbserver
  175. config IPV6
  176. bool
  177. prompt "Enable IPv6 support in packages"
  178. default n
  179. help
  180. Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
  181. comment "Kernel build options"
  182. config KERNEL_KALLSYMS
  183. bool "Compile the kernel with symbol table information"
  184. default n
  185. help
  186. This will give you more information in stack traces from kernel oopses
  187. config KERNEL_PROFILING
  188. bool "Compile the kernel with profiling enabled"
  189. default n
  190. help
  191. Enable the extended profiling support mechanisms used by profilers such
  192. as OProfile.
  193. config KERNEL_DEBUG_FS
  194. bool "Compile the kernel with Debug Filesystem enabled"
  195. depends LINUX_2_6
  196. default y
  197. help
  198. debugfs is a virtual file system that kernel developers use to put
  199. debugging files into. Enable this option to be able to read and
  200. write to these files.
  201. endmenu
  202. menuconfig DEVEL
  203. bool "Advanced configuration options (for developers)"
  204. default n
  205. config BROKEN
  206. bool
  207. prompt "Show broken platforms / packages" if DEVEL
  208. default n
  209. config DOWNLOAD_FOLDER
  210. string
  211. prompt "Download folder" if DEVEL
  212. default ""
  213. config LOCALMIRROR
  214. string
  215. prompt "Local mirror for source packages" if DEVEL
  216. config AUTOREBUILD
  217. bool
  218. prompt "Automatic rebuild of packages" if DEVEL
  219. default y
  220. help
  221. Automatically rebuild packages when their files change
  222. config BUILD_SUFFIX
  223. string
  224. prompt "Build suffix to append to the BUILD_DIR variable" if DEVEL
  225. default ""
  226. help
  227. Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
  228. config TARGET_ROOTFS_DIR
  229. string
  230. prompt "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
  231. default ""
  232. help
  233. Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
  234. Use this option to re-define the location of the target root file system directory.
  235. config CCACHE
  236. bool
  237. prompt "Use ccache" if DEVEL
  238. default n
  239. help
  240. Compiler cache; see http://ccache.samba.org/
  241. config EXTERNAL_KERNEL_TREE
  242. string
  243. prompt "Use external kernel tree" if DEVEL
  244. default ""
  245. config KERNEL_GIT_CLONE_URI
  246. string
  247. prompt "Enter git repository to clone" if DEVEL
  248. default ""
  249. help
  250. Enter the full git repository path i.e.:
  251. git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
  252. This will create a git clone of the kernel in your build
  253. directory.
  254. config KERNEL_GIT_LOCAL_REPOSITORY
  255. string
  256. prompt "Enter path to local reference repository" if DEVEL
  257. default ""
  258. help
  259. Enter a full pathname to a local reference git repository.
  260. In this instance, the --refererence option of git clone will
  261. be used thus creating a quick local clone of your repo.
  262. menuconfig TARGET_OPTIONS
  263. bool "Target Options" if DEVEL
  264. config TARGET_OPTIMIZATION
  265. string
  266. prompt "Target Optimizations" if TARGET_OPTIONS
  267. default DEFAULT_TARGET_OPTIMIZATION
  268. help
  269. Optimizations to use when building for the target host.
  270. config SOFT_FLOAT
  271. bool
  272. prompt "Use software floating point by default" if TARGET_OPTIONS
  273. default y
  274. depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU
  275. help
  276. If your target CPU does not have a Floating Point Unit (FPU) or a
  277. kernel FPU emulator, but you still wish to support floating point
  278. functions, then everything will need to be compiled with soft floating
  279. point support (-msoft-float).
  280. Most people will answer N.
  281. source "toolchain/Config.in"
  282. source "target/imagebuilder/Config.in"
  283. source "target/sdk/Config.in"
  284. source "target/toolchain/Config.in"
  285. source "tmp/.config-package.in"