remove kodi specific stuff from console handling
[openadk.git] / target / config / Config.in.runtime
blob0fc9b54297a6e450da90b651983afa8a2b59ec95
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 config ADK_RUNTIME_HOSTNAME
5         string "hostname for the embedded system"
6         default "openadk"
7         help
8           Set your target hostname.
10 config ADK_RUNTIME_SSH_PUBKEY
11         string "SSH public key (root user only)"
12         depends on ADK_PACKAGE_OPENSSH_SERVER || ADK_PACKAGE_DROPBEAR
13         default ""
14         help
15           Paste your generated SSH public key here and it will be embedded into
16           the built image, so you can use it to login instantly.
18 config ADK_RUNTIME_PASSWORD
19         string "root password for the embedded system"
20         default "$1$bJoW4DmS$7fUVat.9iFSAePzA4j4Jm."
21         help
22           Predefine the root password enabled in the built image.
23           Use ./host_*/usr/bin/mkcrypt to generate the hash.
24           Default password is linux123
26 config ADK_RUNTIME_ADDUSER
27         bool "add an user"
28         default n
29         help
30           Enable this option to add an unprivileged user.
31           Fixed UID/GID 100 is used. A group with the same name is added.
33 config ADK_RUNTIME_USER_NAME
34         string "user name"
35         default "adk"
36         depends on ADK_RUNTIME_ADDUSER
38 config ADK_RUNTIME_USER_PASSWORD
39         string "user password"
40         default "$1$bJoW4DmS$7fUVat.9iFSAePzA4j4Jm."
41         depends on ADK_RUNTIME_ADDUSER
42         help
43           Predefine the user password enabled in the built image.
44           Use ./host_*/usr/bin/mkcrypt to generate the hash.
45           Default password is linux123
47 config ADK_RUNTIME_USER_HOME
48         string "user home directory"
49         default "/home/adk"
50         depends on ADK_RUNTIME_ADDUSER
51         help
52           Set the home directory to use.
54 config ADK_RUNTIME_USER_SHELL
55         string "user shell"
56         default "/bin/sh"
57         depends on ADK_RUNTIME_ADDUSER
58         help
59           Set the shell to use.
61 config ADK_RUNTIME_START_SERVICES
62         bool "start services by default"
63         default n
64         help
65           Enable this option to start selected services on boot.
67 source "target/config/Config.in.scripts"
69 config ADK_RUNTIME_TMPFS_SIZE
70         string "size of /tmp in memory (kB)"
71         default "16384" if ADK_TARGET_QEMU
72         default "16384" if ADK_TARGET_VBOX
73         default "16384" if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
74         default "32768" if ADK_TARGET_SYSTEM_IBM_X40
75         default "32768" if ADK_TARGET_SYSTEM_RASPBERRY_PI
76         default "32768" if ADK_TARGET_SYSTEM_RASPBERRY_PI2
77         default "32768" if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
78         default "8192" if ADK_TARGET_SYSTEM_MIKROTIK_RB532
79         default "2048"
80         help
81           Size of /tmp in memory in Kilobyte.
83 config ADK_RUNTIME_TIMEZONE
84         string "timezone for the embedded system"
85         default "Europe/Berlin"
86         help
87           Predefine the timezone for the embedded system.
89 choice
90 prompt "bootup messages from kernel"
92 config ADK_RUNTIME_VERBOSE_KERNEL_VGA_ONLY
93         bool "output via VGA only"
94         depends on ADK_TARGET_WITH_VGA
96 config ADK_RUNTIME_VERBOSE_KERNEL_SERIAL_ONLY
97         bool "output via serial console only"
98         depends on ADK_TARGET_WITH_SERIAL
100 config ADK_RUNTIME_VERBOSE_KERNEL_VGA_SERIAL
101         bool "output via VGA and serial console"
102         depends on ADK_TARGET_WITH_SERIAL && \
103                    ADK_TARGET_WITH_VGA
104         help
105           Output is via VGA and serial console. 
106           Init can use only serial via /dev/console.
108 config ADK_RUNTIME_VERBOSE_KERNEL_SERIAL_VGA
109         bool "output via serial console and VGA"
110         depends on ADK_TARGET_WITH_SERIAL && \
111                    ADK_TARGET_WITH_VGA
112         help
113           Output is via serial console and VGA. 
114           Init can use only VGA via /dev/console.
116 config ADK_RUNTIME_QUIET_KERNEL
117         bool "no output from the kernel"
118         help
119           Make bootup quiet without messages from the kernel.
121 endchoice
123 choice
124 prompt "bootup messages from initscripts"
125 default ADK_RUNTIME_VERBOSE_INIT_VGA if ADK_TARGET_WITH_VGA
126 default ADK_RUNTIME_VERBOSE_INIT_SERIAL
128 config ADK_RUNTIME_VERBOSE_INIT_VGA
129         bool "output via VGA"
130         depends on ADK_TARGET_WITH_VGA
131         depends on ADK_RUNTIME_VERBOSE_KERNEL_SERIAL_VGA || \
132                    ADK_RUNTIME_VERBOSE_KERNEL_VGA_ONLY || \
133                    ADK_RUNTIME_QUIET_KERNEL
135 config ADK_RUNTIME_VERBOSE_INIT_SERIAL
136         bool "output via serial"
137         depends on ADK_TARGET_WITH_SERIAL
138         depends on ADK_RUNTIME_VERBOSE_KERNEL_VGA_SERIAL || \
139                    ADK_RUNTIME_VERBOSE_KERNEL_SERIAL_ONLY || \
140                    ADK_RUNTIME_QUIET_KERNEL
142 config ADK_RUNTIME_QUIET_INIT
143         bool "no output"
145 endchoice
147 choice
148 prompt "start getty or shell after bootup"
149 default ADK_RUNTIME_GETTY
151 config ADK_RUNTIME_GETTY
152         bool "start a getty after bootup"
153         help
154           Start a getty after bootup.
156 config ADK_RUNTIME_SHELL
157         bool "start a shell after bootup"
158         help
159           Start a shell after bootup.
161 config ADK_RUNTIME_NONE
162         bool "start no shell nor getty after bootup"
163         help
164           Do not start a shell or getty after bootup.
166 endchoice
168 config ADK_RUNTIME_GETTY_VGA
169         bool "start getty on VGA console (tty1-tty6)"
170         depends on ADK_RUNTIME_GETTY && ADK_TARGET_WITH_VGA
171         default y if ADK_TARGET_QEMU_WITH_GRAPHIC_ONLY
172         default y if ADK_TARGET_QEMU_WITH_GRAPHIC
173         default y if ADK_TARGET_SYSTEM_RASPBERRY_PI
174         default y if ADK_TARGET_SYSTEM_RASPBERRY_PI2
175         default y if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
176         default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
177         default y if ADK_TARGET_SYSTEM_IBM_X40
178         default y if ADK_TARGET_SYSTEM_ARANYM_M68K
179         default y if ADK_TARGET_VBOX
180         default n
181         help
182           Start getty on VGA console. (tty1-tty6)
184 config ADK_RUNTIME_GETTY_SERIAL
185         bool "start getty on serial console"
186         depends on ADK_RUNTIME_GETTY && ADK_TARGET_WITH_SERIAL
187         default n if ADK_TARGET_QEMU_WITH_GRAPHIC_ONLY
188         default n if ADK_TARGET_QEMU_WITH_GRAPHIC
189         default n if ADK_TARGET_SYSTEM_RASPBERRY_PI
190         default n if ADK_TARGET_SYSTEM_RASPBERRY_PI2
191         default n if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
192         default n if ADK_TARGET_SYSTEM_IBM_X40
193         default n if ADK_TARGET_SYSTEM_ARANYM_M68K
194         default n if ADK_TARGET_VBOX
195         default y
196         help
197           Start getty on serial console.
199 config ADK_RUNTIME_CONSOLE_VGA_DEVICE
200         string "VGA console device"
201         depends on ADK_TARGET_WITH_VGA
202         default "tty1" if ADK_TARGET_SYSTEM_RASPBERRY_PI
203         default "tty1" if ADK_TARGET_SYSTEM_RASPBERRY_PI2
204         default "tty0"
206 config ADK_RUNTIME_CONSOLE_SERIAL_DEVICE
207         string "serial console device"
208         depends on ADK_TARGET_WITH_SERIAL
209         default "hvc0" if ADK_TARGET_SYSTEM_QEMU_PPC64
210         default "ttyUL0" if ADK_TARGET_QEMU_MICROBLAZE_MODEL_S3ADSP1800
211         default "ttyAMA0" if ADK_TARGET_QEMU_ARM_MODEL_VERSATILEPB || ADK_TARGET_QEMU_ARM_MODEL_VEXPRESS_A9 || ADK_TARGET_SYSTEM_ARM_FM || ADK_TARGET_SYSTEM_QEMU_AARCH64
212         default "ttySC1" if ADK_TARGET_SYSTEM_QEMU_SH
213         default "ttymxc0" if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
214         default "ttyAMA0" if ADK_TARGET_SYSTEM_RASPBERRY_PI
215         default "ttyAMA0" if ADK_TARGET_SYSTEM_RASPBERRY_PI2
216         default "ttyS0"
218 config ADK_RUNTIME_CONSOLE_SERIAL_SPEED
219         string "serial console speed"
220         depends on ADK_TARGET_WITH_SERIAL
221         default "9600" if ADK_TARGET_SYSTEM_FON_FON2100
222         default "38400" if ADK_TARGET_SYSTEM_PCENGINES_WRAP     
223         default "115200"
225 config ADK_RUNTIME_KBD_LAYOUT
226         string "keyboard layout for the embedded system"
227         depends on ADK_TARGET_WITH_INPUT
228         default "de-latin1-nodeadkeys"
229         help
230           Predefine the keyboard layout for the embedded system.
231           For example use de-latin1-nodeadkeys.
233 choice
234 prompt "initial login shell for the root user"
235 default ADK_ROOTSH_SASH if ADK_TARGET_UCLINUX
236 default ADK_ROOTSH_MKSH
238 config ADK_ROOTSH_MKSH
239         bool "mksh (MirBSD Korn Shell)"
240         select ADK_PACKAGE_MKSH if !ADK_TOOLCHAIN_ONLY
241         help
242           Use mksh (a Korn Shell variant) as standard login shell
243           for the superuser.
245 config ADK_ROOTSH_SASH
246         bool "sash (Shell compatible with non-MMU systems)"
247         select ADK_PACKAGE_SASH if !ADK_TOOLCHAIN_ONLY
248         help
249           standalone shell.
251 config ADK_ROOTSH_HUSH
252         bool "hush (Shell compatible with non-MMU systems)"
253         select ADK_PACKAGE_HUSH if !ADK_TOOLCHAIN_ONLY
254         help
255           hush shell from busybox.
257 config ADK_ROOTSH_ASH
258         bool "ash (busybox)"
259         select BUSYBOX_ASH
260         help
261           Use the minimalistic ash variant that is part of busybox
262           as standard login shell for the superuser. This is the
263           default, but discouraged due to its frugality.
265 config ADK_ROOTSH_BASH
266         bool "bash (GNU Bourne-Again Shell)"
267         select ADK_PACKAGE_BASH
268         help
269           Use GNU bash as standard login shell for the superuser.
271 config ADK_ROOTSH_TCSH
272         bool "tcsh (Tenex C Shell)"
273         select ADK_PACKAGE_TCSH
274         help
275           Use tcsh (a C Shell variant) as standard login shell
276           for the superuser.
278 config ADK_ROOTSH_ZSH
279         bool "zsh (The Z Shell)"
280         select ADK_PACKAGE_ZSH
281         help
282           Use zsh as standard login shell for the superuser.
284 endchoice
286 choice
287 prompt "system /bin/sh (POSIX script shell)"
288 default ADK_BINSH_SASH if ADK_TARGET_UCLINUX
289 default ADK_BINSH_MKSH
291 config ADK_BINSH_MKSH
292         bool "mksh (MirBSD Korn Shell)"
293         select ADK_PACKAGE_MKSH if !ADK_TOOLCHAIN_ONLY
294         help
295           Use mksh (a Korn Shell variant) as system shell, which is
296           both small and powerful, so quite suited for this task.
298 config ADK_BINSH_SASH
299         bool "sash (Standalone Shell)"
300         select ADK_PACKAGE_SASH if !ADK_TOOLCHAIN_ONLY
301         help
302           hush shell.
304 config ADK_BINSH_HUSH
305         bool "hush (busybox)"
306         select ADK_PACKAGE_HUSH if !ADK_TOOLCHAIN_ONLY
307         help
308           hush shell.
310 config ADK_BINSH_ASH
311         bool "ash (busybox)"
312         select BUSYBOX_ASH
313         help
314           Use the minimalistic ash variant that is part of busybox
315           as system shell. This is the default and rather small and
316           fast, but lacks scripting features.
318 config ADK_BINSH_BASH
319         bool "bash (GNU Bourne-Again Shell)"
320         select ADK_PACKAGE_BASH
321         help
322           Use GNU bash as system shell. This is discouraged due to
323           its size and slowness.
325 config ADK_BINSH_ZSH
326         bool "zsh (The Z Shell)"
327         select ADK_PACKAGE_ZSH
328         help
329           Use zsh as system shell. This is probably a bad idea.
331 endchoice
333 # workaround for USB ethernet f.e. Raspberry Pi2
334 config ADK_RUNTIME_WAIT_FOR_ETHERNET
335         bool
336         default y if ADK_TARGET_SYSTEM_RASPBERRY_PI2
338 config ADK_SIMPLE_NETWORK_CONFIG
339         bool "simple network configuration"
340         help
341           Manually change network config
342           
343 menu "eth0 Configuration"
344 depends on ADK_SIMPLE_NETWORK_CONFIG
346 choice
347 prompt "Type"
348 default ADK_SIMPLE_NETWORK_CONFIG_ETH0_TYPE_MANUAL
350 config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
351         bool "static IP configuration"
353 config ADK_SIMPLE_NETWORK_CONFIG_ETH0_DHCP
354         bool "DHCP"
356 config ADK_SIMPLE_NETWORK_CONFIG_ETH0_NONE
357         bool "no configuration"
359 endchoice
361 choice
362 prompt "configure default Gateway"
363 depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
365 config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITH_GW
366         bool "with Gateway"
368 config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITHOUT_GW
369         bool "without Gateway"
371 endchoice
373 config ADK_SIMPLE_NETWORK_CONFIG_ETH0_IP
374         string "IP Address"
375         depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
376         default "10.0.0.2"
378 config ADK_SIMPLE_NETWORK_CONFIG_ETH0_NM
379         string "Netmask"
380         depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
381         default "255.255.255.0"
383 config ADK_SIMPLE_NETWORK_CONFIG_ETH0_GW
384         string "Gateway"
385         depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITH_GW
386         default "10.0.0.1"
388 endmenu
390 menu "wlan0 Configuration"
391 depends on ADK_SIMPLE_NETWORK_CONFIG
392 depends on ADK_TARGET_WITH_WIFI
394 choice
395 prompt "Type"
396 default ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NONE
398 config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NONE
399         bool "No configuration"
401 config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
402         bool "static IP configuration"
404 config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
405         bool "DHCP"
407 endchoice
409 choice
410 prompt "configure default Gateway"
411 depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
413 config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITH_GW
414         bool "with Gateway"
416 config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITHOUT_GW
417         bool "without Gateway"
419 endchoice
421 config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_IP
422         string "IP Address"
423         depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
424         default "192.168.1.2"
426 config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NM
427         string "Netmask"
428         depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
429         default "255.255.255.0"
431 config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_GW
432         string "Gateway"
433         depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITH_GW
434         default "192.168.1.1"
436 endmenu
438 choice
439 prompt "WLAN Security"
440 depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC || ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
441 default ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NOSEC
443 config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NOSEC
444         bool "No security"
446 config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
447         bool "WPA2"
449 endchoice
451 config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_SSID
452         string "SSID"
453         depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
454         default ""
456 config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_PW
457         string "Password"
458         depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
459         default ""
461 menu "eth1 Configuration"
462 depends on ADK_SIMPLE_NETWORK_CONFIG && \
463         ADK_TARGET_SYSTEM_MIKROTIK_RB532 
465 choice
466 prompt "Type"
467 default ADK_SIMPLE_NETWORK_CONFIG_ETH1_NONE
469 config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
470         bool "static IP configuration"
472 config ADK_SIMPLE_NETWORK_CONFIG_ETH1_DHCP
473         bool "DHCP"
475 config ADK_SIMPLE_NETWORK_CONFIG_ETH1_NONE
476         bool "no configuration"
478 endchoice
480 choice
481 prompt "configure default Gateway"
482 depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
484 config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITH_GW
485         bool "with Gateway"
487 config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITHOUT_GW
488         bool "without Gateway"
490 endchoice
492 config ADK_SIMPLE_NETWORK_CONFIG_ETH1_IP
493         string "IP Address"
494         depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
495         default "172.16.0.2"
497 config ADK_SIMPLE_NETWORK_CONFIG_ETH1_NM
498         string "Netmask"
499         depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
500         default "255.255.0.0"
502 config ADK_SIMPLE_NETWORK_CONFIG_ETH1_GW
503         string "Gateway"
504         depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITH_GW
505         default "172.16.0.1"
507 endmenu
509 config ADK_SIMPLE_NETWORK_CONFIG_NS
510         string "Nameserver"
511         depends on ADK_SIMPLE_NETWORK_CONFIG
512         depends on !ADK_SIMPLE_NETWORK_CONFIG_ETH0_DHCP
513         depends on !ADK_SIMPLE_NETWORK_CONFIG_ETH1_DHCP
514         depends on !ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
515         default "10.0.0.1"
517 config ADK_SIMPLE_NETWORK_CONFIG_PROXY
518         string "HTTP-Proxy (f.e. http://10.0.0.2:8080)"
519         depends on ADK_SIMPLE_NETWORK_CONFIG
520         default ""