Config-build.in 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. # Copyright (C) 2006-2013 OpenWrt.org
  2. #
  3. # This is free software, licensed under the GNU General Public License v2.
  4. # See /LICENSE for more information.
  5. #
  6. menu "Global build settings"
  7. config ALL
  8. bool "Select all packages by default"
  9. default n
  10. comment "General build options"
  11. config DISPLAY_SUPPORT
  12. bool "Show packages that require graphics support (local or remote)"
  13. default n
  14. config BUILD_PATENTED
  15. default y
  16. bool "Compile with support for patented functionality"
  17. help
  18. When this option is disabled, software which provides patented functionality
  19. will not be built. In case software provides optional support for patented
  20. functionality, this optional support will get disabled for this package.
  21. config BUILD_NLS
  22. default n
  23. bool "Compile with full language support"
  24. help
  25. When this option is enabled, packages are built with the full versions of
  26. iconv and GNU gettext instead of the default libreCMC stubs. If uClibc is
  27. used, it is also built with locale support.
  28. config BUILD_STATIC_TOOLS
  29. default n
  30. bool "Attempt to link host utilities statically"
  31. help
  32. Linking host utilities like sed or firmware-utils statically increases the
  33. portability of the generated ImageBuilder and SDK tarballs; however, it may
  34. fail on some Linux distributions.
  35. config SHADOW_PASSWORDS
  36. bool
  37. prompt "Enable shadow password support"
  38. default y
  39. help
  40. Enable shadow password support.
  41. config CLEAN_IPKG
  42. bool
  43. prompt "Remove ipkg/opkg status data files in final images"
  44. default n
  45. help
  46. This removes all ipkg/opkg status data files from the target directory
  47. before building the root filesystem.
  48. config COLLECT_KERNEL_DEBUG
  49. bool
  50. prompt "Collect kernel debug information"
  51. select KERNEL_DEBUG_INFO
  52. default n
  53. help
  54. This collects debugging symbols from the kernel and all compiled modules.
  55. Useful for release builds, so that kernel issues can be debugged offline
  56. later.
  57. comment "Kernel build options"
  58. source "config/Config-kernel.in"
  59. comment "Package build options"
  60. config DEBUG
  61. bool
  62. prompt "Compile packages with debugging info"
  63. default n
  64. help
  65. Adds -g3 to the CFLAGS.
  66. config IPV6
  67. bool
  68. prompt "Enable IPv6 support in packages"
  69. default y
  70. help
  71. Enable IPv6 support in packages (passes --enable-ipv6 to configure scripts).
  72. config PKG_BUILD_PARALLEL
  73. bool
  74. prompt "Compile certain packages parallelized"
  75. default y
  76. help
  77. This adds a -jX option to certain packages that are known to behave well
  78. for parallel build. By default, the package make processes use the main
  79. jobserver, in which case this option only takes effect when you add -jX
  80. to the make command.
  81. If you are unsure, select N.
  82. config PKG_CHECK_FORMAT_SECURITY
  83. bool
  84. prompt "Enable gcc format-security"
  85. default n
  86. help
  87. Add -Wformat -Werror=format-security to the CFLAGS. You can disable
  88. this per package by adding PKG_CHECK_FORMAT_SECURITY:=0 in the package
  89. Makefile.
  90. config PKG_BUILD_USE_JOBSERVER
  91. bool
  92. prompt "Use top-level make jobserver for packages"
  93. depends on PKG_BUILD_PARALLEL
  94. default y
  95. help
  96. This passes the main make process jobserver fds to package builds,
  97. enabling full parallelization across different packages.
  98. Note that disabling this may overcommit CPU resources depending on the
  99. -j level of the main make process, the number of package submake jobs
  100. selected below and the number of actual CPUs present.
  101. Example: If the main make is passed a -j4 and the submake -j
  102. is also set to 4, we may end up with 16 parallel make processes
  103. in the worst case.
  104. config PKG_BUILD_JOBS
  105. int
  106. prompt "Number of package submake jobs (2-512)"
  107. range 2 512
  108. default 2
  109. depends on PKG_BUILD_PARALLEL && !PKG_BUILD_USE_JOBSERVER
  110. help
  111. The number of jobs (-jX) to pass to packages submake.
  112. config PKG_DEFAULT_PARALLEL
  113. bool
  114. prompt "Parallelize the default package build rule (May break build)"
  115. depends on PKG_BUILD_PARALLEL
  116. depends on BROKEN
  117. default n
  118. help
  119. Always set the default package build rules to parallel build.
  120. WARNING: This may break build or kill your cat, as it builds packages
  121. with multiple jobs that are probably not tested in a parallel build
  122. environment.
  123. Only say Y if you don't mind fixing broken packages. Before reporting
  124. build bugs, set this to N and re-run the build.
  125. comment "Stripping options"
  126. choice
  127. prompt "Binary stripping method"
  128. default USE_STRIP if EXTERNAL_TOOLCHAIN
  129. default USE_STRIP if USE_GLIBC || USE_EGLIBC || USE_MUSL
  130. default USE_SSTRIP
  131. help
  132. Select the binary stripping method you wish to use.
  133. config NO_STRIP
  134. bool "none"
  135. help
  136. This will install unstripped binaries (useful for native
  137. compiling/debugging).
  138. config USE_STRIP
  139. bool "strip"
  140. help
  141. This will install binaries stripped using strip from binutils.
  142. config USE_SSTRIP
  143. bool "sstrip"
  144. depends on !DEBUG
  145. depends on !USE_GLIBC
  146. depends on !USE_EGLIBC
  147. help
  148. This will install binaries stripped using sstrip.
  149. endchoice
  150. config STRIP_ARGS
  151. string
  152. prompt "Strip arguments"
  153. depends on USE_STRIP
  154. default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
  155. default "--strip-all"
  156. help
  157. Specifies arguments passed to the strip command when stripping binaries.
  158. config STRIP_KERNEL_EXPORTS
  159. bool "Strip unnecessary exports from the kernel image"
  160. help
  161. Reduces kernel size by stripping unused kernel exports from the kernel
  162. image. Note that this might make the kernel incompatible with any kernel
  163. modules that were not selected at the time the kernel image was created.
  164. config USE_MKLIBS
  165. bool "Strip unnecessary functions from libraries"
  166. help
  167. Reduces libraries to only those functions that are necessary for using all
  168. selected packages (including those selected as <M>). Note that this will
  169. make the system libraries incompatible with most of the packages that are
  170. not selected during the build process.
  171. choice
  172. prompt "Preferred standard C++ library"
  173. default USE_LIBSTDCXX if USE_EGLIBC
  174. default USE_UCLIBCXX
  175. help
  176. Select the preferred standard C++ library for all packages that support this.
  177. config USE_UCLIBCXX
  178. bool "uClibc++"
  179. config USE_LIBSTDCXX
  180. bool "libstdc++"
  181. endchoice
  182. endmenu