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