Config.in 6.9 KB

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