Config.in.runtime 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. config ADK_RUNTIME_HOSTNAME
  4. string "hostname for the embedded system"
  5. default "openadk"
  6. help
  7. Set your target hostname.
  8. choice
  9. prompt "init system"
  10. depends on !ADK_APPLIANCE_TOOLCHAIN
  11. default ADK_RUNTIME_INIT_SYSV
  12. config ADK_RUNTIME_INIT_SYSV
  13. bool "Use busybox init"
  14. config ADK_RUNTIME_INIT_S6
  15. bool "Use s6 init and supervision"
  16. select ADK_PACKAGE_S6
  17. select ADK_PACKAGE_S6_PORTABLE_UTILS
  18. select ADK_PACKAGE_S6_LINUX_UTILS
  19. config ADK_RUNTIME_INIT_SYSTEMD
  20. bool "Use systemd init and supervision"
  21. select ADK_PACKAGE_SYSTEMD
  22. depends on ADK_TARGET_LIB_GLIBC
  23. config ADK_RUNTIME_INIT_SIMPLEINIT
  24. bool "Use a very simple init"
  25. select ADK_PACKAGE_SIMPLEINIT
  26. endchoice
  27. choice
  28. prompt "system for /dev management"
  29. depends on !ADK_APPLIANCE_TOOLCHAIN
  30. default ADK_RUNTIME_DEV_STATIC if ADK_TARGET_WITHOUT_MMU || ADK_TARGET_ARCH_CRIS
  31. default ADK_RUNTIME_DEV_MDEV
  32. config ADK_RUNTIME_DEV_MDEV
  33. bool "Use mdev"
  34. select ADK_KERNEL_DEVTMPFS
  35. select ADK_KERNEL_DEVTMPFS_MOUNT
  36. config ADK_RUNTIME_DEV_UDEV
  37. bool "Use udev"
  38. select ADK_PACKAGE_UDEV
  39. # needs depmod for module dependency generation on host
  40. select ADK_HOST_BUILD_KMOD
  41. select ADK_KERNEL_DEVTMPFS
  42. select ADK_KERNEL_DEVTMPFS_MOUNT
  43. config ADK_RUNTIME_DEV_STATIC
  44. bool "Use static /dev"
  45. endchoice
  46. choice
  47. prompt "base applications"
  48. depends on !ADK_APPLIANCE_TOOLCHAIN
  49. default ADK_RUNTIME_BASE_BUSYBOX
  50. config ADK_RUNTIME_BASE_BUSYBOX
  51. bool "Use busybox"
  52. select ADK_PACKAGE_BUSYBOX
  53. config ADK_RUNTIME_BASE_TOYBOX
  54. bool "Use toybox"
  55. select ADK_PACKAGE_TOYBOX
  56. config ADK_RUNTIME_BASE_COREUTILS
  57. bool "Use coreutils"
  58. select ADK_PACKAGE_COREUTILS
  59. select ADK_PACKAGE_GREP
  60. select ADK_PACKAGE_FIND
  61. endchoice
  62. config ADK_RUNTIME_FIX_PERMISSION
  63. bool "fix permissions for target files (suid bit, ..)"
  64. select ADK_HOST_BUILD_FAKEROOT
  65. depends on ADK_TARGET_ROOTFS_GENIMAGE
  66. help
  67. Use fakeroot to fix permissions for target dir before image
  68. creation.
  69. config ADK_RUNTIME_SSH_PUBKEY
  70. string "SSH public key (root user only)"
  71. depends on ADK_PACKAGE_OPENSSH_SERVER || ADK_PACKAGE_DROPBEAR
  72. default ""
  73. help
  74. Paste your generated SSH public key here and it will be embedded into
  75. the built image, so you can use it to login instantly.
  76. config ADK_RUNTIME_PASSWORD
  77. string "root password for the embedded system"
  78. default "$1$bJoW4DmS$7fUVat.9iFSAePzA4j4Jm."
  79. help
  80. Predefine the root password enabled in the built image.
  81. Use ./host_*/usr/bin/mkcrypt to generate the hash.
  82. Default password is linux123
  83. config ADK_RUNTIME_ADDUSER
  84. bool "add an user"
  85. default n
  86. help
  87. Enable this option to add an unprivileged user.
  88. Fixed UID/GID 100 is used. A group with the same name is added.
  89. config ADK_RUNTIME_USER_NAME
  90. string "user name"
  91. default "adk"
  92. depends on ADK_RUNTIME_ADDUSER
  93. config ADK_RUNTIME_USER_PASSWORD
  94. string "user password"
  95. default "$1$bJoW4DmS$7fUVat.9iFSAePzA4j4Jm."
  96. depends on ADK_RUNTIME_ADDUSER
  97. help
  98. Predefine the user password enabled in the built image.
  99. Use ./host_*/usr/bin/mkcrypt to generate the hash.
  100. Default password is linux123
  101. config ADK_RUNTIME_USER_HOME
  102. string "user home directory"
  103. default "/home/adk"
  104. depends on ADK_RUNTIME_ADDUSER
  105. help
  106. Set the home directory to use.
  107. config ADK_RUNTIME_USER_SHELL
  108. string "user shell"
  109. default "/bin/sh"
  110. depends on ADK_RUNTIME_ADDUSER
  111. help
  112. Set the shell to use.
  113. config ADK_RUNTIME_START_SERVICES
  114. bool "start services by default"
  115. default n
  116. help
  117. Enable this option to start selected services on boot.
  118. source "target/config/Config.in.scripts"
  119. config ADK_RUNTIME_TMPFS_SIZE
  120. string "size of /tmp in memory (kB)"
  121. default "16384" if ADK_TARGET_VBOX
  122. default "16384" if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
  123. default "32768" if ADK_TARGET_SYSTEM_IBM_X40
  124. default "32768" if ADK_TARGET_SYSTEM_RASPBERRY_PI
  125. default "32768" if ADK_TARGET_SYSTEM_RASPBERRY_PI2
  126. default "32768" if ADK_TARGET_SYSTEM_RASPBERRY_PI3
  127. default "32768" if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
  128. default "8192" if ADK_TARGET_SYSTEM_MIKROTIK_RB532
  129. default "1024"
  130. depends on !ADK_RUNTIME_INIT_SIMPLEINIT
  131. help
  132. Size of /tmp in memory in Kilobyte.
  133. config ADK_RUNTIME_TIMEZONE
  134. string "timezone for the embedded system"
  135. default "Europe/Berlin"
  136. help
  137. Predefine the timezone for the embedded system.
  138. config ADK_RUNTIME_ENABLE_LOCALE
  139. bool "enable locale (i18n) support"
  140. select ADK_TARGET_LIBC_ICONV if ADK_TARGET_LIB_UCLIBC_NG
  141. select BUSYBOX_LOCALE_SUPPORT
  142. help
  143. Enable locale support for the target.
  144. config ADK_RUNTIME_DEFAULT_LOCALE
  145. string "default locale"
  146. depends on ADK_RUNTIME_ENABLE_LOCALE
  147. default "de_DE"
  148. help
  149. Set locale to be set in the target system as default.
  150. choice
  151. prompt "bootup messages from kernel"
  152. config ADK_RUNTIME_VERBOSE_KERNEL_VGA_ONLY
  153. bool "output via VGA only"
  154. depends on ADK_TARGET_WITH_VGA
  155. config ADK_RUNTIME_VERBOSE_KERNEL_SERIAL_ONLY
  156. bool "output via serial console only"
  157. depends on ADK_TARGET_WITH_SERIAL \
  158. || ADK_TARGET_QEMU \
  159. || ADK_TARGET_SIM
  160. config ADK_RUNTIME_VERBOSE_KERNEL_VGA_SERIAL
  161. bool "output via VGA and serial console"
  162. depends on ADK_TARGET_WITH_SERIAL && \
  163. ADK_TARGET_WITH_VGA
  164. help
  165. Output is via VGA and serial console.
  166. Init can use only serial via /dev/console.
  167. config ADK_RUNTIME_VERBOSE_KERNEL_SERIAL_VGA
  168. bool "output via serial console and VGA"
  169. depends on ADK_TARGET_WITH_SERIAL && \
  170. ADK_TARGET_WITH_VGA
  171. help
  172. Output is via serial console and VGA.
  173. Init can use only VGA via /dev/console.
  174. config ADK_RUNTIME_QUIET_KERNEL
  175. bool "no output from the kernel"
  176. help
  177. Make bootup quiet without messages from the kernel.
  178. endchoice
  179. choice
  180. prompt "bootup messages from initscripts"
  181. default ADK_RUNTIME_VERBOSE_INIT_VGA if ADK_TARGET_WITH_VGA
  182. default ADK_RUNTIME_VERBOSE_INIT_SERIAL
  183. config ADK_RUNTIME_VERBOSE_INIT_VGA
  184. bool "output via VGA"
  185. depends on ADK_TARGET_WITH_VGA
  186. depends on ADK_RUNTIME_VERBOSE_KERNEL_SERIAL_VGA || \
  187. ADK_RUNTIME_VERBOSE_KERNEL_VGA_ONLY || \
  188. ADK_RUNTIME_QUIET_KERNEL
  189. config ADK_RUNTIME_VERBOSE_INIT_SERIAL
  190. bool "output via serial"
  191. depends on ADK_TARGET_WITH_SERIAL \
  192. || ADK_TARGET_QEMU \
  193. || ADK_TARGET_SIM
  194. depends on ADK_RUNTIME_VERBOSE_KERNEL_VGA_SERIAL || \
  195. ADK_RUNTIME_VERBOSE_KERNEL_SERIAL_ONLY || \
  196. ADK_RUNTIME_QUIET_KERNEL
  197. config ADK_RUNTIME_QUIET_INIT
  198. bool "no output"
  199. endchoice
  200. choice
  201. prompt "start getty or shell after bootup"
  202. default ADK_RUNTIME_GETTY
  203. config ADK_RUNTIME_GETTY
  204. bool "start a getty after bootup"
  205. help
  206. Start a getty after bootup.
  207. config ADK_RUNTIME_SHELL
  208. bool "start a shell after bootup"
  209. help
  210. Start a shell after bootup.
  211. config ADK_RUNTIME_NONE
  212. bool "start no shell nor getty after bootup"
  213. help
  214. Do not start a shell or getty after bootup.
  215. endchoice
  216. config ADK_RUNTIME_GETTY_VGA
  217. bool "start getty on VGA console (tty1-tty6)"
  218. depends on ADK_RUNTIME_GETTY && ADK_TARGET_WITH_VGA
  219. default y if ADK_TARGET_QEMU_WITH_GRAPHIC_ONLY
  220. default y if ADK_TARGET_QEMU_WITH_GRAPHIC
  221. default y if ADK_TARGET_SYSTEM_RASPBERRY_PI
  222. default y if ADK_TARGET_SYSTEM_RASPBERRY_PI2
  223. default y if ADK_TARGET_SYSTEM_RASPBERRY_PI3
  224. default y if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
  225. default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
  226. default y if ADK_TARGET_SYSTEM_IBM_X40
  227. default y if ADK_TARGET_SYSTEM_ARANYM_M68K
  228. default y if ADK_TARGET_MODEL_PCENGINES_ALIX1C
  229. default y if ADK_TARGET_VBOX
  230. default n
  231. help
  232. Start getty on VGA console. (tty1-tty6)
  233. config ADK_RUNTIME_GETTY_SERIAL
  234. bool "start getty on serial console"
  235. depends on ADK_RUNTIME_GETTY && ( ADK_TARGET_WITH_SERIAL \
  236. || ADK_TARGET_QEMU \
  237. || ADK_TARGET_SIM )
  238. default n if ADK_TARGET_QEMU_WITH_GRAPHIC_ONLY
  239. default n if ADK_TARGET_QEMU_WITH_GRAPHIC
  240. default n if ADK_TARGET_SYSTEM_RASPBERRY_PI
  241. default n if ADK_TARGET_SYSTEM_RASPBERRY_PI2
  242. default n if ADK_TARGET_SYSTEM_RASPBERRY_PI3
  243. default n if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
  244. default n if ADK_TARGET_SYSTEM_IBM_X40
  245. default n if ADK_TARGET_SYSTEM_ARANYM_M68K
  246. default n if ADK_TARGET_MODEL_PCENGINES_ALIX1C
  247. default n if ADK_TARGET_VBOX
  248. default y
  249. help
  250. Start getty on serial console.
  251. config ADK_RUNTIME_CONSOLE_VGA_DEVICE
  252. string "VGA console device"
  253. depends on ADK_TARGET_WITH_VGA
  254. default "tty0"
  255. config ADK_RUNTIME_CONSOLE_SERIAL_DEVICE
  256. string "serial console device"
  257. depends on ADK_TARGET_WITH_SERIAL \
  258. || ADK_TARGET_QEMU \
  259. || ADK_TARGET_SIM
  260. default "hvc0" if ADK_TARGET_SYSTEM_QEMU_PPC64
  261. default "ttyBF0" if ADK_TARGET_ARCH_BFIN
  262. default "ttyUL0" if ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800 \
  263. || ADK_TARGET_SYSTEM_NUMATO_MIMASV2
  264. default "ttyARC0" if ADK_TARGET_SYSTEM_NSIM_ARCV1 \
  265. || ADK_TARGET_SYSTEM_NSIM_ARCV2
  266. default "ttyAMA0" if ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB \
  267. || ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB_NOMMU \
  268. || ADK_TARGET_SYSTEM_QEMU_ARM_REALVIEW_EB_MPCORE \
  269. || ADK_TARGET_SYSTEM_QEMU_ARM_VEXPRESS_A9 \
  270. || ADK_TARGET_SYSTEM_ARM_FM \
  271. || ADK_TARGET_SYSTEM_QEMU_AARCH64
  272. default "ttySC1" if ADK_TARGET_SYSTEM_QEMU_SH
  273. default "ttySC0" if ADK_TARGET_SYSTEM_SIM_H8300H
  274. default "ttymxc0" if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
  275. default "ttyAMA0" if ADK_TARGET_SYSTEM_RASPBERRY_PI
  276. default "ttyAMA0" if ADK_TARGET_SYSTEM_RASPBERRY_PI2
  277. default "ttyDA1" if ADK_TARGET_SYSTEM_QEMU_METAG
  278. default "ttyS2" if ADK_TARGET_SYSTEM_KINETIS_K70
  279. default "ttyPS0" if ADK_TARGET_SYSTEM_QEMU_ARM_XILINX_ZYNQ
  280. default "ttysclp0" if ADK_TARGET_SYSTEM_QEMU_S390
  281. default "ttyO2" if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
  282. default "ttyS4" if ADK_TARGET_SYSTEM_IMGTEC_CI20
  283. default "ttyS0"
  284. config ADK_RUNTIME_CONSOLE_SERIAL_SPEED
  285. string "serial console speed"
  286. depends on ADK_TARGET_WITH_SERIAL \
  287. || ADK_TARGET_QEMU \
  288. || ADK_TARGET_SIM
  289. default "9600" if ADK_TARGET_SYSTEM_FON_FON2100
  290. default "9600" if ADK_TARGET_SYSTEM_NUMATO_MIMASV2
  291. default "9600" if ADK_TARGET_SYSTEM_SGI_O2
  292. default "38400" if ADK_TARGET_SYSTEM_PCENGINES_WRAP
  293. default "38400" if ADK_TARGET_SYSTEM_ANDES_AG101P
  294. default "115200"
  295. config ADK_RUNTIME_KBD_LAYOUT
  296. string "keyboard layout for the embedded system"
  297. depends on ADK_TARGET_WITH_INPUT
  298. default "de-latin1-nodeadkeys"
  299. help
  300. Predefine the keyboard layout for the embedded system.
  301. For example use de-latin1-nodeadkeys.
  302. choice
  303. prompt "initial login shell for the root user"
  304. default ADK_ROOTSH_HUSH if ADK_TARGET_WITHOUT_MMU
  305. default ADK_ROOTSH_MKSH
  306. config ADK_ROOTSH_MKSH
  307. bool "mksh (MirBSD Korn Shell)"
  308. select ADK_PACKAGE_MKSH if !ADK_APPLIANCE_TOOLCHAIN
  309. help
  310. Use mksh (a Korn Shell variant) as standard login shell
  311. for the superuser.
  312. config ADK_ROOTSH_HUSH
  313. bool "hush (busybox shell compatible with non-MMU systems)"
  314. select BUSYBOX_HUSH if !ADK_APPLIANCE_TOOLCHAIN
  315. select BUSYBOX_FEATURE_SH_IS_HUSH if !ADK_APPLIANCE_TOOLCHAIN
  316. help
  317. hush shell from busybox.
  318. config ADK_ROOTSH_SASH
  319. bool "sash (Shell compatible with non-MMU systems)"
  320. select ADK_PACKAGE_SASH if !ADK_APPLIANCE_TOOLCHAIN
  321. help
  322. standalone shell.
  323. config ADK_ROOTSH_ASH
  324. bool "ash (busybox shell)"
  325. select BUSYBOX_ASH
  326. select BUSYBOX_FEATURE_SH_IS_ASH
  327. help
  328. Use the minimalistic ash variant that is part of busybox
  329. as standard login shell for the superuser. This is the
  330. default, but discouraged due to its frugality.
  331. config ADK_ROOTSH_BASH
  332. bool "bash (GNU Bourne-Again Shell)"
  333. select ADK_PACKAGE_BASH
  334. help
  335. Use GNU bash as standard login shell for the superuser.
  336. config ADK_ROOTSH_TCSH
  337. bool "tcsh (Tenex C Shell)"
  338. select ADK_PACKAGE_TCSH
  339. help
  340. Use tcsh (a C Shell variant) as standard login shell
  341. for the superuser.
  342. config ADK_ROOTSH_ZSH
  343. bool "zsh (The Z Shell)"
  344. select ADK_PACKAGE_ZSH
  345. help
  346. Use zsh as standard login shell for the superuser.
  347. endchoice
  348. choice
  349. prompt "system /bin/sh (POSIX script shell)"
  350. default ADK_BINSH_HUSH if ADK_TARGET_WITHOUT_MMU
  351. default ADK_BINSH_MKSH
  352. config ADK_BINSH_MKSH
  353. bool "mksh (MirBSD Korn Shell)"
  354. select ADK_PACKAGE_MKSH if !ADK_APPLIANCE_TOOLCHAIN
  355. help
  356. Use mksh (a Korn Shell variant) as system shell, which is
  357. both small and powerful, so quite suited for this task.
  358. config ADK_BINSH_HUSH
  359. bool "hush (busybox)"
  360. select ADK_PACKAGE_HUSH if !ADK_APPLIANCE_TOOLCHAIN
  361. help
  362. hush shell.
  363. config ADK_BINSH_SASH
  364. bool "sash (Standalone Shell)"
  365. select ADK_PACKAGE_SASH if !ADK_APPLIANCE_TOOLCHAIN
  366. help
  367. sash shell.
  368. config ADK_BINSH_ASH
  369. bool "ash (busybox)"
  370. select BUSYBOX_ASH
  371. help
  372. Use the minimalistic ash variant that is part of busybox
  373. as system shell. This is the default and rather small and
  374. fast, but lacks scripting features.
  375. config ADK_BINSH_BASH
  376. bool "bash (GNU Bourne-Again Shell)"
  377. select ADK_PACKAGE_BASH
  378. help
  379. Use GNU bash as system shell. This is discouraged due to
  380. its size and slowness.
  381. config ADK_BINSH_ZSH
  382. bool "zsh (The Z Shell)"
  383. select ADK_PACKAGE_ZSH
  384. help
  385. Use zsh as system shell. This is probably a bad idea.
  386. endchoice
  387. # workaround for USB ethernet f.e. Raspberry Pi 2/3
  388. config ADK_RUNTIME_WAIT_FOR_ETHERNET
  389. bool
  390. default y if ADK_TARGET_SYSTEM_RASPBERRY_PI2
  391. default y if ADK_TARGET_SYSTEM_RASPBERRY_PI3
  392. config ADK_SIMPLE_NETWORK_CONFIG
  393. bool "simple network configuration"
  394. help
  395. Manually change network config
  396. menu "eth0 Configuration"
  397. depends on ADK_SIMPLE_NETWORK_CONFIG
  398. choice
  399. prompt "Type"
  400. default ADK_SIMPLE_NETWORK_CONFIG_ETH0_TYPE_MANUAL
  401. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  402. bool "static IP configuration"
  403. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_DHCP
  404. bool "DHCP"
  405. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_NONE
  406. bool "no configuration"
  407. endchoice
  408. choice
  409. prompt "configure default Gateway"
  410. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  411. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITH_GW
  412. bool "with Gateway"
  413. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITHOUT_GW
  414. bool "without Gateway"
  415. endchoice
  416. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_IP
  417. string "IP Address"
  418. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  419. default "10.0.0.2"
  420. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_NM
  421. string "Netmask"
  422. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  423. default "255.255.255.0"
  424. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_GW
  425. string "Gateway"
  426. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITH_GW
  427. default "10.0.0.1"
  428. endmenu
  429. menu "wlan0 Configuration"
  430. depends on ADK_SIMPLE_NETWORK_CONFIG
  431. depends on ADK_TARGET_WITH_WIFI
  432. choice
  433. prompt "Type"
  434. default ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NONE
  435. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NONE
  436. bool "No configuration"
  437. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  438. bool "static IP configuration"
  439. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
  440. bool "DHCP"
  441. endchoice
  442. choice
  443. prompt "configure default Gateway"
  444. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  445. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITH_GW
  446. bool "with Gateway"
  447. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITHOUT_GW
  448. bool "without Gateway"
  449. endchoice
  450. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_IP
  451. string "IP Address"
  452. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  453. default "192.168.1.2"
  454. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NM
  455. string "Netmask"
  456. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  457. default "255.255.255.0"
  458. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_GW
  459. string "Gateway"
  460. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITH_GW
  461. default "192.168.1.1"
  462. endmenu
  463. choice
  464. prompt "WLAN Security"
  465. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC || ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
  466. default ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NOSEC
  467. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NOSEC
  468. bool "No security"
  469. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
  470. bool "WPA2"
  471. endchoice
  472. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_SSID
  473. string "SSID"
  474. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
  475. default ""
  476. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_PW
  477. string "Password"
  478. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
  479. default ""
  480. menu "eth1 Configuration"
  481. depends on ADK_SIMPLE_NETWORK_CONFIG && \
  482. ADK_TARGET_SYSTEM_MIKROTIK_RB532
  483. choice
  484. prompt "Type"
  485. default ADK_SIMPLE_NETWORK_CONFIG_ETH1_NONE
  486. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  487. bool "static IP configuration"
  488. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_DHCP
  489. bool "DHCP"
  490. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_NONE
  491. bool "no configuration"
  492. endchoice
  493. choice
  494. prompt "configure default Gateway"
  495. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  496. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITH_GW
  497. bool "with Gateway"
  498. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITHOUT_GW
  499. bool "without Gateway"
  500. endchoice
  501. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_IP
  502. string "IP Address"
  503. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  504. default "172.16.0.2"
  505. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_NM
  506. string "Netmask"
  507. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  508. default "255.255.0.0"
  509. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_GW
  510. string "Gateway"
  511. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITH_GW
  512. default "172.16.0.1"
  513. endmenu
  514. config ADK_SIMPLE_NETWORK_CONFIG_NS
  515. string "Nameserver"
  516. depends on ADK_SIMPLE_NETWORK_CONFIG
  517. depends on !ADK_SIMPLE_NETWORK_CONFIG_ETH0_DHCP
  518. depends on !ADK_SIMPLE_NETWORK_CONFIG_ETH1_DHCP
  519. depends on !ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
  520. default "10.0.0.1"
  521. config ADK_SIMPLE_NETWORK_CONFIG_PROXY
  522. string "HTTP-Proxy (f.e. http://10.0.0.2:8080)"
  523. depends on ADK_SIMPLE_NETWORK_CONFIG