Config.in.runtime 18 KB

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