Config.in.runtime 16 KB

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