kernel: add a config option for /proc page monitoring (useful for detailed memory...
[openwrt/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_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
107 submake jobs 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
113 config PKG_BUILD_JOBS
114 int
115 prompt "Number of package submake jobs (2-512)"
116 range 2 512
117 default 2
118 depends on PKG_BUILD_PARALLEL && !PKG_BUILD_USE_JOBSERVER
119 help
120 The number of jobs (-jX) to pass to packages submake.
121
122 config PKG_DEFAULT_PARALLEL
123 bool
124 prompt "Parallelize the default package build rule (May break build)"
125 depends on PKG_BUILD_PARALLEL
126 depends on BROKEN
127 default n
128 help
129 Always set the default package build rules to parallel build.
130
131 WARNING: This may break build or kill your cat, as it builds
132 packages with multiple jobs that are probably not tested in
133 a parallel build environment.
134
135 Only say Y, if you don't mind fixing broken packages.
136 Before reporting build bugs, set this to N and re-run the build.
137
138 comment "Stripping options"
139
140 choice
141 prompt "Binary stripping method"
142 default USE_STRIP if EXTERNAL_TOOLCHAIN
143 default USE_STRIP if USE_GLIBC || USE_EGLIBC || USE_MUSL
144 default USE_SSTRIP
145 help
146 Select the binary stripping method you wish to use.
147
148 config NO_STRIP
149 bool "none"
150 help
151 This will install unstripped binaries (useful for native 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 depends on !USE_EGLIBC
164 help
165 This will install binaries stripped using sstrip
166 endchoice
167
168 config STRIP_ARGS
169 string
170 prompt "Strip arguments"
171 depends on USE_STRIP
172 default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
173 default "--strip-all"
174 help
175 Specifies arguments passed to the strip command when stripping binaries
176
177 config STRIP_KERNEL_EXPORTS
178 bool "Strip unnecessary exports from the kernel image"
179 help
180 Reduces kernel size by stripping unused kernel exports from the kernel image
181 Note that this might make the kernel incompatible with any kernel modules that
182 were not selected at the time the kernel image was created
183
184 config USE_MKLIBS
185 bool "Strip unnecessary functions from libraries"
186 help
187 Reduces libraries to only those functions that are necessary for using all
188 selected packages (including those selected as <M>)
189 Note that this will make the system libraries incompatible with most of the packages
190 that are not selected during the build process
191
192 choice
193 prompt "Preferred standard C++ library"
194 default USE_LIBSTDCXX if USE_EGLIBC
195 default USE_UCLIBCXX
196 help
197 Select the preferred standard C++ library for all packages that support this.
198
199 config USE_UCLIBCXX
200 bool "uClibc++"
201
202 config USE_LIBSTDCXX
203 bool "libstdc++"
204 endchoice
205
206 endmenu