Config.in 15 KB

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