Config.in.runtime 17 KB

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