Config.in 16 KB

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