Config.in 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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. config BR2_DEPRECATED
  155. bool "Show packages that are deprecated or obsolete"
  156. help
  157. This option hides outdated/obsolete versions of packages.
  158. config BR2_ENABLE_DEBUG
  159. bool "build packages with debugging symbols"
  160. select BR2_PACKAGE_GDB_SERVER
  161. help
  162. Build packages with debugging symbols
  163. enabled
  164. if BR2_ENABLE_DEBUG
  165. choice
  166. prompt "gcc debug level"
  167. default BR2_DEBUG_2
  168. help
  169. Set the debug level for gcc
  170. config BR2_DEBUG_1
  171. bool "debug level 1"
  172. help
  173. Debug level 1 produces minimal information, enough
  174. for making backtraces in parts of the program that
  175. you don't plan to debug. This includes descriptions
  176. of functions and external variables, but no information
  177. about local variables and no line numbers.
  178. config BR2_DEBUG_2
  179. bool "debug level 2"
  180. help
  181. The default gcc debug level is 2
  182. config BR2_DEBUG_3
  183. bool "debug level 3"
  184. help
  185. Level 3 includes extra information, such as all the
  186. macro definitions present in the program. Some debuggers
  187. support macro expansion when you use -g3.
  188. endchoice
  189. endif
  190. choice
  191. prompt "strip"
  192. default BR2_STRIP_strip
  193. help
  194. Select whether to strip binaries and libraries for the target
  195. or not.
  196. strip is the normal strip command
  197. sstrip is a strip that discards more than the normal strip
  198. none do not strip (only for debugging!)
  199. config BR2_STRIP_strip
  200. bool "strip"
  201. depends on !BR2_ELF2FLT
  202. help
  203. strip is the normal strip command
  204. config BR2_STRIP_sstrip
  205. bool "sstrip"
  206. select BR2_PACKAGE_SSTRIP_HOST
  207. depends on !BR2_ELF2FLT
  208. help
  209. sstrip is a strip that discards more than the normal strip
  210. config BR2_STRIP_none
  211. bool "none"
  212. help
  213. none do not strip (only for debugging!)
  214. endchoice
  215. choice
  216. prompt "gcc optimization level"
  217. default BR2_OPTIMIZE_S
  218. help
  219. Set the optimization level for gcc
  220. config BR2_OPTIMIZE_0
  221. bool "optimization level 0"
  222. help
  223. Do not optimize. This is the default.
  224. config BR2_OPTIMIZE_1
  225. bool "optimization level 1"
  226. help
  227. Optimize. Optimizing compilation takes somewhat more time,
  228. and a lot more memory for a large function. With -O, the
  229. compiler tries to reduce code size and execution time,
  230. without performing any optimizations that take a great deal
  231. of compilation time. -O turns on the following optimization
  232. flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
  233. -fcprop-registers -floop-optimize -fif-conversion
  234. -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
  235. -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
  236. -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants
  237. -O also turns on -fomit-frame-pointer on machines where doing
  238. so does not interfere with debugging.
  239. config BR2_OPTIMIZE_2
  240. bool "optimization level 2"
  241. help
  242. Optimize even more. GCC performs nearly all supported optimizations
  243. that do not involve a space-speed tradeoff. The compiler does not
  244. perform loop unrolling or function inlining when you specify -O2.
  245. As compared to -O, this option increases both compilation time and
  246. the performance of the generated code. -O2 turns on all optimization
  247. flags specified by -O. It also turns on the following optimization
  248. flags: -fthread-jumps -fcrossjumping -foptimize-sibling-calls
  249. -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm
  250. -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop
  251. -frerun-loop-opt -fcaller-saves -fpeephole2 -fschedule-insns
  252. -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove
  253. -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks
  254. -freorder-functions -falign-functions -falign-jumps -falign-loops
  255. -falign-labels -ftree-vrp -ftree-pre
  256. Please note the warning under -fgcse about invoking -O2 on programs
  257. that use computed gotos.
  258. config BR2_OPTIMIZE_3
  259. bool "optimization level 3"
  260. help
  261. Optimize yet more. -O3 turns on all optimizations specified by -O2
  262. and also turns on the -finline-functions, -funswitch-loops and
  263. -fgcse-after-reload options.
  264. config BR2_OPTIMIZE_S
  265. bool "optimize for size"
  266. help
  267. Optimize for size. -Os enables all -O2 optimizations that do not
  268. typically increase code size. It also performs further optimizations
  269. designed to reduce code size. -Os disables the following optimization
  270. flags: -falign-functions -falign-jumps -falign-loops -falign-labels
  271. -freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays
  272. -ftree-vect-loop-version
  273. endchoice
  274. config BR2_PREFER_STATIC_LIB
  275. bool "prefer static libraries"
  276. help
  277. Where possible, build and use static libraries for the target.
  278. This potentially increases your code size and should only be
  279. used if you know what you do.
  280. The default is to build dynamic libraries and use those on
  281. the target filesystem.
  282. WARNING: This is highly experimental at the moment.
  283. config BR2_HAVE_DOCUMENTATION
  284. bool "documentation on the target"
  285. help
  286. Install the documentation, including manual pages and info
  287. pages, on the target.
  288. If you say n here, your target will not contain any
  289. documentation.
  290. config BR2_HAVE_DEVFILES
  291. bool "development files in target filesystem"
  292. help
  293. Install headers and static libraries in the
  294. target filesystem
  295. config BR2_PACKAGE_OVERRIDE_FILE
  296. string "location of a package override file"
  297. default "$(TOPDIR)/local.mk"
  298. help
  299. A package override file is a short makefile that contains
  300. variable definitions of the form <pkg>_OVERRIDE_SRCDIR,
  301. which allows to tell Buildroot to use an existing directory
  302. as the source directory for a particular package. See the
  303. Buildroot documentation for more details on this feature.
  304. endmenu
  305. source "toolchain/Config.in"
  306. source "target/generic/Config.in"
  307. source "package/Config.in"
  308. source "fs/Config.in"
  309. source "boot/Config.in"
  310. source "linux/Config.in"