1 # Copyright (C) 2006-2012 OpenWrt.org
2 # Copyright (C) 2010 Vertical Communications
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 bool "Preinit configuration options" if IMAGEOPT
12 These options are used to control the environment used to initialize
13 the system before running init (which typically mean /sbin/init which
14 switches to multiuser mode).
16 config TARGET_PREINIT_SUPPRESS_STDERR
17 bool "Suppress stderr messages during preinit" if PREINITOPT
20 Sends stderr to null during preinit. This is the default behaviour
21 in previous versions of OpenWrt. This also prevents init process
22 itself from displaying stderr, however processes launched by init
23 in multiuser through inittab will use the current terminal (e.g.
24 the ash shell launched by inittab will display stderr). That's
25 the same behaviour as seen in previous version of OpenWrt.
27 config TARGET_PREINIT_DISABLE_FAILSAFE
29 prompt "Disable failsafe" if PREINITOPT
32 Disable failsafe mode. While it is very handy while
33 experimenting or developing it really ought to be
34 disabled in production environments as it is a major
37 config TARGET_PREINIT_TIMEOUT
39 prompt "Failsafe/Debug wait timeout" if PREINITOPT
42 How long to wait for failsafe mode to be entered or for
43 a debug option to be pressed before continuing with a
46 config TARGET_PREINIT_SHOW_NETMSG
48 prompt "Show all preinit network messages" if PREINITOPT
51 Show preinit all network messages (via netmsg broadcast), not only
52 the message indicating to press reset to enter failsafe. Note that
53 if the architecture doesn't define an interface, and there is no
54 'Preinit network interface' defined, then no messages will be
55 emitted, even if this is set.
57 config TARGET_PREINIT_SUPPRESS_FAILSAFE_NETMSG
59 prompt "Suppress network message indicating failsafe" if ( PREINITOPT && !TARGET_PREINIT_SHOW_NETMSG && !TARGET_PREINIT_DISABLE_FAILSAFE )
62 If "Show all preinit network messages" above is not set, then
63 setting this option suppresses the only message that would be
64 emitted otherwise, name the network message to enter failsafe
67 config TARGET_PREINIT_IFNAME
69 prompt "Preinit network interface" if PREINITOPT
72 Interface for sending preinit messages to network, and any other
73 default networking in failsafe or preinit. If empty
74 uses $ifname (if defined in /etc/preinit.arch).
76 config TARGET_PREINIT_IP
78 prompt "IP address for preinit network messages" if PREINITOPT
81 IP address used to configure interface for preinit network
82 messages, including failsafe messages
84 config TARGET_PREINIT_NETMASK
86 prompt "Netmask for preinit network messages" if PREINITOPT
87 default "255.255.255.0"
89 Netmask used to configure interface for preinit network
90 messages, including failsafes messages
92 config TARGET_PREINIT_BROADCAST
94 prompt "Broadcast address for preinit network messages" if PREINITOPT
95 default "192.168.1.255"
97 Broadcast address to which to send preinit network messages, as
102 bool "Init configuration options" if IMAGEOPT
105 These option choose the command that will run as the 'init' command
106 (that is which is responsible for controlling the system once preinit
107 transfers control to it) as well as some options controlling its
108 behaviour. Normally init is /sbin/init.
110 config TARGET_INIT_PATH
112 prompt "PATH for regular boot" if INITOPT
113 default "/usr/sbin:/usr/bin:/sbin:/bin"
115 Default PATH used during normal operation
117 config TARGET_INIT_ENV
119 prompt "Environment variables to set when starting init (start with none)" if INITOPT
122 Should be a space seperated list of variable assignments. These
123 variables will be present in the environment. Spaces may not be
124 present (including through expansion) even in a quoted string
125 (env doesn't understanding quoting).
127 config TARGET_INIT_CMD
129 prompt "Init command" if INITOPT
132 The executable to run as the init process. Is 'exec'd by
133 preinit (which is the init that the kernel launches on boot).
135 config TARGET_INIT_SUPPRESS_STDERR
137 prompt "Suppress stderr messages of init" if INITOPT
140 Prevents showing stderr messages for init command if not already
141 suppressed during preinit. This is the default behaviour in
142 previous versions of OpenWrt. Removing this does nothing if
143 stderr is suppressed during preinit (which is the default).
146 menuconfig VERSIONOPT
147 bool "Version configuration options" if IMAGEOPT
150 These options allow to override the version information embedded in
151 the /etc/openwrt_version, /etc/openwrt_release, /etc/banner and
152 /etc/opkg.conf files. Usually there is no need to set these, but
153 they're useful for release builds or custom OpenWrt redistributions
154 that should carry custom version tags.
160 prompt "Release distribution"
163 This is the name of the release distribution.
164 If unspecified, it defaults to OpenWrt.
168 prompt "Release version nickname"
170 This is the release codename embedded in the image.
171 If unspecified, it defaults to the name of source branch.
173 config VERSION_NUMBER
175 prompt "Release version number"
177 This is the release version number embedded in the image.
178 If unspecified, it defaults to the svn or git-svn revision
183 prompt "Release repository"
184 default "http://downloads.openwrt.org/snapshots/trunk/%S/packages"
186 This is the repository address embedded in the image, it defaults
187 to the trunk snapshot repo; the url may contain the following placeholders:
188 %R .. Revision number
189 %V .. Release version or revision number, uppercase
190 %v .. Release version or revision number, lowercase
191 %C .. Release version or "Bleeding Edge", uppercase
192 %c .. Release version or "bleeding_edge", lowercase
193 %N .. Release name, uppercase
194 %n .. Release name, lowercase
195 %D .. Distribution name or "OpenWrt", uppercase
196 %d .. Distribution name or "openwrt", lowercase
198 %S .. Target/Subtarget name
199 %t .. Build taint flags, e.g. "no-all busybox"
200 %M .. Manufacturer name or "OpenWrt"
201 %P .. Product name or "Generic"
202 %h .. Hardware revision or "v0"
204 config VERSION_MANUFACTURER
206 prompt "Manufacturer name"
208 This is the manufacturer name embedded in /etc/device_info
209 Useful for OEMs building OpenWrt based firmware
211 config VERSION_MANUFACTURER_URL
213 prompt "Manufacturer URL"
215 This is an URL to the manufacturer's website embedded in /etc/device_info
216 Useful for OEMs building OpenWrt based firmware
218 config VERSION_PRODUCT
220 prompt "Product name"
222 This is the product name embedded in /etc/device_info
223 Useful for OEMs building OpenWrt based firmware
227 prompt "Hardware revision"
229 This is the hardware revision string embedded in /etc/device_info
230 Useful for OEMs building OpenWrt based firmware
232 config VERSION_FILENAMES
234 prompt "Version number in filenames"
237 Enable this to include the version number in firmware image, SDK-
238 and Image Builder archive file names
242 menuconfig PER_FEED_REPO
243 bool "Separate feed repositories" if IMAGEOPT
246 If set, a separate repository is generated within bin/*/packages/
247 for the core packages and each enabled feed.
249 config PER_FEED_REPO_ADD_DISABLED
250 bool "Add available but not enabled feeds to opkg.conf"
252 depends on PER_FEED_REPO
254 Add not installed or disabled feeds from feeds.conf to opkg.conf.
256 config PER_FEED_REPO_ADD_COMMENTED
257 bool "Comment out not enabled feeds"
259 depends on PER_FEED_REPO && PER_FEED_REPO_ADD_DISABLED
261 Add not enabled feeds as commented out source lines to opkg.conf.
263 source "tmp/.config-feeds.in"
267 bool "Package signing options" if IMAGEOPT
270 These options configure the signing key and certificate to
271 be used for signing and verifying packages.
273 config OPKGSMIME_CERT
275 prompt "Path to certificate (PEM certificate format)" if SMIMEOPT
277 Path to the certificate to use for signature verification
281 prompt "Path to signing key (PEM private key format)" if SMIMEOPT
283 Path to the key to use for signing packages
285 config OPKGSMIME_PASSPHRASE
288 prompt "Wait for a passphrase when signing packages?" if SMIMEOPT
290 If this value is set, then the build will pause and request a passphrase
291 from the command line when signing packages. This SHOULD NOT be used with
292 automatic builds. If this value is not set, a file can be specified from
293 which the passphrase will be read.
295 config OPKGSMIME_PASSFILE
297 prompt "Path to a file containing the passphrase" if SMIMEOPT
298 depends on !OPKGSMIME_PASSPHRASE
300 Path to a file containing the passphrase for the signing key.
301 If the signing key is not encrypted and does not require a passphrase,
302 this option may be left blank.