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