Config.in 16 KB

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