Config.in 13 KB

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