Config.in 15 KB

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