Config.in 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  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. config BR2_LUAROCKS_MIRROR
  175. string "LuaRocks mirror"
  176. default "http://luarocks.org/repositories/rocks"
  177. help
  178. LuaRocks repository.
  179. See http://luarocks.org
  180. endmenu
  181. config BR2_JLEVEL
  182. int "Number of jobs to run simultaneously (0 for auto)"
  183. default "0"
  184. help
  185. Number of jobs to run simultaneously. If 0, determine
  186. automatically according to number of CPUs on the host
  187. system.
  188. config BR2_CCACHE
  189. bool "Enable compiler cache"
  190. help
  191. This option will enable the use of ccache, a compiler
  192. cache. It will cache the result of previous builds to speed
  193. up future builds. The cache is stored in
  194. $HOME/.buildroot-ccache.
  195. Note that Buildroot does not try to invalidate the cache
  196. contents when the compiler changes in an incompatible
  197. way. Therefore, if you make a change to the compiler version
  198. and/or configuration, you are responsible for purging the
  199. ccache cache by removing the $HOME/.buildroot-ccache
  200. directory.
  201. config BR2_CCACHE_DIR
  202. string "Compiler cache location"
  203. depends on BR2_CCACHE
  204. default "$(HOME)/.buildroot-ccache"
  205. help
  206. Where ccache should store cached files.
  207. config BR2_DEPRECATED
  208. bool "Show packages that are deprecated or obsolete"
  209. help
  210. This option hides outdated/obsolete versions of packages.
  211. if BR2_DEPRECATED
  212. config BR2_DEPRECATED_SINCE_2012_11
  213. bool
  214. default y
  215. config BR2_DEPRECATED_SINCE_2013_02
  216. bool
  217. default y
  218. config BR2_DEPRECATED_SINCE_2013_05
  219. bool
  220. default y
  221. config BR2_DEPRECATED_SINCE_2013_08
  222. bool
  223. default y
  224. config BR2_DEPRECATED_SINCE_2013_11
  225. bool
  226. default y
  227. config BR2_DEPRECATED_SINCE_2014_02
  228. bool
  229. default y
  230. endif
  231. config BR2_ENABLE_DEBUG
  232. bool "build packages with debugging symbols"
  233. help
  234. Build packages with debugging symbols enabled. All libraries
  235. and binaries in the 'staging' directory will have debugging
  236. symbols, which allows remote debugging even if libraries and
  237. binaries are stripped on the target. Whether libraries and
  238. binaries are stripped on the target is controlled by the
  239. BR2_STRIP_* options below.
  240. if BR2_ENABLE_DEBUG
  241. choice
  242. prompt "gcc debug level"
  243. default BR2_DEBUG_2
  244. help
  245. Set the debug level for gcc
  246. config BR2_DEBUG_1
  247. bool "debug level 1"
  248. help
  249. Debug level 1 produces minimal information, enough
  250. for making backtraces in parts of the program that
  251. you don't plan to debug. This includes descriptions
  252. of functions and external variables, but no information
  253. about local variables and no line numbers.
  254. config BR2_DEBUG_2
  255. bool "debug level 2"
  256. help
  257. The default gcc debug level is 2
  258. config BR2_DEBUG_3
  259. bool "debug level 3"
  260. help
  261. Level 3 includes extra information, such as all the
  262. macro definitions present in the program. Some debuggers
  263. support macro expansion when you use -g3.
  264. endchoice
  265. endif
  266. choice
  267. prompt "strip command for binaries on target"
  268. default BR2_STRIP_strip
  269. config BR2_STRIP_strip
  270. bool "strip"
  271. depends on !BR2_PACKAGE_HOST_ELF2FLT
  272. help
  273. Binaries and libraries in the target filesystem will be
  274. stripped using the normal 'strip' command. This allows to
  275. save space, mainly by removing debugging symbols. Debugging
  276. symbols on the target are needed for native debugging, but
  277. not when remote debugging is used.
  278. config BR2_STRIP_sstrip
  279. bool "sstrip"
  280. select BR2_PACKAGE_SSTRIP_HOST
  281. depends on !BR2_PACKAGE_HOST_ELF2FLT
  282. help
  283. Binaries and libraries in the target filesystem will be
  284. stripped using the 'sstrip' command, which strips a little
  285. bit more than the traditional 'strip' command. This allows to
  286. save space, mainly by removing debugging symbols. Debugging
  287. symbols on the target are needed for native debugging, but
  288. not when remote debugging is used.
  289. config BR2_STRIP_none
  290. bool "none"
  291. help
  292. Do not strip binaries and libraries in the target
  293. filesystem.
  294. endchoice
  295. config BR2_STRIP_EXCLUDE_FILES
  296. string "executables that should not be stripped"
  297. depends on !BR2_STRIP_none
  298. default ""
  299. help
  300. You may specify a space-separated list of binaries and libraries
  301. here that should not be stripped on the target.
  302. config BR2_STRIP_EXCLUDE_DIRS
  303. string "directories that should be skipped when stripping"
  304. depends on !BR2_STRIP_none
  305. default ""
  306. help
  307. You may specify a space-separated list of directories that should
  308. be skipped when stripping. Binaries and libraries in these
  309. directories will not be touched.
  310. The directories should be specified relative to the target directory,
  311. without leading slash.
  312. choice
  313. prompt "gcc optimization level"
  314. default BR2_OPTIMIZE_S
  315. help
  316. Set the optimization level for gcc
  317. config BR2_OPTIMIZE_0
  318. bool "optimization level 0"
  319. help
  320. Do not optimize. This is the default.
  321. config BR2_OPTIMIZE_1
  322. bool "optimization level 1"
  323. help
  324. Optimize. Optimizing compilation takes somewhat more time,
  325. and a lot more memory for a large function. With -O, the
  326. compiler tries to reduce code size and execution time,
  327. without performing any optimizations that take a great deal
  328. of compilation time. -O turns on the following optimization
  329. flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
  330. -fcprop-registers -floop-optimize -fif-conversion
  331. -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
  332. -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
  333. -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants
  334. -O also turns on -fomit-frame-pointer on machines where doing
  335. so does not interfere with debugging.
  336. config BR2_OPTIMIZE_2
  337. bool "optimization level 2"
  338. help
  339. Optimize even more. GCC performs nearly all supported optimizations
  340. that do not involve a space-speed tradeoff. The compiler does not
  341. perform loop unrolling or function inlining when you specify -O2.
  342. As compared to -O, this option increases both compilation time and
  343. the performance of the generated code. -O2 turns on all optimization
  344. flags specified by -O. It also turns on the following optimization
  345. flags: -fthread-jumps -fcrossjumping -foptimize-sibling-calls
  346. -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm
  347. -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop
  348. -frerun-loop-opt -fcaller-saves -fpeephole2 -fschedule-insns
  349. -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove
  350. -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks
  351. -freorder-functions -falign-functions -falign-jumps -falign-loops
  352. -falign-labels -ftree-vrp -ftree-pre
  353. Please note the warning under -fgcse about invoking -O2 on programs
  354. that use computed gotos.
  355. config BR2_OPTIMIZE_3
  356. bool "optimization level 3"
  357. help
  358. Optimize yet more. -O3 turns on all optimizations specified by -O2
  359. and also turns on the -finline-functions, -funswitch-loops and
  360. -fgcse-after-reload options.
  361. config BR2_OPTIMIZE_S
  362. bool "optimize for size"
  363. help
  364. Optimize for size. -Os enables all -O2 optimizations that do not
  365. typically increase code size. It also performs further optimizations
  366. designed to reduce code size. -Os disables the following optimization
  367. flags: -falign-functions -falign-jumps -falign-loops -falign-labels
  368. -freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays
  369. -ftree-vect-loop-version
  370. endchoice
  371. config BR2_ENABLE_SSP
  372. bool "build code with Stack Smashing Protection"
  373. depends on BR2_TOOLCHAIN_HAS_SSP
  374. help
  375. Enable stack smashing protection support using GCCs
  376. -fstack-protector-all option.
  377. See http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt
  378. for details.
  379. Note that this requires the toolchain to have SSP
  380. support. This is always the case for glibc and eglibc
  381. toolchain, but is optional in uClibc toolchains.
  382. comment "enabling Stack Smashing Protection requires support in the toolchain"
  383. depends on !BR2_TOOLCHAIN_HAS_SSP
  384. config BR2_PREFER_STATIC_LIB
  385. bool "prefer static libraries"
  386. help
  387. Where possible, build and use static libraries for the target.
  388. This potentially increases your code size and should only be
  389. used if you know what you do.
  390. The default is to build dynamic libraries and use those on
  391. the target filesystem.
  392. WARNING: This is highly experimental at the moment.
  393. config BR2_HAVE_DOCUMENTATION
  394. bool "documentation on the target"
  395. # We no longer want to support a toolchain on the target
  396. depends on BR2_DEPRECATED_SINCE_2012_11
  397. help
  398. Install the documentation, including manual pages and info
  399. pages, on the target.
  400. If you say n here, your target will not contain any
  401. documentation.
  402. config BR2_PACKAGE_OVERRIDE_FILE
  403. string "location of a package override file"
  404. default "$(TOPDIR)/local.mk"
  405. help
  406. A package override file is a short makefile that contains
  407. variable definitions of the form <pkg>_OVERRIDE_SRCDIR,
  408. which allows to tell Buildroot to use an existing directory
  409. as the source directory for a particular package. See the
  410. Buildroot documentation for more details on this feature.
  411. config BR2_GLOBAL_PATCH_DIR
  412. string "global patch directories"
  413. help
  414. You may specify a space separated list of one or more directories
  415. containing global package patches. For a specific version
  416. <packageversion> of a specific package <packagename>, patches are
  417. applied as follows:
  418. First, the default Buildroot patch set for the package is applied
  419. from the package's directory in Buildroot.
  420. Then for every directory - <global-patch-dir> - that exists in
  421. BR2_GLOBAL_PATCH_DIR, if the directory
  422. <global-patch-dir>/<packagename>/<packageversion>/ exists, then all
  423. *.patch files in this directory will be applied.
  424. Otherwise, if the directory <global-patch-dir>/<packagename> exists,
  425. then all *.patch files in the directory will be applied.
  426. endmenu
  427. source "toolchain/Config.in"
  428. source "system/Config.in"
  429. source "linux/Config.in"
  430. source "package/Config.in"
  431. source "fs/Config.in"
  432. source "boot/Config.in"
  433. source "package/Config.in.host"
  434. source "Config.in.legacy"
  435. menu "User-provided options"
  436. depends on BR2_EXTERNAL != "support/dummy-external"
  437. source "$BR2_EXTERNAL/Config.in"
  438. endmenu