Config.in 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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. config TARGET_ROOTFS_JFFS2
  19. bool "jffs2"
  20. default y if USES_JFFS2
  21. depends !TARGET_ROOTFS_INITRAMFS
  22. help
  23. Build a jffs2 root filesystem
  24. config TARGET_ROOTFS_SQUASHFS
  25. bool "squashfs"
  26. default y if USES_SQUASHFS
  27. depends !TARGET_ROOTFS_INITRAMFS
  28. help
  29. Build a squashfs-lzma root filesystem
  30. config TARGET_ROOTFS_TGZ
  31. bool "tgz"
  32. default y if USES_TGZ
  33. depends !TARGET_ROOTFS_INITRAMFS
  34. help
  35. Build a compressed tar archive of the the root filesystem
  36. config TARGET_ROOTFS_CPIOGZ
  37. bool "cpiogz"
  38. default y if USES_CPIOGZ
  39. depends !TARGET_ROOTFS_INITRAMFS
  40. help
  41. Build a compressed cpio archive of the the root filesystem
  42. config TARGET_ROOTFS_EXT2FS
  43. bool "ext2"
  44. default y if USES_EXT2
  45. depends !TARGET_ROOTFS_INITRAMFS
  46. help
  47. Ext2 file system with some free space for uml images
  48. config TARGET_ROOTFS_ISO
  49. bool "iso"
  50. default n
  51. depends TARGET_ROOTFS_INITRAMFS && TARGET_x86
  52. help
  53. Create some bootable ISO image
  54. comment "Image Options"
  55. source "target/linux/*/image/Config.in"
  56. config TARGET_ROOTFS_FSPART
  57. int "Filesystem part size (in MB)"
  58. depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT2FS || TARGET_rb532 || TARGET_olpc
  59. default 48
  60. help
  61. Allows you to change the filesystem partition size
  62. config TARGET_ROOTFS_MAXINODE
  63. int "Maximum number of inodes in filesystem"
  64. depends TARGET_ROOTFS_EXT2FS
  65. default 6000
  66. help
  67. Allows you to change the maximum number of inodes in the filesystem
  68. endmenu
  69. menu "Global build settings"
  70. config ALL
  71. bool "Select all packages by default"
  72. default n
  73. comment "General build options"
  74. config CLEAN_IPKG
  75. bool
  76. prompt "Disable ipkg/opkg installation on the target"
  77. default n
  78. help
  79. This removes all ipkg data from the target directory before building the root fs
  80. choice
  81. prompt "Binary stripping method"
  82. default USE_STRIP if USE_GLIBC || USE_EGLIBC
  83. default USE_SSTRIP
  84. help
  85. Select the binary stripping method you wish to use.
  86. config NO_STRIP
  87. bool "none"
  88. help
  89. This will install unstripped binaries (useful for native compiling/debugging)
  90. config USE_STRIP
  91. bool "strip"
  92. depends !DEBUG
  93. help
  94. This will install binaries stripped using strip from binutils
  95. config USE_SSTRIP
  96. bool "sstrip"
  97. depends !DEBUG
  98. depends !USE_GLIBC
  99. depends !USE_EGLIBC
  100. help
  101. This will install binaries stripped using sstrip
  102. endchoice
  103. config USE_MKLIBS
  104. bool "Strip unnecessary functions from libraries"
  105. help
  106. Reduces libraries to only those functions that are necessary for using all
  107. selected packages (including those selected as <M>)
  108. Note that this will make the system libraries incompatible with most of the packages
  109. that are not selected during the build process
  110. config STRIP_KERNEL_EXPORTS
  111. depends LINUX_2_6
  112. bool "Strip unnecessary exports from the kernel image"
  113. help
  114. Reduces kernel size by stripping unused kernel exports from the kernel image
  115. Note that this might make the kernel incompatible with any kernel modules that
  116. were not selected at the time the kernel image was created
  117. comment "Package build options"
  118. config DEBUG
  119. bool
  120. prompt "Compile packages with debugging info"
  121. default n
  122. help
  123. Disables stripping and adds -g3 to the CFLAGS
  124. config DEBUG_DIR
  125. bool "Install debugging binaries into a staging directory"
  126. default n
  127. help
  128. This will install all compiled package binaries into build_dir/target-*/debug-*/,
  129. useful for cross-debugging via gdb/gdbserver
  130. config IPV6
  131. bool
  132. prompt "Enable IPv6 support in packages"
  133. default n
  134. help
  135. Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
  136. comment "Kernel build options"
  137. config KERNEL_KALLSYMS
  138. bool "Compile the kernel with symbol table information"
  139. default n
  140. help
  141. This will give you more information in stack traces from kernel oopses
  142. config KERNEL_PROFILING
  143. bool "Compile the kernel with profiling enabled"
  144. default n
  145. help
  146. Enable the extended profiling support mechanisms used by profilers such
  147. as OProfile.
  148. endmenu
  149. menuconfig DEVEL
  150. bool "Advanced configuration options (for developers)"
  151. default n
  152. select TOOLCHAINOPTS if !NATIVE_TOOLCHAIN
  153. config BROKEN
  154. bool
  155. prompt "Show broken platforms / packages" if DEVEL
  156. default n
  157. config DOWNLOAD_FOLDER
  158. string
  159. prompt "Download folder" if DEVEL
  160. default ""
  161. config LOCALMIRROR
  162. string
  163. prompt "Local mirror for source packages" if DEVEL
  164. config AUTOREBUILD
  165. bool
  166. prompt "Automatic rebuild of packages" if DEVEL
  167. default y
  168. help
  169. Automatically rebuild packages when their files change
  170. config BUILD_SUFFIX
  171. string
  172. prompt "Build suffix to append to the BUILD_DIR variable" if DEVEL
  173. default ""
  174. help
  175. Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix
  176. config TARGET_ROOTFS_DIR
  177. string
  178. prompt "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
  179. default ""
  180. help
  181. Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with custom path.
  182. Use this option to re-define the location of the target root file system directory.
  183. config CCACHE
  184. bool
  185. prompt "Use ccache" if DEVEL
  186. default n
  187. help
  188. Compiler cache; see http://ccache.samba.org/
  189. config EXTERNAL_KERNEL_TREE
  190. string
  191. prompt "Use external kernel tree" if DEVEL
  192. default ""
  193. config KERNEL_GIT_CLONE_URI
  194. string
  195. prompt "Enter git repository to clone" if DEVEL
  196. default ""
  197. help
  198. Enter the full git repository path i.e.:
  199. git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
  200. This will create a git clone of the kernel in your build
  201. directory.
  202. config KERNEL_GIT_LOCAL_REPOSITORY
  203. string
  204. prompt "Enter path to local reference repository" if DEVEL
  205. default ""
  206. help
  207. Enter a full pathname to a local reference git repository.
  208. In this instance, the --refererence option of git clone will
  209. be used thus creating a quick local clone of your repo.
  210. source "toolchain/Config.in"
  211. source "target/imagebuilder/Config.in"
  212. source "target/sdk/Config.in"
  213. source "tmp/.config-package.in"