Config-build.in 5.9 KB

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