Config.in 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  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 (0 for auto)"
  144. default "0"
  145. help
  146. Number of jobs to run simultaneously. If 0, determine
  147. automatically according to number of CPUs on the host
  148. system.
  149. config BR2_CCACHE
  150. bool "Enable compiler cache"
  151. help
  152. This option will enable the use of ccache, a compiler
  153. cache. It will cache the result of previous builds to speed
  154. up future builds. The cache is stored in
  155. $HOME/.buildroot-ccache.
  156. Note that Buildroot does not try to invalidate the cache
  157. contents when the compiler changes in an incompatible
  158. way. Therefore, if you make a change to the compiler version
  159. and/or configuration, you are responsible for purging the
  160. ccache cache by removing the $HOME/.buildroot-ccache
  161. directory.
  162. config BR2_CCACHE_DIR
  163. string "Compiler cache location"
  164. depends on BR2_CCACHE
  165. default "$(HOME)/.buildroot-ccache"
  166. help
  167. Where ccache should store cached files.
  168. config BR2_DEPRECATED
  169. bool "Show packages that are deprecated or obsolete"
  170. help
  171. This option hides outdated/obsolete versions of packages.
  172. config BR2_ENABLE_DEBUG
  173. bool "build packages with debugging symbols"
  174. help
  175. Build packages with debugging symbols enabled. All libraries
  176. and binaries in the 'staging' directory will have debugging
  177. symbols, which allows remote debugging even if libraries and
  178. binaries are stripped on the target. Whether libraries and
  179. binaries are stripped on the target is controlled by the
  180. BR2_STRIP_* options below.
  181. if BR2_ENABLE_DEBUG
  182. choice
  183. prompt "gcc debug level"
  184. default BR2_DEBUG_2
  185. help
  186. Set the debug level for gcc
  187. config BR2_DEBUG_1
  188. bool "debug level 1"
  189. help
  190. Debug level 1 produces minimal information, enough
  191. for making backtraces in parts of the program that
  192. you don't plan to debug. This includes descriptions
  193. of functions and external variables, but no information
  194. about local variables and no line numbers.
  195. config BR2_DEBUG_2
  196. bool "debug level 2"
  197. help
  198. The default gcc debug level is 2
  199. config BR2_DEBUG_3
  200. bool "debug level 3"
  201. help
  202. Level 3 includes extra information, such as all the
  203. macro definitions present in the program. Some debuggers
  204. support macro expansion when you use -g3.
  205. endchoice
  206. endif
  207. choice
  208. prompt "strip command for binaries on target"
  209. default BR2_STRIP_strip
  210. config BR2_STRIP_strip
  211. bool "strip"
  212. depends on !BR2_ELF2FLT
  213. help
  214. Binaries and libraries in the target filesystem will be
  215. stripped using the normal 'strip' command. This allows to
  216. save space, mainly by removing debugging symbols. Debugging
  217. symbols on the target are needed for native debugging, but
  218. not when remote debugging is used.
  219. config BR2_STRIP_sstrip
  220. bool "sstrip"
  221. select BR2_PACKAGE_SSTRIP_HOST
  222. depends on !BR2_ELF2FLT
  223. help
  224. Binaries and libraries in the target filesystem will be
  225. stripped using the 'sstrip' command, which strips a little
  226. bit more than the traditional 'strip' command. This allows to
  227. save space, mainly by removing debugging symbols. Debugging
  228. symbols on the target are needed for native debugging, but
  229. not when remote debugging is used.
  230. config BR2_STRIP_none
  231. bool "none"
  232. help
  233. Do not strip binaries and libraries in the target
  234. filesystem.
  235. endchoice
  236. config BR2_STRIP_EXCLUDE_FILES
  237. string "executables that should not be stripped"
  238. depends on !BR2_STRIP_none
  239. default ""
  240. help
  241. You may specify a space-separated list of binaries and libraries
  242. here that should not be stripped on the target.
  243. config BR2_STRIP_EXCLUDE_DIRS
  244. string "directories that should be skipped when stripping"
  245. depends on !BR2_STRIP_none
  246. default ""
  247. help
  248. You may specify a space-separated list of directories that should
  249. be skipped when stripping. Binaries and libraries in these
  250. directories will not be touched.
  251. The directories should be specified relative to the target directory,
  252. without leading slash.
  253. choice
  254. prompt "gcc optimization level"
  255. default BR2_OPTIMIZE_S
  256. help
  257. Set the optimization level for gcc
  258. config BR2_OPTIMIZE_0
  259. bool "optimization level 0"
  260. help
  261. Do not optimize. This is the default.
  262. config BR2_OPTIMIZE_1
  263. bool "optimization level 1"
  264. help
  265. Optimize. Optimizing compilation takes somewhat more time,
  266. and a lot more memory for a large function. With -O, the
  267. compiler tries to reduce code size and execution time,
  268. without performing any optimizations that take a great deal
  269. of compilation time. -O turns on the following optimization
  270. flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
  271. -fcprop-registers -floop-optimize -fif-conversion
  272. -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
  273. -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
  274. -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants
  275. -O also turns on -fomit-frame-pointer on machines where doing
  276. so does not interfere with debugging.
  277. config BR2_OPTIMIZE_2
  278. bool "optimization level 2"
  279. help
  280. Optimize even more. GCC performs nearly all supported optimizations
  281. that do not involve a space-speed tradeoff. The compiler does not
  282. perform loop unrolling or function inlining when you specify -O2.
  283. As compared to -O, this option increases both compilation time and
  284. the performance of the generated code. -O2 turns on all optimization
  285. flags specified by -O. It also turns on the following optimization
  286. flags: -fthread-jumps -fcrossjumping -foptimize-sibling-calls
  287. -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm
  288. -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop
  289. -frerun-loop-opt -fcaller-saves -fpeephole2 -fschedule-insns
  290. -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove
  291. -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks
  292. -freorder-functions -falign-functions -falign-jumps -falign-loops
  293. -falign-labels -ftree-vrp -ftree-pre
  294. Please note the warning under -fgcse about invoking -O2 on programs
  295. that use computed gotos.
  296. config BR2_OPTIMIZE_3
  297. bool "optimization level 3"
  298. help
  299. Optimize yet more. -O3 turns on all optimizations specified by -O2
  300. and also turns on the -finline-functions, -funswitch-loops and
  301. -fgcse-after-reload options.
  302. config BR2_OPTIMIZE_S
  303. bool "optimize for size"
  304. help
  305. Optimize for size. -Os enables all -O2 optimizations that do not
  306. typically increase code size. It also performs further optimizations
  307. designed to reduce code size. -Os disables the following optimization
  308. flags: -falign-functions -falign-jumps -falign-loops -falign-labels
  309. -freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays
  310. -ftree-vect-loop-version
  311. endchoice
  312. config BR2_PREFER_STATIC_LIB
  313. bool "prefer static libraries"
  314. help
  315. Where possible, build and use static libraries for the target.
  316. This potentially increases your code size and should only be
  317. used if you know what you do.
  318. The default is to build dynamic libraries and use those on
  319. the target filesystem.
  320. WARNING: This is highly experimental at the moment.
  321. config BR2_HAVE_DOCUMENTATION
  322. bool "documentation on the target"
  323. help
  324. Install the documentation, including manual pages and info
  325. pages, on the target.
  326. If you say n here, your target will not contain any
  327. documentation.
  328. config BR2_HAVE_DEVFILES
  329. bool "development files in target filesystem"
  330. help
  331. Install headers and static libraries in the
  332. target filesystem
  333. config BR2_PACKAGE_OVERRIDE_FILE
  334. string "location of a package override file"
  335. default "$(TOPDIR)/local.mk"
  336. help
  337. A package override file is a short makefile that contains
  338. variable definitions of the form <pkg>_OVERRIDE_SRCDIR,
  339. which allows to tell Buildroot to use an existing directory
  340. as the source directory for a particular package. See the
  341. Buildroot documentation for more details on this feature.
  342. endmenu
  343. source "toolchain/Config.in"
  344. source "target/generic/Config.in"
  345. source "package/Config.in"
  346. source "package/Config.in.host"
  347. source "fs/Config.in"
  348. source "boot/Config.in"
  349. source "linux/Config.in"