Config.in 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. #
  2. mainmenu "Buildroot $BR2_VERSION Configuration"
  3. config BR2_HAVE_DOT_CONFIG
  4. bool
  5. default y
  6. config BR2_VERSION
  7. string
  8. option env="BR2_VERSION_FULL"
  9. source "target/Config.in.arch"
  10. menu "Build options"
  11. menu "Commands"
  12. config BR2_WGET
  13. string "Wget command"
  14. default "wget --passive-ftp -nd -t 3"
  15. config BR2_SVN
  16. string "Subversion (svn) command"
  17. default "svn"
  18. config BR2_BZR
  19. string "Bazaar (bzr) command"
  20. default "bzr"
  21. config BR2_GIT
  22. string "Git command"
  23. default "git"
  24. config BR2_ZCAT
  25. string "zcat command"
  26. default "gzip -d -c"
  27. help
  28. Command to be used to extract a gzip'ed file to stdout.
  29. zcat is identical to gunzip -c except that the former may
  30. not be available on your system.
  31. Default is "gzip -d -c"
  32. Other possible values include "gunzip -c" or "zcat".
  33. config BR2_BZCAT
  34. string "bzcat command"
  35. default "bzcat"
  36. help
  37. Command to be used to extract a bzip2'ed file to stdout.
  38. bzcat is identical to bunzip2 -c except that the former may
  39. not be available on your system.
  40. Default is "bzcat"
  41. Other possible values include "bunzip2 -c" or "bzip2 -d -c".
  42. config BR2_TAR_OPTIONS
  43. string "Tar options"
  44. default ""
  45. help
  46. Options to pass to tar when extracting the sources.
  47. E.g. " -v --exclude='*.svn*'" to exclude all .svn internal files
  48. and to be verbose.
  49. endmenu
  50. config BR2_DL_DIR
  51. string "Download dir"
  52. default "$(TOPDIR)/dl"
  53. help
  54. Directory to store all the source files that we need to fetch.
  55. If the Linux shell environment has defined the BUILDROOT_DL_DIR
  56. environment variable, then this overrides this configuration item.
  57. The default is $(TOPDIR)/dl
  58. config BR2_HOST_DIR
  59. string "Host dir"
  60. default "$(BASE_DIR)/host"
  61. help
  62. Directory to store all the binary files that are built for the host.
  63. This includes the cross compilation toolchain when building the
  64. internal buildroot toolchain.
  65. The default is $(BASE_DIR)/host
  66. menu "Mirrors and Download locations"
  67. config BR2_PRIMARY_SITE
  68. string "Primary download site"
  69. default ""
  70. help
  71. Primary site to download from. If this option is set then buildroot
  72. will try to download package source first from this site and try the
  73. default if the file is not found.
  74. NOTE: This only works for packages using the Makefile.autotools.in
  75. config BR2_BACKUP_SITE
  76. string "Backup download site"
  77. default "http://sources.buildroot.net/"
  78. help
  79. Backup site to download from. If this option is set then buildroot
  80. will fall back to download package sources from here if the
  81. normal location fails.
  82. config BR2_SOURCEFORGE_MIRROR
  83. string "Sourceforge mirror site"
  84. default "easynews"
  85. help
  86. Sourceforge has a system of mirror sites. Some sites may be
  87. closer to your location, and sometimes mirror sites go down
  88. and are no longer available. This option allows you to select
  89. your preferred Sourceforge mirror site.
  90. The list of mirrors is available here:
  91. http://prdownloads.sourceforge.net/index-sf.html?download
  92. config BR2_KERNEL_MIRROR
  93. string "Kernel.org mirror"
  94. default "http://www.kernel.org/pub/"
  95. help
  96. kernel.org is mirrored on a number of servers around the world.
  97. The following allows you to select your preferred mirror.
  98. Have a look on the kernel.org site for a list of mirrors, then enter
  99. the URL to the base directory. Examples:
  100. http://www.XX.kernel.org/pub (XX = country code)
  101. http://mirror.aarnet.edu.au/pub/ftp.kernel.org
  102. config BR2_GNU_MIRROR
  103. string "GNU Software mirror"
  104. default "http://ftp.gnu.org/pub/gnu"
  105. help
  106. GNU has multiple software mirrors scattered around the world.
  107. The following allows you to select your preferred mirror.
  108. Have a look on the gnu.org site for a list of mirrors, then enter
  109. the URL to the base directory. Examples:
  110. http://ftp.gnu.org/pub/gnu
  111. http://mirror.aarnet.edu.au/pub/gnu
  112. config BR2_DEBIAN_MIRROR
  113. string "Debian Software mirror"
  114. default "http://ftp.debian.org"
  115. help
  116. Debian has multiple software mirrors scattered around the world.
  117. The following allows you to select your preferred mirror.
  118. Usually, just add your country code like XX here:
  119. http://ftp.XX.debian.org
  120. endmenu
  121. config BR2_JLEVEL
  122. int "Number of jobs to run simultaneously"
  123. default "2"
  124. help
  125. Number of jobs to run simultaneously
  126. config BR2_CCACHE
  127. bool "Enable compiler cache"
  128. help
  129. This option will enable the use of ccache, a compiler
  130. cache. It will cache the result of previous builds to speed
  131. up future builds. The cache is stored in
  132. $HOME/.buildroot-ccache.
  133. config BR2_DEPRECATED
  134. bool "Show packages that are deprecated or obsolete"
  135. help
  136. This option hides outdated/obsolete versions of packages.
  137. config BR2_ENABLE_DEBUG
  138. bool "build packages with debugging symbols"
  139. select BR2_PACKAGE_GDB_SERVER
  140. help
  141. Build packages with debugging symbols
  142. enabled
  143. if BR2_ENABLE_DEBUG
  144. choice
  145. prompt "gcc debug level"
  146. default BR2_DEBUG_2
  147. help
  148. Set the debug level for gcc
  149. config BR2_DEBUG_1
  150. bool "debug level 1"
  151. help
  152. Debug level 1 produces minimal information, enough
  153. for making backtraces in parts of the program that
  154. you don't plan to debug. This includes descriptions
  155. of functions and external variables, but no information
  156. about local variables and no line numbers.
  157. config BR2_DEBUG_2
  158. bool "debug level 2"
  159. help
  160. The default gcc debug level is 2
  161. config BR2_DEBUG_3
  162. bool "debug level 3"
  163. help
  164. Level 3 includes extra information, such as all the
  165. macro definitions present in the program. Some debuggers
  166. support macro expansion when you use -g3.
  167. endchoice
  168. endif
  169. choice
  170. prompt "strip"
  171. default BR2_STRIP_strip
  172. help
  173. Select whether to strip binaries and libraries for the target
  174. or not.
  175. strip is the normal strip command
  176. sstrip is a strip that discards more than the normal strip
  177. none do not strip (only for debugging!)
  178. config BR2_STRIP_strip
  179. bool "strip"
  180. depends on !BR2_ENABLE_DEBUG && !BR2_ELF2FLT
  181. help
  182. strip is the normal strip command
  183. config BR2_STRIP_sstrip
  184. bool "sstrip"
  185. select BR2_PACKAGE_SSTRIP_HOST
  186. depends on !BR2_ENABLE_DEBUG && !BR2_ELF2FLT
  187. help
  188. sstrip is a strip that discards more than the normal strip
  189. config BR2_STRIP_none
  190. bool "none"
  191. help
  192. none do not strip (only for debugging!)
  193. endchoice
  194. choice
  195. prompt "gcc optimization level"
  196. default BR2_OPTIMIZE_S
  197. help
  198. Set the optimization level for gcc
  199. config BR2_OPTIMIZE_0
  200. bool "optimization level 0"
  201. help
  202. Do not optimize. This is the default.
  203. config BR2_OPTIMIZE_1
  204. bool "optimization level 1"
  205. help
  206. Optimize. Optimizing compilation takes somewhat more time,
  207. and a lot more memory for a large function. With -O, the
  208. compiler tries to reduce code size and execution time,
  209. without performing any optimizations that take a great deal
  210. of compilation time. -O turns on the following optimization
  211. flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
  212. -fcprop-registers -floop-optimize -fif-conversion
  213. -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
  214. -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
  215. -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants
  216. -O also turns on -fomit-frame-pointer on machines where doing
  217. so does not interfere with debugging.
  218. config BR2_OPTIMIZE_2
  219. bool "optimization level 2"
  220. help
  221. Optimize even more. GCC performs nearly all supported optimizations
  222. that do not involve a space-speed tradeoff. The compiler does not
  223. perform loop unrolling or function inlining when you specify -O2.
  224. As compared to -O, this option increases both compilation time and
  225. the performance of the generated code. -O2 turns on all optimization
  226. flags specified by -O. It also turns on the following optimization
  227. flags: -fthread-jumps -fcrossjumping -foptimize-sibling-calls
  228. -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm
  229. -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop
  230. -frerun-loop-opt -fcaller-saves -fpeephole2 -fschedule-insns
  231. -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove
  232. -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks
  233. -freorder-functions -falign-functions -falign-jumps -falign-loops
  234. -falign-labels -ftree-vrp -ftree-pre
  235. Please note the warning under -fgcse about invoking -O2 on programs
  236. that use computed gotos.
  237. config BR2_OPTIMIZE_3
  238. bool "optimization level 3"
  239. help
  240. Optimize yet more. -O3 turns on all optimizations specified by -O2
  241. and also turns on the -finline-functions, -funswitch-loops and
  242. -fgcse-after-reload options.
  243. config BR2_OPTIMIZE_S
  244. bool "optimize for size"
  245. help
  246. Optimize for size. -Os enables all -O2 optimizations that do not
  247. typically increase code size. It also performs further optimizations
  248. designed to reduce code size. -Os disables the following optimization
  249. flags: -falign-functions -falign-jumps -falign-loops -falign-labels
  250. -freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays
  251. -ftree-vect-loop-version
  252. endchoice
  253. config BR2_PREFER_STATIC_LIB
  254. bool "prefer static libraries"
  255. help
  256. Where possible, build and use static libraries for the target.
  257. This potentially increases your code size and should only be
  258. used if you know what you do.
  259. The default is to build dynamic libraries and use those on
  260. the target filesystem.
  261. WARNING: This is highly experimental at the moment.
  262. config BR2_HAVE_DOCUMENTATION
  263. bool "documentation on the target"
  264. help
  265. Install the documentation, including manual pages and info
  266. pages, on the target.
  267. If you say n here, your target will not contain any
  268. documentation.
  269. config BR2_HAVE_DEVFILES
  270. bool "development files in target filesystem"
  271. help
  272. Install headers and static libraries in the
  273. target filesystem
  274. endmenu
  275. source "toolchain/Config.in"
  276. source "target/generic/Config.in"
  277. source "package/Config.in"
  278. source "fs/Config.in"
  279. source "boot/Config.in"
  280. source "linux/Config.in"