Config.in 22 KB

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