1
0

Config.in.runtime 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  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_DATA_PARTITION
  4. bool
  5. config ADK_RUNTIME_HOSTNAME
  6. string "hostname for the embedded system"
  7. default "openadk"
  8. help
  9. Set your target hostname.
  10. choice
  11. prompt "init system"
  12. depends on !ADK_APPLIANCE_TOOLCHAIN
  13. default ADK_RUNTIME_INIT_SYSV if ADK_PACKAGE_BUSYBOX
  14. config ADK_RUNTIME_INIT_SYSV
  15. bool "Use busybox init"
  16. depends on ADK_PACKAGE_BUSYBOX
  17. config ADK_RUNTIME_INIT_SYSVINIT
  18. bool "Use system V init"
  19. select ADK_PACKAGE_SYSVINIT
  20. select ADK_PACKAGE_AGETTY
  21. select ADK_PACKAGE_GAWK
  22. select ADK_PACKAGE_IP
  23. select ADK_PACKAGE_MOUNT
  24. config ADK_RUNTIME_INIT_S6
  25. bool "Use s6 init and supervision"
  26. select ADK_PACKAGE_S6
  27. select ADK_PACKAGE_S6_PORTABLE_UTILS
  28. select ADK_PACKAGE_S6_LINUX_UTILS
  29. config ADK_RUNTIME_INIT_SYSTEMD
  30. bool "Use systemd init and supervision"
  31. select ADK_PACKAGE_SYSTEMD
  32. select ADK_PACKAGE_DBUS
  33. select ADK_PACKAGE_DBUS_WITH_SYSTEMD
  34. select ADK_TARGET_LIBC_WITH_LOCALE if ADK_TARGET_LIB_UCLIBC_NG
  35. select ADK_TARGET_LIBC_WITH_LIBINTL_STUB if ADK_TARGET_LIB_UCLIBC_NG
  36. select ADK_TARGET_USE_SSP
  37. depends on ADK_TARGET_LIB_GLIBC || ADK_TARGET_LIB_UCLIBC_NG
  38. config ADK_RUNTIME_INIT_SIMPLEINIT
  39. bool "Use a very simple init"
  40. select ADK_PACKAGE_SIMPLEINIT
  41. endchoice
  42. choice
  43. prompt "system for /dev management"
  44. depends on !ADK_APPLIANCE_TOOLCHAIN
  45. default ADK_RUNTIME_DEV_STATIC if ADK_TARGET_WITHOUT_MMU || ADK_TARGET_ARCH_CRIS
  46. default ADK_RUNTIME_DEV_MDEV
  47. config ADK_RUNTIME_DEV_MDEV
  48. bool "Use mdev"
  49. select ADK_KERNEL_DEVTMPFS
  50. select ADK_KERNEL_DEVTMPFS_MOUNT
  51. depends on ADK_PACKAGE_BUSYBOX
  52. depends on !ADK_RUNTIME_INIT_SYSTEMD
  53. config ADK_RUNTIME_DEV_UDEV
  54. bool "Use udev"
  55. select ADK_PACKAGE_UDEV
  56. # needs depmod for module dependency generation on host
  57. select ADK_HOST_BUILD_KMOD
  58. select ADK_KERNEL_DEVTMPFS
  59. select ADK_KERNEL_DEVTMPFS_MOUNT
  60. depends on !ADK_RUNTIME_INIT_SYSTEMD
  61. config ADK_RUNTIME_DEV_SYSTEMD_UDEV
  62. bool "Use systemd udev"
  63. select ADK_KERNEL_DEVTMPFS
  64. select ADK_KERNEL_DEVTMPFS_MOUNT
  65. depends on ADK_RUNTIME_INIT_SYSTEMD
  66. config ADK_RUNTIME_DEV_STATIC
  67. bool "Use static /dev"
  68. depends on !ADK_RUNTIME_INIT_SYSTEMD
  69. endchoice
  70. choice
  71. prompt "base applications"
  72. depends on !ADK_APPLIANCE_TOOLCHAIN
  73. default ADK_RUNTIME_BASE_BUSYBOX
  74. config ADK_RUNTIME_BASE_BUSYBOX
  75. bool "Use busybox"
  76. select ADK_PACKAGE_BUSYBOX
  77. config ADK_RUNTIME_BASE_TOYBOX
  78. bool "Use toybox"
  79. select ADK_PACKAGE_TOYBOX
  80. config ADK_RUNTIME_BASE_COREUTILS
  81. bool "Use coreutils"
  82. select ADK_PACKAGE_COREUTILS
  83. select ADK_PACKAGE_GREP
  84. select ADK_PACKAGE_FIND
  85. endchoice
  86. config ADK_RUNTIME_LOAD_KERNEL_MODULES
  87. bool "load all installed kernel modules on bootup"
  88. default y
  89. help
  90. If you don't want to load all installed kernel modules
  91. by default on bootup, disable this option.
  92. config ADK_RUNTIME_FIX_PERMISSION
  93. bool "fix permissions for target files (suid bit, ..)"
  94. select ADK_HOST_BUILD_FAKEROOT
  95. depends on ADK_TARGET_ROOTFS_GENIMAGE
  96. help
  97. Use fakeroot to fix permissions for target dir before image
  98. creation.
  99. config ADK_RUNTIME_SSH_PUBKEY
  100. string "SSH public key (root user only)"
  101. depends on ADK_PACKAGE_OPENSSH_SERVER || ADK_PACKAGE_DROPBEAR
  102. default ""
  103. help
  104. Paste your generated SSH public key here and it will be embedded into
  105. the built image, so you can use it to login instantly.
  106. config ADK_RUNTIME_PASSWORD
  107. string "root password for the embedded system"
  108. default "$1$bJoW4DmS$7fUVat.9iFSAePzA4j4Jm."
  109. help
  110. Predefine the root password enabled in the built image.
  111. Use ./host_*/usr/bin/mkcrypt to generate the hash.
  112. Default password is linux123
  113. config ADK_RUNTIME_ADDUSER
  114. bool "add an user"
  115. default n
  116. help
  117. Enable this option to add an unprivileged user.
  118. Fixed UID/GID 100 is used. A group with the same name is added.
  119. config ADK_RUNTIME_USER_NAME
  120. string "user name"
  121. default "adk"
  122. depends on ADK_RUNTIME_ADDUSER
  123. config ADK_RUNTIME_USER_PASSWORD
  124. string "user password"
  125. default "$1$bJoW4DmS$7fUVat.9iFSAePzA4j4Jm."
  126. depends on ADK_RUNTIME_ADDUSER
  127. help
  128. Predefine the user password enabled in the built image.
  129. Use ./host_*/usr/bin/mkcrypt to generate the hash.
  130. Default password is linux123
  131. config ADK_RUNTIME_USER_HOME
  132. string "user home directory"
  133. default "/home/adk"
  134. depends on ADK_RUNTIME_ADDUSER
  135. help
  136. Set the home directory to use.
  137. config ADK_RUNTIME_USER_SHELL
  138. string "user shell"
  139. default "/bin/sh"
  140. depends on ADK_RUNTIME_ADDUSER
  141. help
  142. Set the shell to use.
  143. config ADK_RUNTIME_START_SERVICES
  144. bool "start services by default"
  145. default n
  146. help
  147. Enable this option to start selected services on boot.
  148. source "target/config/Config.in.scripts"
  149. config ADK_RUNTIME_TMPFS_SIZE
  150. string "size of /tmp in memory (kB)"
  151. default "32768" if ADK_TARGET_SYSTEM_IBM_X40
  152. default "32768" if ADK_TARGET_SYSTEM_SGI_O2
  153. default "32768" if ADK_TARGET_SYSTEM_RASPBERRY_PI
  154. default "32768" if ADK_TARGET_SYSTEM_RASPBERRY_PI2
  155. default "32768" if ADK_TARGET_SYSTEM_RASPBERRY_PI3
  156. default "32768" if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
  157. default "16384" if ADK_TARGET_SYSTEM_QEMU_X86_64
  158. default "16384" if ADK_TARGET_SYSTEM_QEMU_X86
  159. default "16384" if ADK_TARGET_VBOX
  160. default "16384" if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
  161. default "8192" if ADK_TARGET_SYSTEM_MIKROTIK_RB532
  162. default "8192" if ADK_TARGET_SYSTEM_SGI_INDY
  163. default "1024"
  164. depends on !ADK_RUNTIME_INIT_SIMPLEINIT && !ADK_RUNTIME_INIT_SYSTEMD
  165. help
  166. Size of /tmp in memory in Kilobyte.
  167. config ADK_RUNTIME_TIMEZONE
  168. string "timezone for the embedded system"
  169. default "Europe/Berlin"
  170. help
  171. Predefine the timezone for the embedded system.
  172. config ADK_RUNTIME_DEFAULT_LOCALE
  173. string "default locale"
  174. depends on ADK_TARGET_LIBC_WITH_LOCALE \
  175. || ADK_TARGET_LIB_GLIBC || ADK_TARGET_LIB_MUSL
  176. default "C.UTF-8"
  177. help
  178. 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_PI0
  252. default y if ADK_TARGET_SYSTEM_RASPBERRY_PI2
  253. default y if ADK_TARGET_SYSTEM_RASPBERRY_PI3
  254. default y if ADK_TARGET_SYSTEM_RASPBERRY_PI3_64
  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 "ttyAMA0" if ADK_TARGET_SYSTEM_RASPBERRY_PI3
  309. default "ttyAMA0" if ADK_TARGET_SYSTEM_RASPBERRY_PI3_64
  310. default "ttyDA1" if ADK_TARGET_SYSTEM_QEMU_METAG
  311. default "ttyS2" if ADK_TARGET_SYSTEM_KINETIS_K70
  312. default "ttyS2" if ADK_TARGET_SYSTEM_SOM_C6745
  313. default "ttyPS0" if ADK_TARGET_SYSTEM_QEMU_ARM_XILINX_ZYNQ
  314. default "ttysclp0" if ADK_TARGET_SYSTEM_QEMU_S390
  315. default "ttyO2" if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
  316. default "ttyO0" if ADK_TARGET_SYSTEM_PHYTEC_WEGA
  317. default "ttyS4" if ADK_TARGET_SYSTEM_IMGTEC_CI20
  318. default "ttyS0"
  319. config ADK_RUNTIME_CONSOLE_SERIAL_SPEED
  320. string "serial console speed"
  321. depends on ADK_TARGET_WITH_SERIAL \
  322. || ADK_TARGET_QEMU \
  323. || ADK_TARGET_SIM
  324. default "9600" if ADK_TARGET_SYSTEM_FON_FON2100
  325. default "9600" if ADK_TARGET_SYSTEM_SGI_INDY
  326. default "9600" if ADK_TARGET_SYSTEM_SGI_O2
  327. default "38400" if ADK_TARGET_SYSTEM_PCENGINES_WRAP
  328. default "38400" if ADK_TARGET_SYSTEM_ANDES_AG101P
  329. default "38400" if ADK_TARGET_SYSTEM_HITACHI_EDOSK2674
  330. default "115200"
  331. config ADK_RUNTIME_KBD_LAYOUT
  332. string "keyboard layout for the embedded system"
  333. depends on ADK_TARGET_WITH_INPUT
  334. default "de-latin1-nodeadkeys"
  335. help
  336. Predefine the keyboard layout for the embedded system.
  337. For example use de-latin1-nodeadkeys.
  338. choice
  339. prompt "initial login shell for the root user"
  340. default ADK_ROOTSH_HUSH if ADK_TARGET_WITHOUT_MMU
  341. default ADK_ROOTSH_MKSH
  342. config ADK_ROOTSH_MKSH
  343. bool "mksh (MirBSD Korn Shell)"
  344. select ADK_PACKAGE_MKSH if !ADK_APPLIANCE_TOOLCHAIN
  345. help
  346. Use mksh (a Korn Shell variant) as standard login shell
  347. for the superuser.
  348. config ADK_ROOTSH_HUSH
  349. bool "hush (busybox shell compatible with non-MMU systems)"
  350. select BUSYBOX_HUSH if !ADK_APPLIANCE_TOOLCHAIN
  351. select BUSYBOX_SH_IS_HUSH if !ADK_APPLIANCE_TOOLCHAIN
  352. help
  353. hush shell from busybox.
  354. config ADK_ROOTSH_SASH
  355. bool "sash (Shell compatible with non-MMU systems)"
  356. select ADK_PACKAGE_SASH if !ADK_APPLIANCE_TOOLCHAIN
  357. help
  358. standalone shell.
  359. config ADK_ROOTSH_ASH
  360. bool "ash (busybox shell)"
  361. select BUSYBOX_ASH
  362. select BUSYBOX_SH_IS_ASH
  363. help
  364. Use the minimalistic ash variant that is part of busybox
  365. as standard login shell for the superuser. This is the
  366. default, but discouraged due to its frugality.
  367. config ADK_ROOTSH_BASH
  368. bool "bash (GNU Bourne-Again Shell)"
  369. select ADK_PACKAGE_BASH
  370. help
  371. Use GNU bash as standard login shell for the superuser.
  372. config ADK_ROOTSH_TCSH
  373. bool "tcsh (Tenex C Shell)"
  374. select ADK_PACKAGE_TCSH
  375. help
  376. Use tcsh (a C Shell variant) as standard login shell
  377. for the superuser.
  378. config ADK_ROOTSH_ZSH
  379. bool "zsh (The Z Shell)"
  380. select ADK_PACKAGE_ZSH
  381. help
  382. Use zsh as standard login shell for the superuser.
  383. endchoice
  384. choice
  385. prompt "system /bin/sh (POSIX script shell)"
  386. default ADK_BINSH_HUSH if ADK_TARGET_WITHOUT_MMU
  387. default ADK_BINSH_MKSH
  388. config ADK_BINSH_MKSH
  389. bool "mksh (MirBSD Korn Shell)"
  390. select ADK_PACKAGE_MKSH if !ADK_APPLIANCE_TOOLCHAIN
  391. help
  392. Use mksh (a Korn Shell variant) as system shell, which is
  393. both small and powerful, so quite suited for this task.
  394. config ADK_BINSH_HUSH
  395. bool "hush (busybox)"
  396. select ADK_PACKAGE_HUSH if !ADK_APPLIANCE_TOOLCHAIN
  397. help
  398. hush shell.
  399. config ADK_BINSH_SASH
  400. bool "sash (Standalone Shell)"
  401. select ADK_PACKAGE_SASH if !ADK_APPLIANCE_TOOLCHAIN
  402. help
  403. sash shell.
  404. config ADK_BINSH_ASH
  405. bool "ash (busybox)"
  406. select BUSYBOX_ASH
  407. help
  408. Use the minimalistic ash variant that is part of busybox
  409. as system shell. This is the default and rather small and
  410. fast, but lacks scripting features.
  411. config ADK_BINSH_BASH
  412. bool "bash (GNU Bourne-Again Shell)"
  413. select ADK_PACKAGE_BASH
  414. help
  415. Use GNU bash as system shell. This is discouraged due to
  416. its size and slowness.
  417. config ADK_BINSH_ZSH
  418. bool "zsh (The Z Shell)"
  419. select ADK_PACKAGE_ZSH
  420. help
  421. Use zsh as system shell. This is probably a bad idea.
  422. endchoice
  423. # workaround for USB ethernet f.e. Raspberry Pi 2/3
  424. config ADK_RUNTIME_WAIT_FOR_ETHERNET
  425. bool
  426. default y if ADK_TARGET_SYSTEM_RASPBERRY_PI2
  427. default y if ADK_TARGET_SYSTEM_RASPBERRY_PI3
  428. config ADK_SIMPLE_NETWORK_CONFIG
  429. bool "simple network configuration"
  430. help
  431. Manually change network config
  432. menu "eth0 Configuration"
  433. depends on ADK_SIMPLE_NETWORK_CONFIG
  434. depends on ADK_TARGET_WITH_NETDEVICE
  435. choice
  436. prompt "Type"
  437. default ADK_SIMPLE_NETWORK_CONFIG_ETH0_TYPE_MANUAL
  438. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  439. bool "static IP configuration"
  440. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_DHCP
  441. bool "DHCP"
  442. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_NONE
  443. bool "no configuration"
  444. endchoice
  445. choice
  446. prompt "configure default Gateway"
  447. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  448. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITH_GW
  449. bool "with Gateway"
  450. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITHOUT_GW
  451. bool "without Gateway"
  452. endchoice
  453. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_IP
  454. string "IP Address"
  455. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  456. default "10.0.0.2"
  457. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_NM
  458. string "Netmask"
  459. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  460. default "255.255.255.0"
  461. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_GW
  462. string "Gateway"
  463. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITH_GW
  464. default "10.0.0.1"
  465. endmenu
  466. menu "wlan0 Configuration"
  467. depends on ADK_SIMPLE_NETWORK_CONFIG
  468. depends on ADK_TARGET_WITH_WIFI
  469. choice
  470. prompt "Type"
  471. default ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NONE
  472. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NONE
  473. bool "No configuration"
  474. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  475. bool "static IP configuration"
  476. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
  477. bool "DHCP"
  478. endchoice
  479. choice
  480. prompt "configure default Gateway"
  481. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  482. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITH_GW
  483. bool "with Gateway"
  484. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITHOUT_GW
  485. bool "without Gateway"
  486. endchoice
  487. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_IP
  488. string "IP Address"
  489. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  490. default "192.168.1.2"
  491. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NM
  492. string "Netmask"
  493. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  494. default "255.255.255.0"
  495. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_GW
  496. string "Gateway"
  497. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITH_GW
  498. default "192.168.1.1"
  499. endmenu
  500. choice
  501. prompt "WLAN Security"
  502. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC || ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
  503. default ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NOSEC
  504. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NOSEC
  505. bool "No security"
  506. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
  507. bool "WPA2"
  508. endchoice
  509. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_SSID
  510. string "SSID"
  511. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
  512. default ""
  513. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_PW
  514. string "Password"
  515. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
  516. default ""
  517. menu "eth1 Configuration"
  518. depends on ADK_SIMPLE_NETWORK_CONFIG && \
  519. ADK_TARGET_SYSTEM_MIKROTIK_RB532
  520. choice
  521. prompt "Type"
  522. default ADK_SIMPLE_NETWORK_CONFIG_ETH1_NONE
  523. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  524. bool "static IP configuration"
  525. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_DHCP
  526. bool "DHCP"
  527. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_NONE
  528. bool "no configuration"
  529. endchoice
  530. choice
  531. prompt "configure default Gateway"
  532. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  533. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITH_GW
  534. bool "with Gateway"
  535. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITHOUT_GW
  536. bool "without Gateway"
  537. endchoice
  538. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_IP
  539. string "IP Address"
  540. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  541. default "172.16.0.2"
  542. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_NM
  543. string "Netmask"
  544. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  545. default "255.255.0.0"
  546. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_GW
  547. string "Gateway"
  548. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITH_GW
  549. default "172.16.0.1"
  550. endmenu
  551. config ADK_SIMPLE_NETWORK_CONFIG_NS
  552. string "Nameserver"
  553. depends on ADK_SIMPLE_NETWORK_CONFIG
  554. depends on !ADK_SIMPLE_NETWORK_CONFIG_ETH0_DHCP
  555. depends on !ADK_SIMPLE_NETWORK_CONFIG_ETH1_DHCP
  556. depends on !ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
  557. default "10.0.0.1"
  558. config ADK_SIMPLE_NETWORK_CONFIG_PROXY
  559. string "HTTP-Proxy (f.e. http://10.0.0.2:8080)"
  560. depends on ADK_SIMPLE_NETWORK_CONFIG