Config.in 12 KB

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