x86: use PARTUUID instead explicitly specifying the device by default
[openwrt.git] / config / Config-build.in
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
7 menu "Global build settings"
8
9         config ALL_KMODS
10                 bool "Select all kernel module packages by default"
11                 default ALL
12
13         config ALL
14                 bool "Select all userspace packages by default"
15                 default n
16
17         comment "General build options"
18
19         config DISPLAY_SUPPORT
20                 bool "Show packages that require graphics support (local or remote)"
21                 default n
22
23         config BUILD_PATENTED
24                 default y
25                 bool "Compile with support for patented functionality"
26                 help
27                   When this option is disabled, software which provides patented functionality
28                   will not be built.  In case software provides optional support for patented
29                   functionality, this optional support will get disabled for this package.
30
31         config BUILD_NLS
32                 default n
33                 bool "Compile with full language support"
34                 help
35                   When this option is enabled, packages are built with the full versions of
36                   iconv and GNU gettext instead of the default OpenWrt stubs. If uClibc is
37                   used, it is also built with locale support.
38
39         config SHADOW_PASSWORDS
40                 bool
41                 prompt "Enable shadow password support"
42                 default y
43                 help
44                   Enable shadow password support.
45
46         config CLEAN_IPKG
47                 bool
48                 prompt "Remove ipkg/opkg status data files in final images"
49                 default n
50                 help
51                   This removes all ipkg/opkg status data files from the target directory
52                   before building the root filesystem.
53
54         config COLLECT_KERNEL_DEBUG
55                 bool
56                 prompt "Collect kernel debug information"
57                 select KERNEL_DEBUG_INFO
58                 default n
59                 help
60                   This collects debugging symbols from the kernel and all compiled modules.
61                   Useful for release builds, so that kernel issues can be debugged offline
62                   later.
63
64         comment "Kernel build options"
65
66         source "config/Config-kernel.in"
67
68         comment "Package build options"
69
70         config DEBUG
71                 bool
72                 prompt "Compile packages with debugging info"
73                 default n
74                 help
75                   Adds -g3 to the CFLAGS.
76
77         config IPV6
78                 bool
79                 prompt "Enable IPv6 support in packages"
80                 default y
81                 help
82                   Enable IPv6 support in packages (passes --enable-ipv6 to configure scripts).
83
84         config PKG_BUILD_PARALLEL
85                 bool
86                 prompt "Compile certain packages parallelized"
87                 default y
88                 help
89                   This adds a -jX option to certain packages that are known to behave well
90                   for parallel build. By default, the package make processes use the main
91                   jobserver, in which case this option only takes effect when you add -jX
92                   to the make command.
93
94                   If you are unsure, select N.
95
96         config PKG_BUILD_USE_JOBSERVER
97                 bool
98                 prompt "Use top-level make jobserver for packages"
99                 depends on PKG_BUILD_PARALLEL
100                 default y
101                 help
102                   This passes the main make process jobserver fds to package builds,
103                   enabling full parallelization across different packages.
104
105                   Note that disabling this may overcommit CPU resources depending on the
106                   -j level of the main make process, the number of package submake jobs
107                   selected below and the number of actual CPUs present.
108                   Example: If the main make is passed a -j4 and the submake -j
109                   is also set to 4, we may end up with 16 parallel make processes
110                   in the worst case.
111
112         config PKG_BUILD_JOBS
113                 int
114                 prompt "Number of package submake jobs (2-512)"
115                 range 2 512
116                 default 2
117                 depends on PKG_BUILD_PARALLEL && !PKG_BUILD_USE_JOBSERVER
118                 help
119                   The number of jobs (-jX) to pass to packages submake.
120
121         config PKG_DEFAULT_PARALLEL
122                 bool
123                 prompt "Parallelize the default package build rule (May break build)"
124                 depends on PKG_BUILD_PARALLEL
125                 depends on BROKEN
126                 default n
127                 help
128                   Always set the default package build rules to parallel build.
129
130                   WARNING: This may break build or kill your cat, as it builds packages
131                   with multiple jobs that are probably not tested in a parallel build
132                   environment.
133
134                   Only say Y if you don't mind fixing broken packages.  Before reporting
135                   build bugs, set this to N and re-run the build.
136
137         comment "Stripping options"
138
139         choice
140                 prompt "Binary stripping method"
141                 default USE_STRIP   if EXTERNAL_TOOLCHAIN
142                 default USE_STRIP   if USE_GLIBC || USE_MUSL
143                 default USE_SSTRIP
144                 help
145                   Select the binary stripping method you wish to use.
146
147                 config NO_STRIP
148                         bool "none"
149                         help
150                           This will install unstripped binaries (useful for native
151                           compiling/debugging).
152
153                 config USE_STRIP
154                         bool "strip"
155                         help
156                           This will install binaries stripped using strip from binutils.
157
158
159                 config USE_SSTRIP
160                         bool "sstrip"
161                         depends on !DEBUG
162                         depends on !USE_GLIBC
163                         help
164                           This will install binaries stripped using sstrip.
165         endchoice
166
167         config STRIP_ARGS
168                 string
169                 prompt "Strip arguments"
170                 depends on USE_STRIP
171                 default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
172                 default "--strip-all"
173                 help
174                   Specifies arguments passed to the strip command when stripping binaries.
175
176         config STRIP_KERNEL_EXPORTS
177                 bool "Strip unnecessary exports from the kernel image"
178                 help
179                   Reduces kernel size by stripping unused kernel exports from the kernel
180                   image.  Note that this might make the kernel incompatible with any kernel
181                   modules that were not selected at the time the kernel image was created.
182
183         config USE_MKLIBS
184                 bool "Strip unnecessary functions from libraries"
185                 help
186                   Reduces libraries to only those functions that are necessary for using all
187                   selected packages (including those selected as <M>).  Note that this will
188                   make the system libraries incompatible with most of the packages that are
189                   not selected during the build process.
190
191         choice
192                 prompt "Preferred standard C++ library"
193                 default USE_LIBSTDCXX if USE_GLIBC
194                 default USE_UCLIBCXX
195                 help
196                   Select the preferred standard C++ library for all packages that support this.
197
198                 config USE_UCLIBCXX
199                         bool "uClibc++"
200
201                 config USE_LIBSTDCXX
202                         bool "libstdc++"
203         endchoice
204
205         comment "Hardening build options"
206
207         config PKG_CHECK_FORMAT_SECURITY
208                 bool
209                 prompt "Enable gcc format-security"
210                 default n
211                 help
212                   Add -Wformat -Werror=format-security to the CFLAGS.  You can disable
213                   this per package by adding PKG_CHECK_FORMAT_SECURITY:=0 in the package
214                   Makefile.
215
216         choice
217                 prompt "User space Stack-Smashing Protection"
218                 default PKG_CC_STACKPROTECTOR_NONE
219                 help
220                   Enable GCC Stack Smashing Protection (SSP) for userspace applications
221                 config PKG_CC_STACKPROTECTOR_NONE
222                         bool "None"
223                 config PKG_CC_STACKPROTECTOR_REGULAR
224                         bool "Regular"
225                         select SSP_SUPPORT
226                         depends on KERNEL_CC_STACKPROTECTOR_REGULAR
227                 config PKG_CC_STACKPROTECTOR_STRONG
228                         bool "Strong"
229                         select SSP_SUPPORT
230                         depends on GCC_VERSION_4_9_LINARO
231                         depends on KERNEL_CC_STACKPROTECTOR_STRONG
232         endchoice
233
234         choice
235                 prompt "Kernel space Stack-Smashing Protection"
236                 default KERNEL_CC_STACKPROTECTOR_NONE
237                 help
238                   Enable GCC Stack-Smashing Protection (SSP) for the kernel
239                 config KERNEL_CC_STACKPROTECTOR_NONE
240                         bool "None"
241                 config KERNEL_CC_STACKPROTECTOR_REGULAR
242                         bool "Regular"
243                 config KERNEL_CC_STACKPROTECTOR_STRONG
244                         depends on GCC_VERSION_4_9_LINARO
245                         bool "Strong"
246         endchoice
247
248         choice
249                 prompt "Enable buffer-overflows detection (FORTIFY_SOURCE)"
250                 help
251                   Enable the _FORTIFY_SOURCE macro which introduces additional
252                   checks to detect buffer-overflows in the following standard library
253                   functions: memcpy, mempcpy, memmove, memset, strcpy, stpcpy,
254                   strncpy, strcat, strncat, sprintf, vsprintf, snprintf, vsnprintf,
255                   gets.  "Conservative" (_FORTIFY_SOURCE set to 1) only introduces
256                   checks that shouldn't change the behavior of conforming programs,
257                   while "aggressive" (_FORTIFY_SOURCES set to 2) some more checking is
258                   added, but some conforming programs might fail.
259                 config PKG_FORTIFY_SOURCE_NONE
260                         bool "None"
261                 config PKG_FORTIFY_SOURCE_1
262                         bool "Conservative"
263                 config PKG_FORTIFY_SOURCE_2
264                         bool "Aggressive"
265         endchoice
266
267         choice
268                 prompt "Enable RELRO protection"
269                 help
270                   Enable a link-time protection known as RELRO (Relocation Read Only)
271                   which helps to protect from certain type of exploitation techniques
272                   altering the content of some ELF sections. "Partial" RELRO makes the
273                   .dynamic section not writeable after initialization, introducing
274                   almost no performance penalty, while "full" RELRO also marks the GOT
275                   as read-only at the cost of initializing all of it at startup.
276                 config PKG_RELRO_NONE
277                         bool "None"
278                 config PKG_RELRO_PARTIAL
279                         bool "Partial"
280                 config PKG_RELRO_FULL
281                         bool "Full"
282         endchoice
283
284 endmenu