Config.in 10 KB

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