summaryrefslogtreecommitdiff
path: root/target/config/Config.in.runtime
blob: a91c2c7c277493bb7b1a466b1ecc1d8b5ff274ec (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
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
# 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.

choice
prompt "init system"
depends on !ADK_APPLIANCE_TOOLCHAIN
default ADK_RUNTIME_INIT_SYSV if ADK_PACKAGE_BUSYBOX

config ADK_RUNTIME_INIT_SYSV
	bool "Use busybox init"
	depends on ADK_PACKAGE_BUSYBOX

config ADK_RUNTIME_INIT_SYSVINIT
	bool "Use system V init"
	select ADK_PACKAGE_SYSVINIT
	select ADK_PACKAGE_AGETTY
	select ADK_PACKAGE_GAWK
	select ADK_PACKAGE_IP
	select ADK_PACKAGE_MOUNT

config ADK_RUNTIME_INIT_S6
	bool "Use s6 init and supervision"
	select ADK_PACKAGE_S6
	select ADK_PACKAGE_S6_PORTABLE_UTILS
	select ADK_PACKAGE_S6_LINUX_UTILS

config ADK_RUNTIME_INIT_SYSTEMD
	bool "Use systemd init and supervision"
	select ADK_PACKAGE_SYSTEMD
	select ADK_PACKAGE_DBUS
	select ADK_PACKAGE_DBUS_WITH_SYSTEMD
	depends on ADK_TARGET_LIB_GLIBC || ADK_TARGET_LIB_UCLIBC_NG

config ADK_RUNTIME_INIT_SIMPLEINIT
	bool "Use a very simple init"
	select ADK_PACKAGE_SIMPLEINIT

endchoice

choice
prompt "system for /dev management"
depends on !ADK_APPLIANCE_TOOLCHAIN
default ADK_RUNTIME_DEV_STATIC if ADK_TARGET_WITHOUT_MMU || ADK_TARGET_ARCH_CRIS
default ADK_RUNTIME_DEV_MDEV

config ADK_RUNTIME_DEV_MDEV
	bool "Use mdev"
	select ADK_KERNEL_DEVTMPFS
	select ADK_KERNEL_DEVTMPFS_MOUNT
	depends on ADK_PACKAGE_BUSYBOX
	depends on !ADK_RUNTIME_INIT_SYSTEMD

config ADK_RUNTIME_DEV_UDEV
	bool "Use udev"
	select ADK_PACKAGE_UDEV
	# needs depmod for module dependency generation on host
	select ADK_HOST_BUILD_KMOD
	select ADK_KERNEL_DEVTMPFS
	select ADK_KERNEL_DEVTMPFS_MOUNT
	depends on !ADK_RUNTIME_INIT_SYSTEMD

config ADK_RUNTIME_DEV_SYSTEMD_UDEV
	bool "Use systemd udev"
	select ADK_KERNEL_DEVTMPFS
	select ADK_KERNEL_DEVTMPFS_MOUNT
	depends on ADK_RUNTIME_INIT_SYSTEMD

config ADK_RUNTIME_DEV_STATIC
	bool "Use static /dev"
	depends on !ADK_RUNTIME_INIT_SYSTEMD

endchoice

choice
prompt "base applications"
depends on !ADK_APPLIANCE_TOOLCHAIN
default ADK_RUNTIME_BASE_BUSYBOX

config ADK_RUNTIME_BASE_BUSYBOX
	bool "Use busybox"
	select ADK_PACKAGE_BUSYBOX

config ADK_RUNTIME_BASE_TOYBOX
	bool "Use toybox"
	select ADK_PACKAGE_TOYBOX

config ADK_RUNTIME_BASE_COREUTILS
	bool "Use coreutils"
	select ADK_PACKAGE_COREUTILS
	select ADK_PACKAGE_GREP
	select ADK_PACKAGE_FIND

endchoice

config ADK_RUNTIME_LOAD_KERNEL_MODULES
	bool "load all installed kernel modules on bootup"
	default y
	help
	  If you don't want to load all installed kernel modules
	  by default on bootup, disable this option.

config ADK_RUNTIME_FIX_PERMISSION
	bool "fix permissions for target files (suid bit, ..)"
	select ADK_HOST_BUILD_FAKEROOT
	depends on ADK_TARGET_ROOTFS_GENIMAGE
	help
	  Use fakeroot to fix permissions for target dir before image
	  creation.

config ADK_RUNTIME_SSH_PUBKEY
	string "SSH public key (root user only)"
	depends on ADK_PACKAGE_OPENSSH_SERVER || ADK_PACKAGE_DROPBEAR
	default ""
	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 "$1$bJoW4DmS$7fUVat.9iFSAePzA4j4Jm."
	help
	  Predefine the root password enabled in the built image.
	  Use ./host_*/usr/bin/mkcrypt to generate the hash.
	  Default password is linux123

config ADK_RUNTIME_ADDUSER
	bool "add an user"
	default n
	help
	  Enable this option to add an unprivileged user.
	  Fixed UID/GID 100 is used. A group with the same name is added.

config ADK_RUNTIME_USER_NAME
	string "user name"
	default "adk"
	depends on ADK_RUNTIME_ADDUSER

config ADK_RUNTIME_USER_PASSWORD
	string "user password"
	default "$1$bJoW4DmS$7fUVat.9iFSAePzA4j4Jm."
	depends on ADK_RUNTIME_ADDUSER
	help
	  Predefine the user password enabled in the built image.
	  Use ./host_*/usr/bin/mkcrypt to generate the hash.
	  Default password is linux123

config ADK_RUNTIME_USER_HOME
	string "user home directory"
	default "/home/adk"
	depends on ADK_RUNTIME_ADDUSER
	help
	  Set the home directory to use.

config ADK_RUNTIME_USER_SHELL
	string "user shell"
	default "/bin/sh"
	depends on ADK_RUNTIME_ADDUSER
	help
	  Set the shell to use.

config ADK_RUNTIME_START_SERVICES
	bool "start services by default"
	default n
	help
	  Enable this option to start selected services on boot.

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

config ADK_RUNTIME_TMPFS_SIZE
	string "size of /tmp in memory (kB)"
	default "32768" if ADK_TARGET_SYSTEM_IBM_X40
	default "32768" if ADK_TARGET_SYSTEM_SGI_O2
	default "32768" if ADK_TARGET_SYSTEM_RASPBERRY_PI
	default "32768" if ADK_TARGET_SYSTEM_RASPBERRY_PI2
	default "32768" if ADK_TARGET_SYSTEM_RASPBERRY_PI3
	default "32768" if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
	default "16384" if ADK_TARGET_SYSTEM_QEMU_X86_64
	default "16384" if ADK_TARGET_SYSTEM_QEMU_X86
	default "16384" if ADK_TARGET_VBOX
	default "16384" if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
	default "8192" if ADK_TARGET_SYSTEM_MIKROTIK_RB532
	default "8192" if ADK_TARGET_SYSTEM_SGI_INDY
	default "1024"
	depends on !ADK_RUNTIME_INIT_SIMPLEINIT && !ADK_RUNTIME_INIT_SYSTEMD
	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_RUNTIME_ENABLE_LOCALE
	bool "enable locale (i18n) support"
	select ADK_TARGET_LIBC_ICONV if ADK_TARGET_LIB_UCLIBC_NG
	select BUSYBOX_LOCALE_SUPPORT
	help
	  Enable locale support for the target.

config ADK_RUNTIME_DEFAULT_LOCALE
	string "default locale"
	depends on ADK_RUNTIME_ENABLE_LOCALE
	default "de_DE"
	help
	  Set locale to be set in the target system as default.

choice
prompt "bootup messages from kernel"

config ADK_RUNTIME_VERBOSE_KERNEL_VGA_ONLY
	bool "output via VGA only"
	depends on ADK_TARGET_WITH_VGA

config ADK_RUNTIME_VERBOSE_KERNEL_SERIAL_ONLY
	bool "output via serial console only"
	depends on ADK_TARGET_WITH_SERIAL \
		|| ADK_TARGET_QEMU \
		|| ADK_TARGET_SIM

config ADK_RUNTIME_VERBOSE_KERNEL_VGA_SERIAL
	bool "output via VGA and serial console"
	depends on ADK_TARGET_WITH_SERIAL && \
		   ADK_TARGET_WITH_VGA
	help
	  Output is via VGA and serial console. 
	  Init can use only serial via /dev/console.

config ADK_RUNTIME_VERBOSE_KERNEL_SERIAL_VGA
	bool "output via serial console and VGA"
	depends on ADK_TARGET_WITH_SERIAL && \
		   ADK_TARGET_WITH_VGA
	help
	  Output is via serial console and VGA. 
	  Init can use only VGA via /dev/console.

config ADK_RUNTIME_QUIET_KERNEL
	bool "no output from the kernel"
	help
	  Make bootup quiet without messages from the kernel.

endchoice

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
	bool "output via VGA"
	depends on ADK_TARGET_WITH_VGA
	depends on ADK_RUNTIME_VERBOSE_KERNEL_SERIAL_VGA || \
		   ADK_RUNTIME_VERBOSE_KERNEL_VGA_ONLY || \
		   ADK_RUNTIME_QUIET_KERNEL

config ADK_RUNTIME_VERBOSE_INIT_SERIAL
	bool "output via serial"
	depends on ADK_TARGET_WITH_SERIAL \
		|| ADK_TARGET_QEMU \
		|| ADK_TARGET_SIM
	depends on ADK_RUNTIME_VERBOSE_KERNEL_VGA_SERIAL || \
		   ADK_RUNTIME_VERBOSE_KERNEL_SERIAL_ONLY || \
		   ADK_RUNTIME_QUIET_KERNEL

config ADK_RUNTIME_QUIET_INIT
	bool "no output"

endchoice

choice
prompt "start getty or shell after bootup"
default ADK_RUNTIME_GETTY

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

config ADK_RUNTIME_SHELL
	bool "start a shell after bootup"
	help
	  Start a shell after bootup.

config ADK_RUNTIME_NONE
	bool "start no shell nor getty after bootup"
	help
	  Do not start a shell or getty after bootup.

endchoice

config ADK_RUNTIME_GETTY_VGA
	bool "start getty on VGA console (tty1-tty6)"
	depends on ADK_RUNTIME_GETTY && ADK_TARGET_WITH_VGA
	default y if ADK_TARGET_QEMU_WITH_GRAPHIC_ONLY
	default y if ADK_TARGET_QEMU_WITH_GRAPHIC
	default y if ADK_TARGET_SYSTEM_RASPBERRY_PI
	default y if ADK_TARGET_SYSTEM_RASPBERRY_PI2
	default y if ADK_TARGET_SYSTEM_RASPBERRY_PI3
	default y if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
	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 y if ADK_TARGET_MODEL_PCENGINES_ALIX1C
	default y if ADK_TARGET_VBOX
	default n
	help
          Start getty on VGA console. (tty1-tty6)

config ADK_RUNTIME_GETTY_SERIAL
	bool "start getty on serial console"
	depends on ADK_RUNTIME_GETTY && ( ADK_TARGET_WITH_SERIAL \
		|| ADK_TARGET_QEMU \
		|| ADK_TARGET_SIM )
	default n if ADK_TARGET_QEMU_WITH_GRAPHIC_ONLY
	default n if ADK_TARGET_QEMU_WITH_GRAPHIC
	default n if ADK_TARGET_SYSTEM_RASPBERRY_PI
	default n if ADK_TARGET_SYSTEM_RASPBERRY_PI2
	default n if ADK_TARGET_SYSTEM_RASPBERRY_PI3
	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 n if ADK_TARGET_MODEL_PCENGINES_ALIX1C
	default n if ADK_TARGET_VBOX
	default y
	help
	  Start getty on serial console.

config ADK_RUNTIME_CONSOLE_VGA_DEVICE
	string "VGA console device"
	depends on ADK_TARGET_WITH_VGA
	default "tty0"

config ADK_RUNTIME_CONSOLE_SERIAL_DEVICE
	string "serial console device"
	depends on ADK_TARGET_WITH_SERIAL \
		|| ADK_TARGET_QEMU \
		|| ADK_TARGET_SIM
	default "hvc0" if ADK_TARGET_SYSTEM_QEMU_PPC64
	default "ttyBF0" if ADK_TARGET_ARCH_BFIN
	default "ttyUL0" if ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800 \
				|| ADK_TARGET_SYSTEM_NUMATO_MIMASV2
	default "ttyARC0" if ADK_TARGET_SYSTEM_NSIM_ARCV1 \
				|| ADK_TARGET_SYSTEM_NSIM_ARCV2
	default "ttyAMA0" if ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB \
				|| ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB_NOMMU \
				|| ADK_TARGET_SYSTEM_QEMU_ARM_REALVIEW_EB_MPCORE \
				|| ADK_TARGET_SYSTEM_QEMU_ARM_VEXPRESS_A9 \
				|| ADK_TARGET_SYSTEM_ARM_FM \
				|| ADK_TARGET_SYSTEM_QEMU_AARCH64
	default "ttySC1" if ADK_TARGET_SYSTEM_QEMU_SH
	default "ttySC0" if ADK_TARGET_SYSTEM_SIM_H8300H
	default "ttymxc0" if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
	default "ttyAMA0" if ADK_TARGET_SYSTEM_RASPBERRY_PI
	default "ttyAMA0" if ADK_TARGET_SYSTEM_RASPBERRY_PI2
	default "ttyDA1" if ADK_TARGET_SYSTEM_QEMU_METAG
	default "ttyS2" if ADK_TARGET_SYSTEM_KINETIS_K70
	default "ttyPS0" if ADK_TARGET_SYSTEM_QEMU_ARM_XILINX_ZYNQ
	default "ttysclp0" if ADK_TARGET_SYSTEM_QEMU_S390
	default "ttyO2" if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
	default "ttyS4" if ADK_TARGET_SYSTEM_IMGTEC_CI20
	default "ttyS0"

config ADK_RUNTIME_CONSOLE_SERIAL_SPEED
	string "serial console speed"
	depends on ADK_TARGET_WITH_SERIAL \
		|| ADK_TARGET_QEMU \
		|| ADK_TARGET_SIM
	default "9600" if ADK_TARGET_SYSTEM_FON_FON2100
	default "9600" if ADK_TARGET_SYSTEM_SGI_INDY
	default "9600" if ADK_TARGET_SYSTEM_SGI_O2
	default "38400" if ADK_TARGET_SYSTEM_PCENGINES_WRAP
	default "38400" if ADK_TARGET_SYSTEM_ANDES_AG101P
	default "115200"

config ADK_RUNTIME_KBD_LAYOUT
	string "keyboard layout for the embedded system"
	depends on ADK_TARGET_WITH_INPUT
	default "de-latin1-nodeadkeys"
	help
	  Predefine the keyboard layout for the embedded system.
	  For example use de-latin1-nodeadkeys.

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

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

config ADK_ROOTSH_HUSH
	bool "hush (busybox shell compatible with non-MMU systems)"
	select BUSYBOX_HUSH if !ADK_APPLIANCE_TOOLCHAIN
	select BUSYBOX_SH_IS_HUSH if !ADK_APPLIANCE_TOOLCHAIN
	help
	  hush shell from busybox.

config ADK_ROOTSH_SASH
	bool "sash (Shell compatible with non-MMU systems)"
	select ADK_PACKAGE_SASH if !ADK_APPLIANCE_TOOLCHAIN
	help
	  standalone shell.

config ADK_ROOTSH_ASH
	bool "ash (busybox shell)"
	select BUSYBOX_ASH
	select BUSYBOX_SH_IS_ASH
	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
	bool "bash (GNU Bourne-Again Shell)"
	select ADK_PACKAGE_BASH
	help
	  Use GNU bash as standard login shell for the superuser.

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

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

endchoice

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

config ADK_BINSH_MKSH
	bool "mksh (MirBSD Korn Shell)"
	select ADK_PACKAGE_MKSH if !ADK_APPLIANCE_TOOLCHAIN
	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_HUSH
	bool "hush (busybox)"
	select ADK_PACKAGE_HUSH if !ADK_APPLIANCE_TOOLCHAIN
	help
	  hush shell.

config ADK_BINSH_SASH
	bool "sash (Standalone Shell)"
	select ADK_PACKAGE_SASH if !ADK_APPLIANCE_TOOLCHAIN
	help
	  sash shell.

config ADK_BINSH_ASH
	bool "ash (busybox)"
	select BUSYBOX_ASH
	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
	bool "bash (GNU Bourne-Again Shell)"
	select ADK_PACKAGE_BASH
	help
	  Use GNU bash as system shell. This is discouraged due to
	  its size and slowness.

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

endchoice

# workaround for USB ethernet f.e. Raspberry Pi 2/3
config ADK_RUNTIME_WAIT_FOR_ETHERNET
	bool
	default y if ADK_TARGET_SYSTEM_RASPBERRY_PI2
	default y if ADK_TARGET_SYSTEM_RASPBERRY_PI3

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

choice
prompt "Type"
default ADK_SIMPLE_NETWORK_CONFIG_ETH0_TYPE_MANUAL

config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
	bool "static IP configuration"

config ADK_SIMPLE_NETWORK_CONFIG_ETH0_DHCP
	bool "DHCP"

config ADK_SIMPLE_NETWORK_CONFIG_ETH0_NONE
	bool "no configuration"

endchoice

choice
prompt "configure default Gateway"
depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC

config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITH_GW
	bool "with Gateway"

config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITHOUT_GW
	bool "without Gateway"

endchoice

config ADK_SIMPLE_NETWORK_CONFIG_ETH0_IP
	string "IP Address"
	depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
	default "10.0.0.2"

config ADK_SIMPLE_NETWORK_CONFIG_ETH0_NM
	string "Netmask"
	depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
	default "255.255.255.0"

config ADK_SIMPLE_NETWORK_CONFIG_ETH0_GW
	string "Gateway"
	depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITH_GW
	default "10.0.0.1"

endmenu

menu "wlan0 Configuration"
depends on ADK_SIMPLE_NETWORK_CONFIG
depends on ADK_TARGET_WITH_WIFI

choice
prompt "Type"
default ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NONE

config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NONE
	bool "No configuration"

config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
	bool "static IP configuration"

config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
	bool "DHCP"

endchoice

choice
prompt "configure default Gateway"
depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC

config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITH_GW
	bool "with Gateway"

config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITHOUT_GW
	bool "without Gateway"

endchoice

config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_IP
	string "IP Address"
	depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
	default "192.168.1.2"

config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NM
	string "Netmask"
	depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
	default "255.255.255.0"

config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_GW
	string "Gateway"
	depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITH_GW
	default "192.168.1.1"

endmenu

choice
prompt "WLAN Security"
depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC || ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
default ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NOSEC

config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NOSEC
	bool "No security"

config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
	bool "WPA2"

endchoice

config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_SSID
	string "SSID"
	depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
	default ""

config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_PW
	string "Password"
	depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
	default ""

menu "eth1 Configuration"
depends on ADK_SIMPLE_NETWORK_CONFIG && \
	ADK_TARGET_SYSTEM_MIKROTIK_RB532 

choice
prompt "Type"
default ADK_SIMPLE_NETWORK_CONFIG_ETH1_NONE

config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
	bool "static IP configuration"

config ADK_SIMPLE_NETWORK_CONFIG_ETH1_DHCP
	bool "DHCP"

config ADK_SIMPLE_NETWORK_CONFIG_ETH1_NONE
	bool "no configuration"

endchoice

choice
prompt "configure default Gateway"
depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC

config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITH_GW
	bool "with Gateway"

config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITHOUT_GW
	bool "without Gateway"

endchoice

config ADK_SIMPLE_NETWORK_CONFIG_ETH1_IP
	string "IP Address"
	depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
	default "172.16.0.2"

config ADK_SIMPLE_NETWORK_CONFIG_ETH1_NM
	string "Netmask"
	depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
	default "255.255.0.0"

config ADK_SIMPLE_NETWORK_CONFIG_ETH1_GW
	string "Gateway"
	depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITH_GW
	default "172.16.0.1"

endmenu

config ADK_SIMPLE_NETWORK_CONFIG_NS
	string "Nameserver"
	depends on ADK_SIMPLE_NETWORK_CONFIG
	depends on !ADK_SIMPLE_NETWORK_CONFIG_ETH0_DHCP
	depends on !ADK_SIMPLE_NETWORK_CONFIG_ETH1_DHCP
	depends on !ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
	default "10.0.0.1"

config ADK_SIMPLE_NETWORK_CONFIG_PROXY
	string "HTTP-Proxy (f.e. http://10.0.0.2:8080)"
	depends on ADK_SIMPLE_NETWORK_CONFIG