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