Config.in 23 KB

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