Config.in.runtime 18 KB

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