busybox: add as an alternative of /sbin/ip
[openwrt/staging/wigyori.git] / config / Config-build.in
1 # Copyright (C) 2006-2013 OpenWrt.org
2 # Copyright (C) 2016 LEDE Project
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 menu "Global build settings"
9
10 config ALL_NONSHARED
11 bool "Select all target specific packages by default"
12 default ALL || BUILDBOT
13
14 config ALL_KMODS
15 bool "Select all kernel module packages by default"
16 default ALL
17
18 config ALL
19 bool "Select all userspace packages by default"
20 default n
21
22 config BUILDBOT
23 bool "Set build defaults for automatic builds (e.g. via buildbot)"
24 default n
25 help
26 This option changes several defaults to be more suitable for
27 automatic builds. This includes the following changes:
28 - Deleting build directories after compiling (to save space)
29 - Enabling per-device rootfs support
30 ...
31
32 config SIGNED_PACKAGES
33 bool "Cryptographically signed package lists"
34 default y
35
36 comment "General build options"
37
38 config DISPLAY_SUPPORT
39 bool "Show packages that require graphics support (local or remote)"
40 default n
41
42 config BUILD_PATENTED
43 default y
44 bool "Compile with support for patented functionality"
45 help
46 When this option is disabled, software which provides patented functionality
47 will not be built. In case software provides optional support for patented
48 functionality, this optional support will get disabled for this package.
49
50 config BUILD_NLS
51 default n
52 bool "Compile with full language support"
53 help
54 When this option is enabled, packages are built with the full versions of
55 iconv and GNU gettext instead of the default OpenWrt stubs. If uClibc is
56 used, it is also built with locale support.
57
58 config SHADOW_PASSWORDS
59 bool
60 default y
61
62 config CLEAN_IPKG
63 bool
64 prompt "Remove ipkg/opkg status data files in final images"
65 default n
66 help
67 This removes all ipkg/opkg status data files from the target directory
68 before building the root filesystem.
69
70 config INCLUDE_CONFIG
71 bool "Include build configuration in firmware" if DEVEL
72 default n
73 help
74 If enabled, config.seed will be stored in /etc/build.config of firmware.
75
76 config COLLECT_KERNEL_DEBUG
77 bool
78 prompt "Collect kernel debug information"
79 select KERNEL_DEBUG_INFO
80 default BUILDBOT
81 help
82 This collects debugging symbols from the kernel and all compiled modules.
83 Useful for release builds, so that kernel issues can be debugged offline
84 later.
85
86 comment "Kernel build options"
87
88 source "config/Config-kernel.in"
89
90 comment "Package build options"
91
92 config DEBUG
93 bool
94 prompt "Compile packages with debugging info"
95 default n
96 help
97 Adds -g3 to the CFLAGS.
98
99 config IPV6
100 bool
101 prompt "Enable IPv6 support in packages"
102 default y
103 help
104 Enables IPv6 support in kernel (builtin) and packages.
105
106 comment "Stripping options"
107
108 choice
109 prompt "Binary stripping method"
110 default USE_STRIP if EXTERNAL_TOOLCHAIN
111 default USE_STRIP if USE_GLIBC
112 default USE_SSTRIP
113 help
114 Select the binary stripping method you wish to use.
115
116 config NO_STRIP
117 bool "none"
118 help
119 This will install unstripped binaries (useful for native
120 compiling/debugging).
121
122 config USE_STRIP
123 bool "strip"
124 help
125 This will install binaries stripped using strip from binutils.
126
127
128 config USE_SSTRIP
129 bool "sstrip"
130 depends on !USE_GLIBC
131 help
132 This will install binaries stripped using sstrip.
133 endchoice
134
135 config STRIP_ARGS
136 string
137 prompt "Strip arguments"
138 depends on USE_STRIP
139 default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
140 default "--strip-all"
141 help
142 Specifies arguments passed to the strip command when stripping binaries.
143
144 config STRIP_KERNEL_EXPORTS
145 bool "Strip unnecessary exports from the kernel image"
146 help
147 Reduces kernel size by stripping unused kernel exports from the kernel
148 image. Note that this might make the kernel incompatible with any kernel
149 modules that were not selected at the time the kernel image was created.
150
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>). Note that this will
156 make the system libraries incompatible with most of the packages that are
157 not selected during the build process.
158
159 choice
160 prompt "Preferred standard C++ library"
161 default USE_LIBSTDCXX if USE_GLIBC
162 default USE_UCLIBCXX
163 help
164 Select the preferred standard C++ library for all packages that support this.
165
166 config USE_UCLIBCXX
167 bool "uClibc++"
168
169 config USE_LIBSTDCXX
170 bool "libstdc++"
171 endchoice
172
173 comment "Hardening build options"
174
175 config PKG_CHECK_FORMAT_SECURITY
176 bool
177 prompt "Enable gcc format-security"
178 default y
179 help
180 Add -Wformat -Werror=format-security to the CFLAGS. You can disable
181 this per package by adding PKG_CHECK_FORMAT_SECURITY:=0 in the package
182 Makefile.
183
184 choice
185 prompt "User space Stack-Smashing Protection"
186 depends on USE_MUSL
187 default PKG_CC_STACKPROTECTOR_REGULAR
188 help
189 Enable GCC Stack Smashing Protection (SSP) for userspace applications
190 config PKG_CC_STACKPROTECTOR_NONE
191 bool "None"
192 config PKG_CC_STACKPROTECTOR_REGULAR
193 bool "Regular"
194 select SSP_SUPPORT if !USE_MUSL
195 depends on KERNEL_CC_STACKPROTECTOR_REGULAR
196 config PKG_CC_STACKPROTECTOR_STRONG
197 bool "Strong"
198 select SSP_SUPPORT if !USE_MUSL
199 depends on !GCC_VERSION_4_8
200 depends on KERNEL_CC_STACKPROTECTOR_STRONG
201 endchoice
202
203 choice
204 prompt "Kernel space Stack-Smashing Protection"
205 default KERNEL_CC_STACKPROTECTOR_REGULAR
206 depends on USE_MUSL || !(x86_64 || i386)
207 help
208 Enable GCC Stack-Smashing Protection (SSP) for the kernel
209 config KERNEL_CC_STACKPROTECTOR_NONE
210 bool "None"
211 config KERNEL_CC_STACKPROTECTOR_REGULAR
212 bool "Regular"
213 config KERNEL_CC_STACKPROTECTOR_STRONG
214 depends on !GCC_VERSION_4_8
215 bool "Strong"
216 endchoice
217
218 choice
219 prompt "Enable buffer-overflows detection (FORTIFY_SOURCE)"
220 default PKG_FORTIFY_SOURCE_1
221 help
222 Enable the _FORTIFY_SOURCE macro which introduces additional
223 checks to detect buffer-overflows in the following standard library
224 functions: memcpy, mempcpy, memmove, memset, strcpy, stpcpy,
225 strncpy, strcat, strncat, sprintf, vsprintf, snprintf, vsnprintf,
226 gets. "Conservative" (_FORTIFY_SOURCE set to 1) only introduces
227 checks that shouldn't change the behavior of conforming programs,
228 while "aggressive" (_FORTIFY_SOURCES set to 2) some more checking is
229 added, but some conforming programs might fail.
230 config PKG_FORTIFY_SOURCE_NONE
231 bool "None"
232 config PKG_FORTIFY_SOURCE_1
233 bool "Conservative"
234 config PKG_FORTIFY_SOURCE_2
235 bool "Aggressive"
236 endchoice
237
238 choice
239 prompt "Enable RELRO protection"
240 default PKG_RELRO_FULL
241 help
242 Enable a link-time protection known as RELRO (Relocation Read Only)
243 which helps to protect from certain type of exploitation techniques
244 altering the content of some ELF sections. "Partial" RELRO makes the
245 .dynamic section not writeable after initialization, introducing
246 almost no performance penalty, while "full" RELRO also marks the GOT
247 as read-only at the cost of initializing all of it at startup.
248 config PKG_RELRO_NONE
249 bool "None"
250 config PKG_RELRO_PARTIAL
251 bool "Partial"
252 config PKG_RELRO_FULL
253 bool "Full"
254 endchoice
255
256 endmenu