Config.in 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746
  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_BUILD_DIR
  13. string
  14. option env="BUILD_DIR"
  15. # Hidden config symbols for packages to check system gcc version
  16. config BR2_HOST_GCC_VERSION
  17. string
  18. option env="HOST_GCC_VERSION"
  19. config BR2_HOST_GCC_AT_LEAST_4_5
  20. bool
  21. default y if BR2_HOST_GCC_VERSION = "4 5"
  22. config BR2_HOST_GCC_AT_LEAST_4_6
  23. bool
  24. default y if BR2_HOST_GCC_VERSION = "4 6"
  25. select BR2_HOST_GCC_AT_LEAST_4_5
  26. config BR2_HOST_GCC_AT_LEAST_4_7
  27. bool
  28. default y if BR2_HOST_GCC_VERSION = "4 7"
  29. select BR2_HOST_GCC_AT_LEAST_4_6
  30. config BR2_HOST_GCC_AT_LEAST_4_8
  31. bool
  32. default y if BR2_HOST_GCC_VERSION = "4 8"
  33. select BR2_HOST_GCC_AT_LEAST_4_7
  34. config BR2_HOST_GCC_AT_LEAST_4_9
  35. bool
  36. default y if BR2_HOST_GCC_VERSION = "4 9"
  37. select BR2_HOST_GCC_AT_LEAST_4_8
  38. config BR2_HOST_GCC_AT_LEAST_5
  39. bool
  40. default y if BR2_HOST_GCC_VERSION = "5"
  41. select BR2_HOST_GCC_AT_LEAST_4_9
  42. config BR2_HOST_GCC_AT_LEAST_6
  43. bool
  44. default y if BR2_HOST_GCC_VERSION = "6"
  45. select BR2_HOST_GCC_AT_LEAST_5
  46. # Hidden boolean selected by packages in need of Java in order to build
  47. # (example: xbmc)
  48. config BR2_NEEDS_HOST_JAVA
  49. bool
  50. # Hidden boolean selected by packages in need of javac in order to build
  51. # (example: classpath)
  52. config BR2_NEEDS_HOST_JAVAC
  53. bool
  54. # Hidden boolean selected by packages in need of jar in order to build
  55. # (example: classpath)
  56. config BR2_NEEDS_HOST_JAR
  57. bool
  58. # Hidden boolean selected by pre-built packages for x86, when they
  59. # need to run on x86-64 machines (example: pre-built external
  60. # toolchains, binary tools like SAM-BA, etc.).
  61. config BR2_HOSTARCH_NEEDS_IA32_LIBS
  62. bool
  63. # Hidden boolean selected by packages that need to build 32 bits
  64. # binaries with the host compiler, even on 64 bits build machines (e.g
  65. # bootloaders).
  66. config BR2_HOSTARCH_NEEDS_IA32_COMPILER
  67. bool
  68. # Hidden boolean selected by packages that need the host to have an
  69. # UTF8 locale.
  70. config BR2_NEEDS_HOST_UTF8_LOCALE
  71. bool
  72. source "arch/Config.in"
  73. menu "Build options"
  74. menu "Commands"
  75. config BR2_WGET
  76. string "Wget command"
  77. default "wget --passive-ftp -nd -t 3"
  78. config BR2_SVN
  79. string "Subversion (svn) command"
  80. default "svn"
  81. config BR2_BZR
  82. string "Bazaar (bzr) command"
  83. default "bzr"
  84. config BR2_GIT
  85. string "Git command"
  86. default "git"
  87. config BR2_CVS
  88. string "CVS command"
  89. default "cvs"
  90. config BR2_LOCALFILES
  91. string "Local files retrieval command"
  92. default "cp"
  93. config BR2_SCP
  94. string "Secure copy (scp) command"
  95. default "scp"
  96. config BR2_SSH
  97. string "Secure shell (ssh) command"
  98. default "ssh"
  99. config BR2_HG
  100. string "Mercurial (hg) command"
  101. default "hg"
  102. config BR2_ZCAT
  103. string "zcat command"
  104. default "gzip -d -c"
  105. help
  106. Command to be used to extract a gzip'ed file to stdout. zcat
  107. is identical to gunzip -c except that the former may not be
  108. available on your system.
  109. Default is "gzip -d -c"
  110. Other possible values include "gunzip -c" or "zcat".
  111. config BR2_BZCAT
  112. string "bzcat command"
  113. default "bzcat"
  114. help
  115. Command to be used to extract a bzip2'ed file to stdout.
  116. bzcat is identical to bunzip2 -c except that the former may
  117. not be available on your system.
  118. Default is "bzcat"
  119. Other possible values include "bunzip2 -c" or "bzip2 -d -c".
  120. config BR2_XZCAT
  121. string "xzcat command"
  122. default "xzcat"
  123. help
  124. Command to be used to extract a xz'ed file to stdout.
  125. Default is "xzcat"
  126. config BR2_TAR_OPTIONS
  127. string "Tar options"
  128. default ""
  129. help
  130. Options to pass to tar when extracting the sources.
  131. E.g. " -v --exclude='*.svn*'" to exclude all .svn internal files
  132. and to be verbose.
  133. endmenu
  134. config BR2_DEFCONFIG_FROM_ENV
  135. string
  136. option env="BR2_DEFCONFIG"
  137. config BR2_DEFCONFIG
  138. string "Location to save buildroot config"
  139. default BR2_DEFCONFIG_FROM_ENV if BR2_DEFCONFIG_FROM_ENV != ""
  140. default "$(CONFIG_DIR)/defconfig"
  141. help
  142. When running 'make savedefconfig', the defconfig file will be
  143. saved in this location.
  144. config BR2_DL_DIR
  145. string "Download dir"
  146. default "$(TOPDIR)/dl"
  147. help
  148. Directory to store all the source files that we need to fetch.
  149. If the Linux shell environment has defined the BR2_DL_DIR
  150. environment variable, then this overrides this configuration
  151. item.
  152. The default is $(TOPDIR)/dl
  153. config BR2_HOST_DIR
  154. string "Host dir"
  155. default "$(BASE_DIR)/host"
  156. help
  157. Directory to store all the binary files that are built for the
  158. host. This includes the cross compilation toolchain when
  159. building the internal buildroot toolchain.
  160. The default is $(BASE_DIR)/host
  161. menu "Mirrors and Download locations"
  162. config BR2_PRIMARY_SITE
  163. string "Primary download site"
  164. default ""
  165. help
  166. Primary site to download from. If this option is set then
  167. buildroot will try to download package source first from this
  168. site and try the default if the file is not found.
  169. Valid URIs are:
  170. - URIs recognized by $(WGET)
  171. - local URIs of the form file://absolutepath
  172. - scp URIs of the form scp://[user@]host:path.
  173. config BR2_PRIMARY_SITE_ONLY
  174. bool "Only allow downloads from primary download site"
  175. depends on BR2_PRIMARY_SITE != ""
  176. help
  177. If this option is enabled, downloads will only be attempted
  178. from the primary download site. Other locations, like the
  179. package's official download location or the backup download
  180. site, will not be considered. Therefore, if the package is not
  181. present on the primary site, the download fails.
  182. This is useful for project developers who want to ensure that
  183. the project can be built even if the upstream tarball
  184. locations disappear.
  185. if !BR2_PRIMARY_SITE_ONLY
  186. config BR2_BACKUP_SITE
  187. string "Backup download site"
  188. default "http://sources.buildroot.net"
  189. help
  190. Backup site to download from. If this option is set then
  191. buildroot will fall back to download package sources from here
  192. if the normal location fails.
  193. config BR2_KERNEL_MIRROR
  194. string "Kernel.org mirror"
  195. default "https://cdn.kernel.org/pub"
  196. help
  197. kernel.org is mirrored on a number of servers around the
  198. world. The following allows you to select your preferred
  199. mirror. By default, a CDN is used, which automatically
  200. redirects to a mirror geographically close to you.
  201. Have a look on the kernel.org site for a list of mirrors, then
  202. enter the URL to the base directory. Examples:
  203. http://www.XX.kernel.org/pub (XX = country code)
  204. http://mirror.aarnet.edu.au/pub/ftp.kernel.org
  205. config BR2_GNU_MIRROR
  206. string "GNU Software mirror"
  207. default "http://ftpmirror.gnu.org"
  208. help
  209. GNU has multiple software mirrors scattered around the
  210. world. The following allows you to select your preferred
  211. mirror. By default, a generic address is used, which
  212. automatically selects an up-to-date and local mirror.
  213. Have a look on the gnu.org site for a list of mirrors, then
  214. enter the URL to the base directory. Examples:
  215. http://ftp.gnu.org/pub/gnu
  216. http://mirror.aarnet.edu.au/pub/gnu
  217. config BR2_LUAROCKS_MIRROR
  218. string "LuaRocks mirror"
  219. default "http://rocks.moonscript.org"
  220. help
  221. LuaRocks repository.
  222. See http://luarocks.org
  223. config BR2_CPAN_MIRROR
  224. string "CPAN mirror (Perl packages)"
  225. default "http://cpan.metacpan.org"
  226. help
  227. CPAN (Comprehensive Perl Archive Network) is a repository of
  228. Perl packages. It has multiple software mirrors scattered
  229. around the world. This option allows you to select a mirror.
  230. The list of mirrors is available at:
  231. http://search.cpan.org/mirror
  232. endif
  233. endmenu
  234. config BR2_JLEVEL
  235. int "Number of jobs to run simultaneously (0 for auto)"
  236. default "0"
  237. help
  238. Number of jobs to run simultaneously. If 0, determine
  239. automatically according to number of CPUs on the host system.
  240. config BR2_CCACHE
  241. bool "Enable compiler cache"
  242. help
  243. This option will enable the use of ccache, a compiler cache.
  244. It will cache the result of previous builds to speed up future
  245. builds. By default, the cache is stored in
  246. $HOME/.buildroot-ccache.
  247. Note that Buildroot does not try to invalidate the cache
  248. contents when the compiler changes in an incompatible way.
  249. Therefore, if you make a change to the compiler version and/or
  250. configuration, you are responsible for purging the ccache
  251. cache by removing the $HOME/.buildroot-ccache directory.
  252. if BR2_CCACHE
  253. config BR2_CCACHE_DIR
  254. string "Compiler cache location"
  255. default "$(HOME)/.buildroot-ccache"
  256. help
  257. Where ccache should store cached files.
  258. config BR2_CCACHE_INITIAL_SETUP
  259. string "Compiler cache initial setup"
  260. help
  261. Initial ccache settings to apply, such as --max-files or
  262. --max-size.
  263. For example, if your project is known to require more space
  264. than the default max cache size, then you might want to
  265. increase the cache size to a suitable amount using the -M
  266. (--max-size) option.
  267. The string you specify here is passed verbatim to ccache.
  268. Refer to ccache documentation for more details.
  269. These initial settings are applied after ccache has been
  270. compiled.
  271. config BR2_CCACHE_USE_BASEDIR
  272. bool "Use relative paths"
  273. default y
  274. help
  275. Allow ccache to convert absolute paths within the output
  276. directory into relative paths.
  277. During the build, many -I include directives are given with an
  278. absolute path. These absolute paths end up in the hashes that
  279. are computed by ccache. Therefore, when you build from a
  280. different directory, the hash will be different and the cached
  281. object will not be used.
  282. To improve cache performance, set this option to y. This
  283. allows ccache to rewrite absolute paths within the output
  284. directory into relative paths. Note that only paths within the
  285. output directory will be rewritten; therefore, if you change
  286. BR2_HOST_DIR to point outside the output directory and
  287. subsequently move it to a different location, this will lead
  288. to cache misses.
  289. This option has as a result that the debug information in the
  290. object files also has only relative paths. Therefore, make
  291. sure you cd to the build directory before starting gdb. See
  292. the section "COMPILING IN DIFFERENT DIRECTORIES" in the ccache
  293. manual for more information.
  294. endif
  295. config BR2_ENABLE_DEBUG
  296. bool "build packages with debugging symbols"
  297. help
  298. Build packages with debugging symbols enabled. All libraries
  299. and binaries in the 'staging' directory will have debugging
  300. symbols, which allows remote debugging even if libraries and
  301. binaries are stripped on the target. Whether libraries and
  302. binaries are stripped on the target is controlled by the
  303. BR2_STRIP_* options below.
  304. if BR2_ENABLE_DEBUG
  305. choice
  306. prompt "gcc debug level"
  307. default BR2_DEBUG_2
  308. help
  309. Set the debug level for gcc
  310. config BR2_DEBUG_1
  311. bool "debug level 1"
  312. help
  313. Debug level 1 produces minimal information, enough for making
  314. backtraces in parts of the program that you don't plan to
  315. debug. This includes descriptions of functions and external
  316. variables, but no information about local variables and no
  317. line numbers.
  318. config BR2_DEBUG_2
  319. bool "debug level 2"
  320. help
  321. The default gcc debug level is 2
  322. config BR2_DEBUG_3
  323. bool "debug level 3"
  324. help
  325. Level 3 includes extra information, such as all the macro
  326. definitions present in the program. Some debuggers support
  327. macro expansion when you use -g3.
  328. endchoice
  329. endif
  330. choice
  331. prompt "strip command for binaries on target"
  332. default BR2_STRIP_strip
  333. config BR2_STRIP_strip
  334. bool "strip"
  335. depends on !BR2_PACKAGE_HOST_ELF2FLT
  336. help
  337. Binaries and libraries in the target filesystem will be
  338. stripped using the normal 'strip' command. This allows to save
  339. space, mainly by removing debugging symbols. Debugging symbols
  340. on the target are needed for native debugging, but not when
  341. remote debugging is used.
  342. config BR2_STRIP_none
  343. bool "none"
  344. help
  345. Do not strip binaries and libraries in the target filesystem.
  346. endchoice
  347. config BR2_STRIP_EXCLUDE_FILES
  348. string "executables that should not be stripped"
  349. depends on !BR2_STRIP_none
  350. default ""
  351. help
  352. You may specify a space-separated list of binaries and
  353. libraries here that should not be stripped on the target.
  354. config BR2_STRIP_EXCLUDE_DIRS
  355. string "directories that should be skipped when stripping"
  356. depends on !BR2_STRIP_none
  357. default ""
  358. help
  359. You may specify a space-separated list of directories that
  360. should be skipped when stripping. Binaries and libraries in
  361. these directories will not be touched. The directories should
  362. be specified relative to the target directory, without leading
  363. slash.
  364. choice
  365. prompt "gcc optimization level"
  366. default BR2_OPTIMIZE_S
  367. help
  368. Set the optimization level for gcc
  369. config BR2_OPTIMIZE_0
  370. bool "optimization level 0"
  371. help
  372. Do not optimize. This is the default.
  373. config BR2_OPTIMIZE_1
  374. bool "optimization level 1"
  375. help
  376. Optimize. Optimizing compilation takes somewhat more time, and
  377. a lot more memory for a large function. With -O, the compiler
  378. tries to reduce code size and execution time, without
  379. performing any optimizations that take a great deal of
  380. compilation time. -O turns on the following optimization
  381. flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
  382. -fcprop-registers -floop-optimize -fif-conversion
  383. -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
  384. -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
  385. -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants. -O
  386. also turns on -fomit-frame-pointer on machines where doing so
  387. does not interfere with debugging.
  388. config BR2_OPTIMIZE_2
  389. bool "optimization level 2"
  390. help
  391. Optimize even more. GCC performs nearly all supported
  392. optimizations that do not involve a space-speed tradeoff. The
  393. compiler does not perform loop unrolling or function inlining
  394. when you specify -O2. As compared to -O, this option increases
  395. both compilation time and the performance of the generated
  396. code. -O2 turns on all optimization flags specified by -O. It
  397. also turns on the following optimization flags:
  398. -fthread-jumps -fcrossjumping -foptimize-sibling-calls
  399. -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm
  400. -fexpensive-optimizations -fstrength-reduce
  401. -frerun-cse-after-loop -frerun-loop-opt -fcaller-saves
  402. -fpeephole2 -fschedule-insns -fschedule-insns2
  403. -fsched-interblock -fsched-spec -fregmove -fstrict-aliasing
  404. -fdelete-null-pointer-checks -freorder-blocks
  405. -freorder-functions -falign-functions -falign-jumps
  406. -falign-loops -falign-labels -ftree-vrp -ftree-pre. Please
  407. note the warning under -fgcse about invoking -O2 on programs
  408. that use computed gotos.
  409. config BR2_OPTIMIZE_3
  410. bool "optimization level 3"
  411. help
  412. Optimize yet more. -O3 turns on all optimizations specified by
  413. -O2 and also turns on the -finline-functions, -funswitch-loops
  414. and -fgcse-after-reload options.
  415. config BR2_OPTIMIZE_G
  416. bool "optimize for debugging"
  417. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  418. help
  419. Optimize for debugging. This enables optimizations that do not
  420. interfere with debugging. It should be the optimization level
  421. of choice for the standard edit-compile-debug cycle, offering
  422. a reasonable level of optimization while maintaining fast
  423. compilation and a good debugging experience.
  424. config BR2_OPTIMIZE_S
  425. bool "optimize for size"
  426. help
  427. Optimize for size. -Os enables all -O2 optimizations that do
  428. not typically increase code size. It also performs further
  429. optimizations designed to reduce code size. -Os disables the
  430. following optimization flags: -falign-functions -falign-jumps
  431. -falign-loops -falign-labels -freorder-blocks
  432. -freorder-blocks-and-partition -fprefetch-loop-arrays
  433. -ftree-vect-loop-version
  434. endchoice
  435. config BR2_GOOGLE_BREAKPAD_ENABLE
  436. bool "Enable google-breakpad support"
  437. select BR2_PACKAGE_GOOGLE_BREAKPAD
  438. depends on BR2_INSTALL_LIBSTDCPP
  439. depends on BR2_HOST_GCC_AT_LEAST_4_8 # C++11
  440. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
  441. depends on BR2_USE_WCHAR
  442. depends on BR2_TOOLCHAIN_HAS_THREADS
  443. depends on (BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC)
  444. depends on BR2_PACKAGE_GOOGLE_BREAKPAD_ARCH_SUPPORTS
  445. help
  446. This option will enable the use of google breakpad, a library
  447. and tool suite that allows you to distribute an application to
  448. users with compiler-provided debugging information removed,
  449. record crashes in compact "minidump" files, send them back to
  450. your server and produce C and C++ stack traces from these
  451. minidumps. Breakpad can also write minidumps on request for
  452. programs that have not crashed.
  453. if BR2_GOOGLE_BREAKPAD_ENABLE
  454. config BR2_GOOGLE_BREAKPAD_INCLUDE_FILES
  455. string "List of executables and libraries to extract symbols from"
  456. default ""
  457. help
  458. You may specify a space-separated list of binaries and
  459. libraries with full paths relative to $(TARGET_DIR) of which
  460. debug symbols will be dumped for further use with google
  461. breakpad.
  462. A directory structure that can be used by minidump-stackwalk
  463. will be created at:
  464. $(STAGING_DIR)/usr/share/google-breakpad-symbols
  465. endif
  466. choice
  467. bool "build code with Stack Smashing Protection"
  468. default BR2_SSP_ALL if BR2_ENABLE_SSP # legacy
  469. depends on BR2_TOOLCHAIN_HAS_SSP
  470. help
  471. Enable stack smashing protection support using GCC's
  472. -fstack-protector option family.
  473. See
  474. http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt
  475. for details.
  476. Note that this requires the toolchain to have SSP support.
  477. This is always the case for glibc and eglibc toolchain, but is
  478. optional in uClibc toolchains.
  479. config BR2_SSP_NONE
  480. bool "None"
  481. help
  482. Disable stack-smashing protection.
  483. config BR2_SSP_REGULAR
  484. bool "-fstack-protector"
  485. help
  486. Emit extra code to check for buffer overflows, such as stack
  487. smashing attacks. This is done by adding a guard variable to
  488. functions with vulnerable objects. This includes functions
  489. that call alloca, and functions with buffers larger than 8
  490. bytes. The guards are initialized when a function is entered
  491. and then checked when the function exits. If a guard check
  492. fails, an error message is printed and the program exits.
  493. config BR2_SSP_STRONG
  494. bool "-fstack-protector-strong"
  495. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  496. help
  497. Like -fstack-protector but includes additional functions to be
  498. protected - those that have local array definitions, or have
  499. references to local frame addresses.
  500. comment "Stack Smashing Protection strong needs a toolchain w/ gcc >= 4.9"
  501. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  502. config BR2_SSP_ALL
  503. bool "-fstack-protector-all"
  504. help
  505. Like -fstack-protector except that all functions are
  506. protected. This option might have a significant performance
  507. impact on the compiled binaries.
  508. endchoice
  509. comment "Stack Smashing Protection needs a toolchain w/ SSP"
  510. depends on !BR2_TOOLCHAIN_HAS_SSP
  511. choice
  512. bool "libraries"
  513. default BR2_SHARED_LIBS if BR2_BINFMT_SUPPORTS_SHARED
  514. default BR2_STATIC_LIBS if !BR2_BINFMT_SUPPORTS_SHARED
  515. help
  516. Select the type of libraries you want to use on the target.
  517. The default is to build dynamic libraries and use those on the
  518. target filesystem, except when the architecture and/or the
  519. selected binary format does not support shared libraries.
  520. config BR2_STATIC_LIBS
  521. bool "static only"
  522. help
  523. Build and use only static libraries. No shared libraries will
  524. be installed on the target. This potentially increases your
  525. code size and should only be used if you know what you are
  526. doing. Note that some packages may not be available when this
  527. option is enabled, due to their need for dynamic library
  528. support.
  529. config BR2_SHARED_LIBS
  530. bool "shared only"
  531. depends on BR2_BINFMT_SUPPORTS_SHARED
  532. help
  533. Build and use only shared libraries. This is the recommended
  534. solution as it saves space and build time.
  535. config BR2_SHARED_STATIC_LIBS
  536. bool "both static and shared"
  537. depends on BR2_BINFMT_SUPPORTS_SHARED
  538. help
  539. Build both shared and static libraries, but link executables
  540. dynamically. While building both shared and static libraries
  541. take more time and more disk space, having static libraries
  542. may be useful to link some of the applications statically.
  543. endchoice
  544. config BR2_PACKAGE_OVERRIDE_FILE
  545. string "location of a package override file"
  546. default "$(CONFIG_DIR)/local.mk"
  547. help
  548. A package override file is a short makefile that contains
  549. variable definitions of the form <pkg>_OVERRIDE_SRCDIR, which
  550. allows to tell Buildroot to use an existing directory as the
  551. source directory for a particular package. See the Buildroot
  552. documentation for more details on this feature.
  553. config BR2_GLOBAL_PATCH_DIR
  554. string "global patch directories"
  555. help
  556. You may specify a space separated list of one or more
  557. directories containing global package patches. For a specific
  558. version <packageversion> of a specific package <packagename>,
  559. patches are applied as follows:
  560. First, the default Buildroot patch set for the package is
  561. applied from the package's directory in Buildroot.
  562. Then for every directory - <global-patch-dir> - that exists in
  563. BR2_GLOBAL_PATCH_DIR, if the directory
  564. <global-patch-dir>/<packagename>/<packageversion>/ exists,
  565. then all *.patch files in this directory will be applied.
  566. Otherwise, if the directory <global-patch-dir>/<packagename>
  567. exists, then all *.patch files in the directory will be
  568. applied.
  569. menu "Advanced"
  570. config BR2_COMPILER_PARANOID_UNSAFE_PATH
  571. bool "paranoid check of library/header paths"
  572. default y
  573. help
  574. By default, when this option is disabled, when the Buildroot
  575. cross-compiler will encounter an unsafe library or header path
  576. (such as /usr/include, or /usr/lib), the compiler will display
  577. a warning.
  578. By enabling this option, this warning is turned into an error,
  579. which will completely abort the build when such unsafe paths
  580. are encountered.
  581. Note that this mechanism is available for both the internal
  582. toolchain (through the toolchain wrapper and binutils patches)
  583. and external toolchain backends (through the toolchain wrapper).
  584. config BR2_REPRODUCIBLE
  585. bool "Make the build reproducible (experimental)"
  586. help
  587. This option will remove all sources of non-reproducibility
  588. from the build process. For a given Buildroot configuration,
  589. this allows to generate exactly identical binaries from one
  590. build to the other, including on different machines.
  591. The current implementation is restricted to builds with the
  592. same output directory. Many (absolute) paths are recorded in
  593. intermediary files, and it is very likely that some of these
  594. paths leak into the target rootfs. If you build with the
  595. same O=... path, however, the result is identical.
  596. This is labeled as an experimental feature, as not all
  597. packages behave properly to ensure reproducibility.
  598. endmenu
  599. endmenu
  600. source "toolchain/Config.in"
  601. source "system/Config.in"
  602. source "linux/Config.in"
  603. source "package/Config.in"
  604. source "fs/Config.in"
  605. source "boot/Config.in"
  606. source "package/Config.in.host"
  607. source "Config.in.legacy"
  608. source "$BR2_BUILD_DIR/.br2-external.in"