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_CHECK_FORMAT_SECURITY
98 prompt "Enable gcc format-security"
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
105 config PKG_BUILD_USE_JOBSERVER
107 prompt "Use top-level make jobserver for packages"
108 depends on PKG_BUILD_PARALLEL
111 This passes the main make process jobserver fds to package builds,
112 enabling full parallelization across different packages
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
122 config PKG_BUILD_JOBS
124 prompt "Number of package submake jobs (2-512)"
127 depends on PKG_BUILD_PARALLEL && !PKG_BUILD_USE_JOBSERVER
129 The number of jobs (-jX) to pass to packages submake.
131 config PKG_DEFAULT_PARALLEL
133 prompt "Parallelize the default package build rule (May break build)"
134 depends on PKG_BUILD_PARALLEL
138 Always set the default package build rules to parallel build.
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.
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.
147 comment "Stripping options"
150 prompt "Binary stripping method"
151 default USE_STRIP if EXTERNAL_TOOLCHAIN
152 default USE_STRIP if USE_GLIBC || USE_EGLIBC || USE_MUSL
155 Select the binary stripping method you wish to use.
160 This will install unstripped binaries (useful for native compiling/debugging)
165 This will install binaries stripped using strip from binutils
171 depends on !USE_GLIBC
172 depends on !USE_EGLIBC
174 This will install binaries stripped using sstrip
179 prompt "Strip arguments"
181 default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG
182 default "--strip-all"
184 Specifies arguments passed to the strip command when stripping binaries
186 config STRIP_KERNEL_EXPORTS
187 bool "Strip unnecessary exports from the kernel image"
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
194 bool "Strip unnecessary functions from libraries"
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
202 prompt "Preferred standard C++ library"
203 default USE_LIBSTDCXX if USE_EGLIBC
206 Select the preferred standard C++ library for all packages that support this.