Config.in.runtime 17 KB

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