add chaos_calmer branch
[15.05/openwrt.git] / package / base-files / image-config.in
1 # Copyright (C) 2006-2012 OpenWrt.org
2 # Copyright (C) 2010 Vertical Communications
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 menuconfig PREINITOPT
9         bool "Preinit configuration options" if IMAGEOPT
10         default n
11         help
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).
15
16 config TARGET_PREINIT_SUPPRESS_STDERR
17         bool "Suppress stderr messages during preinit" if PREINITOPT
18         default y
19         help
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.
26
27 config TARGET_PREINIT_TIMEOUT
28         int
29         prompt "Failsafe wait timeout" if PREINITOPT
30         default 2
31         help
32                 How long to wait for failsafe mode to be entered before
33                 continuing with a regular boot if failsafe not selected.
34
35 config TARGET_PREINIT_SHOW_NETMSG
36         bool
37         prompt "Show all preinit network messages" if PREINITOPT
38         default n
39         help
40                 Show preinit all network messages (via netmsg broadcast), not only
41                 the message indicating to press reset to enter failsafe.  Note that
42                 if the architecture doesn't define an interface, and there is no
43                 'Preinit network interface' defined, then no messages will be
44                 emitted, even if this is set.
45
46 config TARGET_PREINIT_SUPPRESS_FAILSAFE_NETMSG
47         bool
48         prompt "Suppress network message indicating failsafe" if PREINITOPT
49         default n
50         help
51                 If "Show all preinit network messages" above is not set, then
52                 setting this option suppresses the only message that would be
53                 emitted otherwise, name the network message to enter failsafe
54                 (via netmsg).
55
56 config TARGET_PREINIT_IFNAME
57         string
58         prompt "Preinit network interface" if PREINITOPT
59         default ""
60         help
61                 Interface for sending preinit messages to network, and any other
62                 default networking in failsafe or preinit.  If empty
63                 uses $ifname (if defined in /etc/preinit.arch).
64
65 config TARGET_PREINIT_IP
66         string
67         prompt "IP address for preinit network messages" if PREINITOPT
68         default "192.168.1.1"
69         help
70                 IP address used to configure interface for preinit network
71                 messages, including failsafe messages
72
73 config TARGET_PREINIT_NETMASK
74         string
75         prompt "Netmask for preinit network messages" if PREINITOPT
76         default "255.255.255.0"
77         help
78                 Netmask used to configure interface for preinit network
79                 messages, including failsafes messages
80
81 config TARGET_PREINIT_BROADCAST
82         string
83         prompt "Broadcast address for preinit network messages" if PREINITOPT
84         default "192.168.1.255"
85         help
86                 Broadcast address to which to send preinit network messages, as
87                 as failsafe messages
88
89
90 menuconfig INITOPT
91         bool "Init configuration options" if IMAGEOPT
92         default n
93         help
94                 These option choose the command that will run as the 'init' command
95                 (that is which is responsible for controlling the system once preinit
96                 transfers control to it) as well as some options controlling its
97                 behaviour.  Normally init is /sbin/init.
98
99         config TARGET_INIT_PATH
100                 string
101                 prompt "PATH for regular boot" if INITOPT
102                 default "/bin:/sbin:/usr/bin:/usr/sbin"
103                 help
104                         Default PATH used during normal operation
105
106         config TARGET_INIT_ENV
107                 string
108                 prompt "Environment variables to set when starting init (start with none)" if INITOPT
109                 default ""
110                 help
111                         Should be a space seperated list of variable assignments.  These
112                         variables will be present in the environment.  Spaces may not be
113                         present (including through expansion) even in a quoted string
114                         (env doesn't understanding quoting).
115
116         config TARGET_INIT_CMD
117                 string
118                 prompt "Init command" if INITOPT
119                 default "/sbin/init"
120                 help
121                         The executable to run as the init process.  Is 'exec'd by
122                         preinit (which is the init that the kernel launches on boot).
123
124         config TARGET_INIT_SUPPRESS_STDERR
125                 bool
126                 prompt "Suppress stderr messages of init" if INITOPT
127                 default y
128                 help
129                         Prevents showing stderr messages for init command if not already
130                         suppressed during preinit.  This is the default behaviour in
131                         previous versions of OpenWrt.  Removing this does nothing if
132                         stderr is suppressed during preinit (which is the default).
133
134
135 menuconfig VERSIONOPT
136         bool "Version configuration options" if IMAGEOPT
137         default n
138         help
139                 These options allow to override the version information embedded in
140                 the /etc/openwrt_version, /etc/openwrt_release, /etc/banner and
141                 /etc/opkg.conf files. Usually there is no need to set these, but
142                 they're useful for release builds or custom OpenWrt redistributions
143                 that should carry custom version tags.
144
145 if VERSIONOPT
146
147         config VERSION_DIST
148                 string
149                 prompt "Release distribution"
150                 default "OpenWrt"
151                 help
152                         This is the name of the release distribution.
153                         If unspecified, it defaults to OpenWrt.
154
155         config VERSION_NICK
156                 string
157                 prompt "Release version nickname"
158                 help
159                         This is the release codename embedded in the image.
160                         If unspecified, it defaults to the name of source branch.
161
162         config VERSION_NUMBER
163                 string
164                 prompt "Release version number"
165                 help
166                         This is the release version number embedded in the image.
167                         If unspecified, it defaults to the svn or git-svn revision
168                         of the build tree.
169
170         config VERSION_REPO
171                 string
172                 prompt "Release repository"
173                 default "http://downloads.openwrt.org/snapshots/trunk/%S/packages"
174                 help
175                         This is the repository address embedded in the image, it defaults
176                         to the trunk snapshot repo; the url may contain the following placeholders:
177                          %R .. Revision number
178                          %V .. Release version or revision number, uppercase
179                          %v .. Release version or revision number, lowercase
180                          %C .. Release version or "Bleeding Edge", uppercase
181                          %c .. Release version or "bleeding_edge", lowercase
182                          %N .. Release name, uppercase
183                          %n .. Release name, lowercase
184                          %D .. Distribution name or "OpenWrt", uppercase
185                          %d .. Distribution name or "openwrt", lowercase
186                          %T .. Target name
187                          %S .. Target/Subtarget name
188                          %t .. Build taint flags, e.g. "no-all busybox"
189                          %M .. Manufacturer name or "OpenWrt"
190                          %P .. Product name or "Generic"
191                          %h .. Hardware revision or "v0"
192
193         config VERSION_MANUFACTURER
194                 string
195                 prompt "Manufacturer name"
196                 help
197                         This is the manufacturer name embedded in /etc/device_info
198                         Useful for OEMs building OpenWrt based firmware
199
200         config VERSION_PRODUCT
201                 string
202                 prompt "Product name"
203                 help
204                         This is the product name embedded in /etc/device_info
205                         Useful for OEMs building OpenWrt based firmware
206
207         config VERSION_HWREV
208                 string
209                 prompt "Hardware revision"
210                 help
211                         This is the hardware revision string embedded in /etc/device_info
212                         Useful for OEMs building OpenWrt based firmware
213
214         config VERSION_FILENAMES
215                 bool
216                 prompt "Version number in filenames"
217                 default y
218                 help
219                         Enable this to include the version number in firmware image, SDK-
220                         and Image Builder archive file names
221 endif
222
223
224 menuconfig PER_FEED_REPO
225         bool "Separate feed repositories" if IMAGEOPT
226         default y
227         help
228                 If set, a separate repository is generated within bin/*/packages/
229                 for the core packages and each enabled feed.
230
231         config PER_FEED_REPO_ADD_DISABLED
232                 bool "Add available but not enabled feeds to opkg.conf"
233                 default y
234                 depends on PER_FEED_REPO
235                 help
236                   Add not installed or disabled feeds from feeds.conf to opkg.conf.
237
238         config PER_FEED_REPO_ADD_COMMENTED
239                 bool "Comment out not enabled feeds"
240                 default y
241                 depends on PER_FEED_REPO && PER_FEED_REPO_ADD_DISABLED
242                 help
243                   Add not enabled feeds as commented out source lines to opkg.conf.
244
245 source "tmp/.config-feeds.in"
246
247
248 menuconfig SMIMEOPT
249         bool "Package signing options" if IMAGEOPT
250         default n
251         help
252                 These options configure the signing key and certificate to
253                 be used for signing and verifying packages.
254
255         config OPKGSMIME_CERT
256                 string
257                 prompt "Path to certificate (PEM certificate format)" if SMIMEOPT
258                 help
259                   Path to the certificate to use for signature verification
260
261         config OPKGSMIME_KEY
262                 string
263                 prompt "Path to signing key (PEM private key format)" if SMIMEOPT
264                 help
265                   Path to the key to use for signing packages
266
267         config OPKGSMIME_PASSPHRASE
268                 bool
269                 default y
270                 prompt "Wait for a passphrase when signing packages?" if SMIMEOPT
271                 help
272                   If this value is set, then the build will pause and request a passphrase
273                   from the command line when signing packages. This SHOULD NOT be used with
274                   automatic builds. If this value is not set, a file can be specified from
275                   which the passphrase will be read.
276
277         config OPKGSMIME_PASSFILE
278                 string
279                 prompt "Path to a file containing the passphrase" if SMIMEOPT
280                 depends on !OPKGSMIME_PASSPHRASE
281                 help
282                   Path to a file containing the passphrase for the signing key.
283                   If the signing key is not encrypted and does not require a passphrase,
284                   this option may be left blank.