1 # Copyright (C) 2006-2013 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
7 menu "Global build settings"
10 bool "Select all packages by default"
13 comment "General build options"
15 config DISPLAY_SUPPORT
16 bool "Show packages that require graphics support (local or remote)"
21 bool "Compile with support for patented functionality"
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.
29 bool "Compile with full language support"
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.
34 config BUILD_STATIC_TOOLS
36 bool "Attempt to link host utilities statically"
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.
41 config SHADOW_PASSWORDS
43 prompt "Enable shadow password support"
46 Enable shadow password support.
50 prompt "Remove ipkg/opkg status data files in final images"
53 This removes all ipkg/opkg status data files from the target directory before building the root fs
55 config COLLECT_KERNEL_DEBUG
57 prompt "Collect kernel debug information"
58 select KERNEL_DEBUG_INFO
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.
64 comment "Kernel build options"
66 source "config/Config-kernel.in"
68 comment "Package build options"
72 prompt "Compile packages with debugging info"
75 Adds -g3 to the CFLAGS
79 prompt "Enable IPv6 support in packages"
82 Enable IPV6 support in packages (passes --enable-ipv6 to configure scripts).
84 config PKG_BUILD_PARALLEL
86 prompt "Compile certain packages parallelized"
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.
94 If you are unsure, select N.
96 config PKG_BUILD_USE_JOBSERVER
98 prompt "Use top-level make jobserver for packages"
99 depends on PKG_BUILD_PARALLEL
102 This passes the main make process jobserver fds to package builds,
103 enabling full parallelization across different packages
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
113 config PKG_BUILD_JOBS
115 prompt "Number of package submake jobs (2-512)"
118 depends on PKG_BUILD_PARALLEL && !PKG_BUILD_USE_JOBSERVER
120 The number of jobs (-jX) to pass to packages submake.
122 config PKG_DEFAULT_PARALLEL
124 prompt "Parallelize the default package build rule (May break build)"
125 depends on PKG_BUILD_PARALLEL
129 Always set the default package build rules to parallel build.
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.
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.
138 comment "Stripping options"
141 prompt "Binary stripping method"
142 default USE_STRIP if EXTERNAL_TOOLCHAIN
143 default USE_STRIP if USE_GLIBC || USE_EGLIBC || USE_MUSL
146 Select the binary stripping method you wish to use.
151 This will install unstripped binaries (useful for native compiling/debugging)
156 This will install binaries stripped using strip from binutils
162 depends on !USE_GLIBC
163 depends on !USE_EGLIBC
165 This will install binaries stripped using sstrip
170 prompt "Strip arguments"
172 default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
173 default "--strip-all"
175 Specifies arguments passed to the strip command when stripping binaries
177 config STRIP_KERNEL_EXPORTS
178 bool "Strip unnecessary exports from the kernel image"
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
185 bool "Strip unnecessary functions from libraries"
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
193 prompt "Preferred standard C++ library"
194 default USE_LIBSTDCXX if USE_EGLIBC
197 Select the preferred standard C++ library for all packages that support this.