2
1

Config.in 16 KB

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