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.
8 config TARGET_DEFAULT_LAN_IP_FROM_PREINIT
9 bool "Use preinit IP configuration as default LAN IP" if IMAGEOPT
12 Enabling this will set the default LAN IP address and netmask
13 to the preinit values set in the image config.
16 bool "Preinit configuration options" if IMAGEOPT
19 These options are used to control the environment used to initialize
20 the system before running init (which typically mean /sbin/init which
21 switches to multiuser mode).
23 config TARGET_PREINIT_SUPPRESS_STDERR
24 bool "Suppress stderr messages during preinit" if PREINITOPT
27 Sends stderr to null during preinit. This is the default behaviour
28 in previous versions of OpenWrt. This also prevents init process
29 itself from displaying stderr, however processes launched by init
30 in multiuser through inittab will use the current terminal (e.g.
31 the ash shell launched by inittab will display stderr). That's
32 the same behaviour as seen in previous version of OpenWrt.
34 config TARGET_PREINIT_DISABLE_FAILSAFE
36 prompt "Disable failsafe" if PREINITOPT
39 Disable failsafe mode. While it is very handy while
40 experimenting or developing it really ought to be
41 disabled in production environments as it is a major
44 config TARGET_PREINIT_TIMEOUT
46 prompt "Failsafe/Debug wait timeout" if PREINITOPT
49 How long to wait for failsafe mode to be entered or for
50 a debug option to be pressed before continuing with a
53 config TARGET_PREINIT_SHOW_NETMSG
55 prompt "Show all preinit network messages" if PREINITOPT
58 Show preinit all network messages (via netmsg broadcast), not only
59 the message indicating to press reset to enter failsafe. Note that
60 if the architecture doesn't define an interface, and there is no
61 'Preinit network interface' defined, then no messages will be
62 emitted, even if this is set.
64 config TARGET_PREINIT_SUPPRESS_FAILSAFE_NETMSG
66 prompt "Suppress network message indicating failsafe" if ( PREINITOPT && !TARGET_PREINIT_SHOW_NETMSG && !TARGET_PREINIT_DISABLE_FAILSAFE )
69 If "Show all preinit network messages" above is not set, then
70 setting this option suppresses the only message that would be
71 emitted otherwise, name the network message to enter failsafe
74 config TARGET_PREINIT_IFNAME
76 prompt "Preinit network interface" if PREINITOPT
79 Interface for sending preinit messages to network, and any other
80 default networking in failsafe or preinit. If empty
81 uses $ifname (if defined in /etc/preinit.arch).
83 config TARGET_PREINIT_IP
85 prompt "IP address for preinit network messages" if PREINITOPT
88 IP address used to configure interface for preinit network
89 messages, including failsafe messages
91 config TARGET_PREINIT_NETMASK
93 prompt "Netmask for preinit network messages" if PREINITOPT
94 default "255.255.255.0"
96 Netmask used to configure interface for preinit network
97 messages, including failsafes messages
99 config TARGET_PREINIT_BROADCAST
101 prompt "Broadcast address for preinit network messages" if PREINITOPT
102 default "192.168.1.255"
104 Broadcast address to which to send preinit network messages, as
109 bool "Init configuration options" if IMAGEOPT
112 These option choose the command that will run as the 'init' command
113 (that is which is responsible for controlling the system once preinit
114 transfers control to it) as well as some options controlling its
115 behaviour. Normally init is /sbin/init.
117 config TARGET_INIT_PATH
119 prompt "PATH for regular boot" if INITOPT
120 default "/usr/sbin:/usr/bin:/sbin:/bin"
122 Default PATH used during normal operation
124 config TARGET_INIT_ENV
126 prompt "Environment variables to set when starting init (start with none)" if INITOPT
129 Should be a space separated list of variable assignments. These
130 variables will be present in the environment. Spaces may not be
131 present (including through expansion) even in a quoted string
132 (env doesn't understanding quoting).
134 config TARGET_INIT_CMD
136 prompt "Init command" if INITOPT
139 The executable to run as the init process. Is 'exec'd by
140 preinit (which is the init that the kernel launches on boot).
142 config TARGET_INIT_SUPPRESS_STDERR
144 prompt "Suppress stderr messages of init" if INITOPT
147 Prevents showing stderr messages for init command if not already
148 suppressed during preinit. This is the default behaviour in
149 previous versions of OpenWrt. Removing this does nothing if
150 stderr is suppressed during preinit (which is the default).
153 menuconfig VERSIONOPT
154 bool "Version configuration options" if IMAGEOPT
157 These options allow to override the version information embedded in
158 the /etc/openwrt_version, /etc/openwrt_release, /etc/banner,
159 /etc/opkg.conf, and /etc/os-release files. Usually there is no need
160 to set these, but they're useful for release builds or custom OpenWrt
161 redistributions that should carry custom version tags.
167 prompt "Release distribution"
170 This is the name of the release distribution.
171 If unspecified, it defaults to OpenWrt.
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 SNAPSHOT for the master branch
179 or to ##.##-SNAPSHOT on release branches.
183 prompt "Release version code"
185 This is the release version code embedded in the image.
186 If unspecified, it defaults to a revision number describing the
187 repository version of the source, e.g. the number of commits
188 since a branch point or a short Git commit ID.
192 prompt "Release repository"
193 default "https://downloads.openwrt.org/releases/23.05-SNAPSHOT"
195 This is the repository address embedded in the image, it defaults
196 to the trunk snapshot repo; the url may contain the following placeholders:
197 %R .. Repository revision ID
198 %V .. Configured release version number or "SNAPSHOT", uppercase
199 %v .. Configured release version number or "snapshot", lowercase
200 %C .. Configured release revision code or value of %R, uppercase
201 %c .. Configured release revision code or value of %R, lowercase
202 %D .. Distribution name or "OpenWrt", uppercase
203 %d .. Distribution name or "openwrt", lowercase
205 %S .. Target/Subtarget name
206 %A .. Package architecture
207 %t .. Build taint flags, e.g. "no-all busybox"
208 %M .. Manufacturer name or "OpenWrt"
209 %P .. Product name or "Generic"
210 %h .. Hardware revision or "v0"
212 config VERSION_HOME_URL
214 prompt "Release Homepage"
216 This is the release version homepage
218 config VERSION_MANUFACTURER
220 prompt "Manufacturer name"
222 This is the manufacturer name embedded in /etc/device_info
223 Useful for OEMs building OpenWrt based firmware
225 config VERSION_MANUFACTURER_URL
227 prompt "Manufacturer URL"
229 This is an URL to the manufacturer's website embedded in /etc/device_info
230 Useful for OEMs building OpenWrt based firmware
232 config VERSION_BUG_URL
234 prompt "Bug reporting URL"
236 This is an URL to provide users for providing bug reports
238 config VERSION_SUPPORT_URL
242 This an URL to provide users seeking support
244 config VERSION_PRODUCT
246 prompt "Product name"
248 This is the product name embedded in /etc/device_info
249 Useful for OEMs building OpenWrt based firmware
253 prompt "Hardware revision"
255 This is the hardware revision string embedded in /etc/device_info
256 Useful for OEMs building OpenWrt based firmware
258 config VERSION_FILENAMES
260 prompt "Version number in filenames"
263 Enable this to include the version number in firmware image, SDK-
264 and Image Builder archive file names
266 config VERSION_CODE_FILENAMES
268 prompt "Revision code in filenames"
271 Enable this to include the revision identifier or the configured
272 version code into the firmware image, SDK- and Image Builder archive
277 menuconfig PER_FEED_REPO
278 bool "Separate feed repositories" if IMAGEOPT
281 If set, a separate repository is generated within bin/*/packages/
282 for the core packages and each enabled feed.
284 source "tmp/.config-feeds.in"