1
0

Config.in.runtime 18 KB

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