Config.in 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. # Copyright (C) 2006-2007 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. choice
  101. prompt "Binary stripping method"
  102. default USE_STRIP if USE_GLIBC || USE_EGLIBC
  103. default USE_SSTRIP
  104. help
  105. Select the binary stripping method you wish to use.
  106. config NO_STRIP
  107. bool "none"
  108. help
  109. This will install unstripped binaries (useful for native compiling/debugging)
  110. config USE_STRIP
  111. bool "strip"
  112. help
  113. This will install binaries stripped using strip from binutils
  114. config USE_SSTRIP
  115. bool "sstrip"
  116. depends !USE_GLIBC
  117. depends !USE_EGLIBC
  118. help
  119. This will install binaries stripped using sstrip
  120. endchoice
  121. config USE_MKLIBS
  122. bool "Strip unnecessary functions from libraries"
  123. help
  124. Reduces libraries to only those functions that are necessary for using all
  125. selected packages (including those selected as <M>)
  126. Note that this will make the system libraries incompatible with most of the packages
  127. that are not selected during the build process
  128. config STRIP_KERNEL_EXPORTS
  129. depends LINUX_2_6
  130. bool "Strip unnecessary exports from the kernel image"
  131. help
  132. Reduces kernel size by stripping unused kernel exports from the kernel image
  133. Note that this might make the kernel incompatible with any kernel modules that
  134. were not selected at the time the kernel image was created
  135. comment "Package build options"
  136. config DEBUG
  137. bool
  138. prompt "Compile packages with debugging info"
  139. default n
  140. help
  141. Disables stripping and adds -g3 to the CFLAGS
  142. config DEBUG_DIR
  143. bool "Install debugging binaries into a staging directory"
  144. default n
  145. help
  146. This will install all compiled package binaries into build_dir/target-*/debug-*/,
  147. useful for cross-debugging via gdb/gdbserver
  148. config IPV6
  149. bool
  150. prompt "Enable IPv6 support in packages"
  151. default n
  152. help
  153. Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
  154. comment "Kernel build options"
  155. config KERNEL_KALLSYMS
  156. bool "Compile the kernel with symbol table information"
  157. default n
  158. help
  159. This will give you more information in stack traces from kernel oopses
  160. config KERNEL_PROFILING
  161. bool "Compile the kernel with profiling enabled"
  162. default n
  163. help
  164. Enable the extended profiling support mechanisms used by profilers such
  165. as OProfile.
  166. config KERNEL_DEBUG_FS
  167. bool "Compile the kernel with Debug Filesystem enabled"
  168. depends LINUX_2_6
  169. default y
  170. help
  171. debugfs is a virtual file system that kernel developers use to put
  172. debugging files into. Enable this option to be able to read and
  173. write to these files.
  174. endmenu
  175. menuconfig DEVEL
  176. bool "Advanced configuration options (for developers)"
  177. default n
  178. select TOOLCHAINOPTS if !NATIVE_TOOLCHAIN
  179. config BROKEN
  180. bool
  181. prompt "Show broken platforms / packages" if DEVEL
  182. default n
  183. config DOWNLOAD_FOLDER
  184. string
  185. prompt "Download folder" if DEVEL
  186. default ""
  187. config LOCALMIRROR
  188. string
  189. prompt "Local mirror for source packages" if DEVEL
  190. config AUTOREBUILD
  191. bool
  192. prompt "Automatic rebuild of packages" if DEVEL
  193. default y
  194. help
  195. Automatically rebuild packages when their files change
  196. config BUILD_SUFFIX
  197. string
  198. prompt "Build suffix to append to the BUILD_DIR variable" if DEVEL
  199. default ""
  200. help
  201. Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
  202. config TARGET_ROOTFS_DIR
  203. string
  204. prompt "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
  205. default ""
  206. help
  207. Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
  208. Use this option to re-define the location of the target root file system directory.
  209. config CCACHE
  210. bool
  211. prompt "Use ccache" if DEVEL
  212. default n
  213. help
  214. Compiler cache; see http://ccache.samba.org/
  215. config EXTERNAL_KERNEL_TREE
  216. string
  217. prompt "Use external kernel tree" if DEVEL
  218. default ""
  219. config KERNEL_GIT_CLONE_URI
  220. string
  221. prompt "Enter git repository to clone" if DEVEL
  222. default ""
  223. help
  224. Enter the full git repository path i.e.:
  225. git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
  226. This will create a git clone of the kernel in your build
  227. directory.
  228. config KERNEL_GIT_LOCAL_REPOSITORY
  229. string
  230. prompt "Enter path to local reference repository" if DEVEL
  231. default ""
  232. help
  233. Enter a full pathname to a local reference git repository.
  234. In this instance, the --refererence option of git clone will
  235. be used thus creating a quick local clone of your repo.
  236. source "toolchain/Config.in"
  237. source "target/imagebuilder/Config.in"
  238. source "target/sdk/Config.in"
  239. source "tmp/.config-package.in"