summaryrefslogtreecommitdiff
path: root/target/config/Config.in.runtime
blob: fdcc3fa6b815d9411137edb09c87eec3c21a4bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

config ADK_RUNTIME_HOSTNAME
	string "hostname for the embedded system"
	default "openadk"
	help
	  Set your target hostname.

config ADK_RUNTIME_SSH_PUBKEY
	string "SSH public key (root user only)"
	default ""
	depends on ADK_PACKAGE_OPENSSH_SERVER || ADK_PACKAGE_DROPBEAR
	help
	  Paste your generated SSH public key here and it will be embedded into
	  the built image, so you can use it to login instantly.

config ADK_RUNTIME_PASSWORD
	string "root password for the embedded system"
	default "linux123"
	help
	  Predefine the root password enabled in the built image.

config ADK_RUNTIME_START_SERVICES
	prompt "start services by default"
	boolean
	default n
	help

source "target/config/Config.in.scripts"

config ADK_RUNTIME_TMPFS_SIZE
	string "size of /tmp in memory (kB)"
	default "16384" if ADK_TARGET_QEMU
	default "16384" if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
	default "32768" if ADK_TARGET_SYSTEM_IBM_X40
	default "32768" if ADK_TARGET_SYSTEM_RASPBERRY_PI
	default "32768" if ADK_TARGET_SYSTEM_CUBOX_I
	default "8192" if ADK_TARGET_SYSTEM_MIKROTIK_RB532
	default "2048"
	help
	  Size of /tmp in memory in Kilobyte.

config ADK_RUNTIME_TIMEZONE
	string "timezone for the embedded system"
	default "Europe/Berlin"
	help
	  Predefine the timezone for the embedded system.

config ADK_QUIET_KERNEL
	prompt "make bootup quiet without messages from the kernel"
	boolean
	default n
	help
	  Make bootup quiet without messages from the kernel.

choice
prompt "bootup messages from initscripts"
default ADK_RUNTIME_VERBOSE_INIT_VGA if ADK_TARGET_WITH_VGA
default ADK_RUNTIME_VERBOSE_INIT_SERIAL

config ADK_RUNTIME_VERBOSE_INIT_VGA
	depends on ADK_TARGET_WITH_VGA
	boolean "output via VGA"

config ADK_RUNTIME_VERBOSE_INIT_SERIAL
	boolean "output via serial"

config ADK_RUNTIME_QUIET_INIT
	boolean "no output"

endchoice

choice
prompt "start getty or shell after bootup"
default ADK_RUNTIME_SHELL if ADK_PKG_TEST
default ADK_RUNTIME_GETTY

config ADK_RUNTIME_GETTY
	boolean "start a getty after bootup"
	help
	  Start a getty after bootup.

config ADK_RUNTIME_SHELL
	boolean "start a shell after bootup"
	help
	  Start a shell after bootup

endchoice

config ADK_RUNTIME_GETTY_VGA
	boolean "start getty on VGA console (tty1-tty6)"
	depends on ADK_RUNTIME_GETTY
	default y if ADK_TARGET_QEMU_WITH_GRAPHIC
	default y if ADK_TARGET_SYSTEM_RASPBERRY_PI
	default y if ADK_TARGET_SYSTEM_CUBOX_I
	default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
	default y if ADK_TARGET_SYSTEM_IBM_X40
	default y if ADK_TARGET_SYSTEM_ARANYM_M68K
	default n
	help
          Start getty on VGA console. (tty1-tty6)

config ADK_RUNTIME_GETTY_SERIAL
	boolean "start getty on serial console"
	depends on ADK_RUNTIME_GETTY
	default n if ADK_TARGET_SYSTEM_RASPBERRY_PI
	default n if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
	default n if ADK_TARGET_SYSTEM_IBM_X40
	default n if ADK_TARGET_SYSTEM_ARANYM_M68K
	default y
	help
	  Start getty on serial console.

config ADK_RUNTIME_CONSOLE_SERIAL_DEVICE
	string
	default "hvc0" if ADK_TARGET_SYSTEM_QEMU_PPC64
	default "ttyUL0" if ADK_TARGET_QEMU_MICROBLAZE_MODEL_S3ADSP1800
	default "ttyAMA0" if ADK_TARGET_QEMU_ARM_MODEL_VERSATILEPB || ADK_TARGET_QEMU_ARM_MODEL_VEXPRESS_A9 || ADK_TARGET_SYSTEM_ARM_FM
	default "ttySC1" if ADK_TARGET_SYSTEM_QEMU_SH4 || ADK_TARGET_SYSTEM_QEMU_SH4EB
	default "ttymxc0" if ADK_TARGET_SYSTEM_CUBOX_I
	default "ttyS0"

config ADK_RUNTIME_CONSOLE_SERIAL_SPEED
	string
	default "9600" if ADK_TARGET_SYSTEM_QEMU_PPC
	default "9600" if ADK_TARGET_SYSTEM_FON_FON2100
	default "38400" if ADK_TARGET_SYSTEM_PCENGINES_WRAP	
	default "115200"

config ADK_RUNTIME_KBD_LAYOUT
	string "keyboard layout for the embedded system"
	default ""
	depends on ADK_TARGET_WITH_INPUT
	help
	  Predefine the keyboard layout for the embedded system.

choice
prompt "initial login shell for the root user"
default ADK_ROOTSH_MKSH

config ADK_ROOTSH_MKSH
	select ADK_PACKAGE_MKSH if !ADK_TOOLCHAIN_ONLY
	bool "mksh (MirBSD Korn Shell)"
	help
	  Use mksh (a Korn Shell variant) as standard login shell
	  for the superuser.

config ADK_ROOTSH_ASH
	select BUSYBOX_ASH
	bool "ash (busybox)"
	help
	  Use the minimalistic ash variant that is part of busybox
	  as standard login shell for the superuser. This is the
	  default, but discouraged due to its frugality.

config ADK_ROOTSH_BASH
	select ADK_PACKAGE_BASH
	bool "bash (GNU Bourne-Again Shell)"
	help
	  Use GNU bash as standard login shell for the superuser.

config ADK_ROOTSH_TCSH
	select ADK_PACKAGE_TCSH
	bool "tcsh (Tenex C Shell)"
	help
	  Use tcsh (a C Shell variant) as standard login shell
	  for the superuser.

config ADK_ROOTSH_ZSH
	select ADK_PACKAGE_ZSH
	bool "zsh (The Z Shell)"
	help
	  Use zsh as standard login shell for the superuser.

endchoice

choice
prompt "system /bin/sh (POSIX script shell)"
default ADK_BINSH_MKSH

config ADK_BINSH_MKSH
	select ADK_PACKAGE_MKSH if !ADK_TOOLCHAIN_ONLY
	bool "mksh (MirBSD Korn Shell)"
	help
	  Use mksh (a Korn Shell variant) as system shell, which is
	  both small and powerful, so quite suited for this task.

config ADK_BINSH_ASH
	select BUSYBOX_ASH
	bool "ash (busybox)"
	help
	  Use the minimalistic ash variant that is part of busybox
	  as system shell. This is the default and rather small and
	  fast, but lacks scripting features.

config ADK_BINSH_BASH
	select ADK_PACKAGE_BASH
	bool "bash (GNU Bourne-Again Shell)"
	help
	  Use GNU bash as system shell. This is discouraged due to
	  its size and slowness.

config ADK_BINSH_ZSH
	select ADK_PACKAGE_ZSH
	bool "zsh (The Z Shell)"
	help
	  Use zsh as system shell. This is probably a bad idea.

endchoice

config ADK_SIMPLE_NETWORK_CONFIG
	prompt "simple network configuration"
	boolean
	help
	  Manually change network config
	  
menu "eth0 Configuration"
depends on ADK_SIMPLE_NETWORK_CONFIG

choice
	prompt "Type"
	default SIMPLE_NETWORK_CONFIG_ETH0_TYPE_MANUAL

config SIMPLE_NETWORK_CONFIG_ETH0_TYPE_NIC_MANUAL
	bool "NIC / manual IP"

config SIMPLE_NETWORK_CONFIG_ETH0_TYPE_NIC
	bool "NIC / DHCP"

config SIMPLE_NETWORK_CONFIG_ETH0_TYPE_BRIDGE_IP
	bool "Bridge with IP"

config SIMPLE_NETWORK_CONFIG_ETH0_TYPE_BRIDGE
	bool "Bridge w/o IP"

config SIMPLE_NETWORK_CONFIG_ETH0_TYPE_NONE
	bool "None"
endchoice

config SIMPLE_NETWORK_CONFIG_ETH0_IP
	depends on SIMPLE_NETWORK_CONFIG_ETH0_TYPE_NIC_MANUAL || SIMPLE_NETWORK_CONFIG_ETH0_TYPE_BRIDGE_IP
	string "eth0 IP Address"
	default "10.0.2.15"

config SIMPLE_NETWORK_CONFIG_ETH0_NM
	depends on SIMPLE_NETWORK_CONFIG_ETH0_TYPE_NIC_MANUAL || SIMPLE_NETWORK_CONFIG_ETH0_TYPE_BRIDGE_IP
	string "eth0 Netmask"
	default "255.255.255.0"

config SIMPLE_NETWORK_CONFIG_ETH0_GW
	depends on SIMPLE_NETWORK_CONFIG_ETH0_TYPE_NIC_MANUAL
	string "eth0 Gateway"
	default "10.0.2.2"

config SIMPLE_NETWORK_CONFIG_ETH0_BRIDGE
	depends on SIMPLE_NETWORK_CONFIG_ETH0_TYPE_BRIDGE || SIMPLE_NETWORK_CONFIG_ETH0_TYPE_BRIDGE_IP
	string "Bridge ports"
	default "eth0 eth1"

config SIMPLE_NETWORK_CONFIG_ETH0_BC
	depends on SIMPLE_NETWORK_CONFIG_ETH0_TYPE_NIC_MANUAL || SIMPLE_NETWORK_CONFIG_ETH0_TYPE_BRIDGE_IP
	string
	default "+"

endmenu

menu "wlan0 Configuration"
depends on ADK_SIMPLE_NETWORK_CONFIG
depends on ADK_TARGET_SYSTEM_LEMOTE_YEELONG || \
	ADK_TARGET_SYSTEM_RASPBERRY_PI || \
	ADK_TARGET_SYSTEM_CUBOX_I || \
	ADK_TARGET_SYSTEM_IBM_X40

choice
prompt "Type"
default SIMPLE_NETWORK_CONFIG_WLAN0_TYPE_NONE

config SIMPLE_NETWORK_CONFIG_WLAN0_TYPE_NONE
	bool "None"

config SIMPLE_NETWORK_CONFIG_WLAN0_TYPE_DHCP
	bool "DHCP"

config SIMPLE_NETWORK_CONFIG_WLAN0_TYPE_STATIC
	bool "static IP configuration"

endchoice
endmenu

menu "eth1 Configuration"
depends on ADK_SIMPLE_NETWORK_CONFIG && \
	!ADK_TARGET_SYSTEM_LEMOTE_YEELONG && \
	!ADK_TARGET_SYSTEM_RASPBERRY_PI && \
	!ADK_TARGET_SYSTEM_CUBOX_I && \
	!ADK_TARGET_SYSTEM_IBM_X40

choice
	prompt "Type"
	default SIMPLE_NETWORK_CONFIG_ETH1_TYPE_NONE

config SIMPLE_NETWORK_CONFIG_ETH1_TYPE_NIC
	bool "NIC / DHCP"

config SIMPLE_NETWORK_CONFIG_ETH1_TYPE_NIC_MANUAL
	bool "NIC / manual IP"

config SIMPLE_NETWORK_CONFIG_ETH1_TYPE_BRIDGE_IP
	bool "Bridge with IP"

config SIMPLE_NETWORK_CONFIG_ETH1_TYPE_BRIDGE
	bool "Bridge w/o IP"

config SIMPLE_NETWORK_CONFIG_ETH1_TYPE_NONE
	bool "None"
endchoice

config SIMPLE_NETWORK_CONFIG_ETH1_IP
	depends on SIMPLE_NETWORK_CONFIG_ETH1_TYPE_NIC_MANUAL || SIMPLE_NETWORK_CONFIG_ETH1_TYPE_BRIDGE_IP
	string "eth1 IP Address"
	default "192.168.1.2"

config SIMPLE_NETWORK_CONFIG_ETH1_NM
	depends on SIMPLE_NETWORK_CONFIG_ETH1_TYPE_NIC_MANUAL || SIMPLE_NETWORK_CONFIG_ETH1_TYPE_BRIDGE_IP
	string "eth1 Netmask"
	default "255.255.255.0"

config SIMPLE_NETWORK_CONFIG_ETH1_GW
	depends on SIMPLE_NETWORK_CONFIG_ETH1_TYPE_NIC_MANUAL
	depends on !SIMPLE_NETWORK_CONFIG_ETH0_GW
	string "eth1 Gateway"
	default "" if !SIMPLE_NETWORK_CONFIG_ETH0_GW
	default "192.168.1.1"

config SIMPLE_NETWORK_CONFIG_ETH1_BRIDGE
	depends on SIMPLE_NETWORK_CONFIG_ETH1_TYPE_BRIDGE || SIMPLE_NETWORK_CONFIG_ETH1_TYPE_BRIDGE_IP
	string "Bridge ports"
	default "eth1 eth2"

config SIMPLE_NETWORK_CONFIG_ETH1_BC
	depends on SIMPLE_NETWORK_CONFIG_ETH1_TYPE_NIC_MANUAL || SIMPLE_NETWORK_CONFIG_ETH1_TYPE_BRIDGE_IP
	string
	default "+"

endmenu

menu "DNS Configuration"
depends on ADK_SIMPLE_NETWORK_CONFIG

config SIMPLE_NETWORK_CONFIG_RESOLV
	string "Nameserver"
	default "10.0.2.3"

endmenu