Config.in 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649
  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. config BR2_PRIMARY_SITE_ONLY
  136. bool "Only allow downloads from primary download site"
  137. depends on BR2_PRIMARY_SITE != ""
  138. help
  139. If this option is enabled, downloads will only be attempted
  140. from the primary download site. Other locations, like the
  141. package's official download location or the backup download
  142. site, will not be considered. Therefore, if the package is
  143. not present on the primary site, the download fails.
  144. This is useful for project developers who want to ensure
  145. that the project can be built even if the upstream tarball
  146. locations disappear.
  147. if !BR2_PRIMARY_SITE_ONLY
  148. config BR2_BACKUP_SITE
  149. string "Backup download site"
  150. default "http://sources.buildroot.net"
  151. help
  152. Backup site to download from. If this option is set then buildroot
  153. will fall back to download package sources from here if the
  154. normal location fails.
  155. config BR2_KERNEL_MIRROR
  156. string "Kernel.org mirror"
  157. default "https://www.kernel.org/pub"
  158. help
  159. kernel.org is mirrored on a number of servers around the world.
  160. The following allows you to select your preferred mirror.
  161. Have a look on the kernel.org site for a list of mirrors, then enter
  162. the URL to the base directory. Examples:
  163. http://www.XX.kernel.org/pub (XX = country code)
  164. http://mirror.aarnet.edu.au/pub/ftp.kernel.org
  165. config BR2_GNU_MIRROR
  166. string "GNU Software mirror"
  167. default "http://ftp.gnu.org/pub/gnu"
  168. help
  169. GNU has multiple software mirrors scattered around the world.
  170. The following allows you to select your preferred mirror.
  171. Have a look on the gnu.org site for a list of mirrors, then enter
  172. the URL to the base directory. Examples:
  173. http://ftp.gnu.org/pub/gnu
  174. http://mirror.aarnet.edu.au/pub/gnu
  175. config BR2_LUAROCKS_MIRROR
  176. string "LuaRocks mirror"
  177. default "http://rocks.moonscript.org"
  178. help
  179. LuaRocks repository.
  180. See http://luarocks.org
  181. config BR2_CPAN_MIRROR
  182. string "CPAN mirror (Perl packages)"
  183. default "http://cpan.metacpan.org"
  184. help
  185. CPAN (Comprehensive Perl Archive Network) is a repository
  186. of Perl packages. It has multiple software mirrors scattered
  187. around the world. This option allows you to select a mirror.
  188. The list of mirrors is available at:
  189. http://search.cpan.org/mirror
  190. endif
  191. endmenu
  192. config BR2_JLEVEL
  193. int "Number of jobs to run simultaneously (0 for auto)"
  194. default "0"
  195. help
  196. Number of jobs to run simultaneously. If 0, determine
  197. automatically according to number of CPUs on the host
  198. system.
  199. config BR2_CCACHE
  200. bool "Enable compiler cache"
  201. help
  202. This option will enable the use of ccache, a compiler
  203. cache. It will cache the result of previous builds to speed
  204. up future builds. By default, the cache is stored in
  205. $HOME/.buildroot-ccache.
  206. Note that Buildroot does not try to invalidate the cache
  207. contents when the compiler changes in an incompatible
  208. way. Therefore, if you make a change to the compiler version
  209. and/or configuration, you are responsible for purging the
  210. ccache cache by removing the $HOME/.buildroot-ccache
  211. directory.
  212. if BR2_CCACHE
  213. config BR2_CCACHE_DIR
  214. string "Compiler cache location"
  215. default "$(HOME)/.buildroot-ccache"
  216. help
  217. Where ccache should store cached files.
  218. config BR2_CCACHE_INITIAL_SETUP
  219. string "Compiler cache initial setup"
  220. help
  221. Initial ccache settings to apply, such as --max-files or --max-size.
  222. For example, if your project is known to require more space than the
  223. default max cache size, then you might want to increase the cache size
  224. to a suitable amount using the -M (--max-size) option.
  225. The string you specify here is passed verbatim to ccache. Refer to
  226. ccache documentation for more details.
  227. These initial settings are applied after ccache has been compiled.
  228. config BR2_CCACHE_USE_BASEDIR
  229. bool "Use relative paths"
  230. default y
  231. help
  232. Allow ccache to convert absolute paths within the output
  233. directory into relative paths.
  234. During the build, many -I include directives are given with
  235. an absolute path. These absolute paths end up in the hashes
  236. that are computed by ccache. Therefore, when you build from a
  237. different directory, the hash will be different and the
  238. cached object will not be used.
  239. To improve cache performance, set this option to y. This
  240. allows ccache to rewrite absolute paths within the output
  241. directory into relative paths. Note that only paths within
  242. the output directory will be rewritten; therefore, if you
  243. change BR2_HOST_DIR to point outside the output directory and
  244. subsequently move it to a different location, this will lead
  245. to cache misses.
  246. This option has as a result that the debug information in the
  247. object files also has only relative paths. Therefore, make
  248. sure you cd to the build directory before starting gdb. See
  249. the section "COMPILING IN DIFFERENT DIRECTORIES" in the
  250. ccache manual for more information.
  251. endif
  252. config BR2_DEPRECATED
  253. bool "Show options and packages that are deprecated or obsolete"
  254. help
  255. This option shows outdated/obsolete versions of packages and
  256. options that are otherwise hidden.
  257. if BR2_DEPRECATED
  258. config BR2_DEPRECATED_SINCE_2015_02
  259. bool
  260. default y
  261. config BR2_DEPRECATED_SINCE_2015_05
  262. bool
  263. default y
  264. config BR2_DEPRECATED_SINCE_2015_08
  265. bool
  266. default y
  267. endif
  268. config BR2_ENABLE_DEBUG
  269. bool "build packages with debugging symbols"
  270. help
  271. Build packages with debugging symbols enabled. All libraries
  272. and binaries in the 'staging' directory will have debugging
  273. symbols, which allows remote debugging even if libraries and
  274. binaries are stripped on the target. Whether libraries and
  275. binaries are stripped on the target is controlled by the
  276. BR2_STRIP_* options below.
  277. if BR2_ENABLE_DEBUG
  278. choice
  279. prompt "gcc debug level"
  280. default BR2_DEBUG_2
  281. help
  282. Set the debug level for gcc
  283. config BR2_DEBUG_1
  284. bool "debug level 1"
  285. help
  286. Debug level 1 produces minimal information, enough
  287. for making backtraces in parts of the program that
  288. you don't plan to debug. This includes descriptions
  289. of functions and external variables, but no information
  290. about local variables and no line numbers.
  291. config BR2_DEBUG_2
  292. bool "debug level 2"
  293. help
  294. The default gcc debug level is 2
  295. config BR2_DEBUG_3
  296. bool "debug level 3"
  297. help
  298. Level 3 includes extra information, such as all the
  299. macro definitions present in the program. Some debuggers
  300. support macro expansion when you use -g3.
  301. endchoice
  302. endif
  303. choice
  304. prompt "strip command for binaries on target"
  305. default BR2_STRIP_strip
  306. config BR2_STRIP_strip
  307. bool "strip"
  308. depends on !BR2_PACKAGE_HOST_ELF2FLT
  309. help
  310. Binaries and libraries in the target filesystem will be
  311. stripped using the normal 'strip' command. This allows to
  312. save space, mainly by removing debugging symbols. Debugging
  313. symbols on the target are needed for native debugging, but
  314. not when remote debugging is used.
  315. config BR2_STRIP_none
  316. bool "none"
  317. help
  318. Do not strip binaries and libraries in the target
  319. filesystem.
  320. endchoice
  321. config BR2_STRIP_EXCLUDE_FILES
  322. string "executables that should not be stripped"
  323. depends on !BR2_STRIP_none
  324. default ""
  325. help
  326. You may specify a space-separated list of binaries and libraries
  327. here that should not be stripped on the target.
  328. config BR2_STRIP_EXCLUDE_DIRS
  329. string "directories that should be skipped when stripping"
  330. depends on !BR2_STRIP_none
  331. default ""
  332. help
  333. You may specify a space-separated list of directories that should
  334. be skipped when stripping. Binaries and libraries in these
  335. directories will not be touched.
  336. The directories should be specified relative to the target directory,
  337. without leading slash.
  338. choice
  339. prompt "gcc optimization level"
  340. default BR2_OPTIMIZE_S
  341. help
  342. Set the optimization level for gcc
  343. config BR2_OPTIMIZE_0
  344. bool "optimization level 0"
  345. help
  346. Do not optimize. This is the default.
  347. config BR2_OPTIMIZE_1
  348. bool "optimization level 1"
  349. help
  350. Optimize. Optimizing compilation takes somewhat more time,
  351. and a lot more memory for a large function. With -O, the
  352. compiler tries to reduce code size and execution time,
  353. without performing any optimizations that take a great deal
  354. of compilation time. -O turns on the following optimization
  355. flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
  356. -fcprop-registers -floop-optimize -fif-conversion
  357. -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
  358. -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
  359. -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants
  360. -O also turns on -fomit-frame-pointer on machines where doing
  361. so does not interfere with debugging.
  362. config BR2_OPTIMIZE_2
  363. bool "optimization level 2"
  364. help
  365. Optimize even more. GCC performs nearly all supported optimizations
  366. that do not involve a space-speed tradeoff. The compiler does not
  367. perform loop unrolling or function inlining when you specify -O2.
  368. As compared to -O, this option increases both compilation time and
  369. the performance of the generated code. -O2 turns on all optimization
  370. flags specified by -O. It also turns on the following optimization
  371. flags: -fthread-jumps -fcrossjumping -foptimize-sibling-calls
  372. -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm
  373. -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop
  374. -frerun-loop-opt -fcaller-saves -fpeephole2 -fschedule-insns
  375. -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove
  376. -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks
  377. -freorder-functions -falign-functions -falign-jumps -falign-loops
  378. -falign-labels -ftree-vrp -ftree-pre
  379. Please note the warning under -fgcse about invoking -O2 on programs
  380. that use computed gotos.
  381. config BR2_OPTIMIZE_3
  382. bool "optimization level 3"
  383. help
  384. Optimize yet more. -O3 turns on all optimizations specified by -O2
  385. and also turns on the -finline-functions, -funswitch-loops and
  386. -fgcse-after-reload options.
  387. config BR2_OPTIMIZE_S
  388. bool "optimize for size"
  389. help
  390. Optimize for size. -Os enables all -O2 optimizations that do not
  391. typically increase code size. It also performs further optimizations
  392. designed to reduce code size. -Os disables the following optimization
  393. flags: -falign-functions -falign-jumps -falign-loops -falign-labels
  394. -freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays
  395. -ftree-vect-loop-version
  396. endchoice
  397. config BR2_GOOGLE_BREAKPAD_ENABLE
  398. bool "Enable google-breakpad support"
  399. select BR2_PACKAGE_GOOGLE_BREAKPAD
  400. depends on BR2_INSTALL_LIBSTDCPP
  401. depends on BR2_TOOLCHAIN_USES_GLIBC
  402. depends on BR2_PACKAGE_GOOGLE_BREAKPAD_ARCH_SUPPORTS
  403. help
  404. This option will enable the use of google breakpad, a
  405. library and tool suite that allows you to distribute an
  406. application to users with compiler-provided debugging
  407. information removed, record crashes in compact "minidump"
  408. files, send them back to your server and produce C and C++
  409. stack traces from these minidumps. Breakpad can also write
  410. minidumps on request for programs that have not crashed.
  411. if BR2_GOOGLE_BREAKPAD_ENABLE
  412. config BR2_GOOGLE_BREAKPAD_INCLUDE_FILES
  413. string "List of executables and libraries to extract symbols from"
  414. default ""
  415. help
  416. You may specify a space-separated list of binaries and
  417. libraries with full paths relative to $(TARGET_DIR) of which
  418. debug symbols will be dumped for further use with google
  419. breakpad.
  420. A directory structure that can be used by minidump-stackwalk
  421. will be created at:
  422. $(STAGING_DIR)/usr/share/google-breakpad-symbols
  423. endif
  424. config BR2_ENABLE_SSP
  425. bool "build code with Stack Smashing Protection"
  426. depends on BR2_TOOLCHAIN_HAS_SSP
  427. help
  428. Enable stack smashing protection support using GCCs
  429. -fstack-protector-all option.
  430. See http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt
  431. for details.
  432. Note that this requires the toolchain to have SSP
  433. support. This is always the case for glibc and eglibc
  434. toolchain, but is optional in uClibc toolchains.
  435. comment "enabling Stack Smashing Protection requires support in the toolchain"
  436. depends on !BR2_TOOLCHAIN_HAS_SSP
  437. choice
  438. bool "libraries"
  439. default BR2_SHARED_LIBS if BR2_BINFMT_SUPPORTS_SHARED
  440. default BR2_STATIC_LIBS if !BR2_BINFMT_SUPPORTS_SHARED
  441. help
  442. Select the type of libraries you want to use on the target.
  443. The default is to build dynamic libraries and use those on
  444. the target filesystem, except when the architecture and/or
  445. the selected binary format does not support shared
  446. libraries.
  447. config BR2_STATIC_LIBS
  448. bool "static only"
  449. help
  450. Build and use only static libraries. No shared libraries
  451. will be instaled on the target. This potentially increases
  452. your code size and should only be used if you know what you
  453. are doing. Note that some packages may not be available when
  454. this option is enabled, due to their need for dynamic
  455. library support.
  456. config BR2_SHARED_LIBS
  457. bool "shared only"
  458. depends on BR2_BINFMT_SUPPORTS_SHARED
  459. help
  460. Build and use only shared libraries. This is the recommended
  461. solution as it saves space and build time.
  462. config BR2_SHARED_STATIC_LIBS
  463. bool "both static and shared"
  464. depends on BR2_BINFMT_SUPPORTS_SHARED
  465. help
  466. Build both shared and static libraries, but link executables
  467. dynamically. While building both shared and static libraries
  468. take more time and more disk space, having static libraries
  469. may be useful to link some of the applications statically.
  470. endchoice
  471. config BR2_PACKAGE_OVERRIDE_FILE
  472. string "location of a package override file"
  473. default "$(CONFIG_DIR)/local.mk"
  474. help
  475. A package override file is a short makefile that contains
  476. variable definitions of the form <pkg>_OVERRIDE_SRCDIR,
  477. which allows to tell Buildroot to use an existing directory
  478. as the source directory for a particular package. See the
  479. Buildroot documentation for more details on this feature.
  480. config BR2_GLOBAL_PATCH_DIR
  481. string "global patch directories"
  482. help
  483. You may specify a space separated list of one or more directories
  484. containing global package patches. For a specific version
  485. <packageversion> of a specific package <packagename>, patches are
  486. applied as follows:
  487. First, the default Buildroot patch set for the package is applied
  488. from the package's directory in Buildroot.
  489. Then for every directory - <global-patch-dir> - that exists in
  490. BR2_GLOBAL_PATCH_DIR, if the directory
  491. <global-patch-dir>/<packagename>/<packageversion>/ exists, then all
  492. *.patch files in this directory will be applied.
  493. Otherwise, if the directory <global-patch-dir>/<packagename> exists,
  494. then all *.patch files in the directory will be applied.
  495. menu "Advanced"
  496. config BR2_COMPILER_PARANOID_UNSAFE_PATH
  497. bool "paranoid check of library/header paths"
  498. help
  499. By default, when this option is disabled, when the Buildroot
  500. cross-compiler will encounter an unsafe library or header
  501. path (such as /usr/include, or /usr/lib), the compiler will
  502. display a warning.
  503. By enabling this option, this warning is turned into an
  504. error, which will completely abort the build when such
  505. unsafe paths are encountered.
  506. Note that this mechanism is available for both the internal
  507. toolchain (through gcc and binutils patches) and external
  508. toolchain backends (through the external toolchain wrapper).
  509. endmenu
  510. endmenu
  511. source "toolchain/Config.in"
  512. source "system/Config.in"
  513. source "linux/Config.in"
  514. source "package/Config.in"
  515. source "fs/Config.in"
  516. source "boot/Config.in"
  517. source "package/Config.in.host"
  518. source "Config.in.legacy"
  519. menu "User-provided options"
  520. depends on BR2_EXTERNAL != "support/dummy-external"
  521. source "$BR2_EXTERNAL/Config.in"
  522. endmenu