Config.in.runtime 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  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. config ADK_RUNTIME_SSH_PUBKEY
  9. string "SSH public key (root user only)"
  10. default ""
  11. depends on ADK_PACKAGE_OPENSSH_SERVER || ADK_PACKAGE_DROPBEAR
  12. help
  13. Paste your generated SSH public key here and it will be embedded into
  14. the built image, so you can use it to login instantly.
  15. config ADK_RUNTIME_PASSWORD
  16. string "root password for the embedded system"
  17. default "linux123"
  18. help
  19. Predefine the root password enabled in the built image.
  20. config ADK_RUNTIME_START_SERVICES
  21. prompt "start services by default"
  22. boolean
  23. default n
  24. help
  25. source "target/config/Config.in.scripts"
  26. config ADK_RUNTIME_TMPFS_SIZE
  27. string "size of /tmp in memory (kB)"
  28. default "16384" if ADK_TARGET_QEMU
  29. default "16384" if ADK_TARGET_VBOX
  30. default "16384" if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
  31. default "32768" if ADK_TARGET_SYSTEM_IBM_X40
  32. default "32768" if ADK_TARGET_SYSTEM_RASPBERRY_PI
  33. default "32768" if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
  34. default "8192" if ADK_TARGET_SYSTEM_MIKROTIK_RB532
  35. default "2048"
  36. help
  37. Size of /tmp in memory in Kilobyte.
  38. config ADK_RUNTIME_TIMEZONE
  39. string "timezone for the embedded system"
  40. default "Europe/Berlin"
  41. help
  42. Predefine the timezone for the embedded system.
  43. config ADK_QUIET_KERNEL
  44. prompt "make bootup quiet without messages from the kernel"
  45. boolean
  46. default n
  47. help
  48. Make bootup quiet without messages from the kernel.
  49. choice
  50. prompt "bootup messages from initscripts"
  51. default ADK_RUNTIME_QUIET_INIT if ADK_PKG_KODIBOX
  52. default ADK_RUNTIME_VERBOSE_INIT_VGA if ADK_TARGET_WITH_VGA || ADK_TARGET_QEMU_WITH_GRAPHIC || ADK_TARGET_QEMU_WITH_GRAPHIC_ONLY || ADK_TARGET_VBOX
  53. default ADK_RUNTIME_VERBOSE_INIT_SERIAL
  54. config ADK_RUNTIME_VERBOSE_INIT_VGA
  55. depends on ADK_TARGET_WITH_VGA || ADK_TARGET_QEMU_WITH_GRAPHIC || ADK_TARGET_QEMU_WITH_GRAPHIC_ONLY || ADK_TARGET_VBOX
  56. boolean "output via VGA"
  57. config ADK_RUNTIME_VERBOSE_INIT_SERIAL
  58. boolean "output via serial"
  59. config ADK_RUNTIME_QUIET_INIT
  60. boolean "no output"
  61. endchoice
  62. choice
  63. prompt "start getty or shell after bootup"
  64. default ADK_RUNTIME_SHELL if ADK_PKG_TEST
  65. default ADK_RUNTIME_NONE if ADK_PKG_KODIBOX
  66. default ADK_RUNTIME_GETTY
  67. config ADK_RUNTIME_GETTY
  68. boolean "start a getty after bootup"
  69. help
  70. Start a getty after bootup.
  71. config ADK_RUNTIME_SHELL
  72. boolean "start a shell after bootup"
  73. help
  74. Start a shell after bootup
  75. config ADK_RUNTIME_NONE
  76. boolean "start no shell nor getty after bootup"
  77. help
  78. Do not start a shell or getty after bootup
  79. endchoice
  80. config ADK_RUNTIME_GETTY_VGA
  81. boolean "start getty on VGA console (tty1-tty6)"
  82. depends on ADK_RUNTIME_GETTY
  83. default y if ADK_TARGET_QEMU_WITH_GRAPHIC_ONLY
  84. default y if ADK_TARGET_QEMU_WITH_GRAPHIC
  85. default y if ADK_TARGET_SYSTEM_RASPBERRY_PI
  86. default y if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
  87. default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
  88. default y if ADK_TARGET_SYSTEM_IBM_X40
  89. default y if ADK_TARGET_SYSTEM_ARANYM_M68K
  90. default y if ADK_TARGET_VBOX
  91. default n
  92. help
  93. Start getty on VGA console. (tty1-tty6)
  94. config ADK_RUNTIME_GETTY_SERIAL
  95. boolean "start getty on serial console"
  96. depends on ADK_RUNTIME_GETTY
  97. default n if ADK_TARGET_QEMU_WITH_GRAPHIC_ONLY
  98. default n if ADK_TARGET_QEMU_WITH_GRAPHIC
  99. default n if ADK_TARGET_SYSTEM_RASPBERRY_PI
  100. default n if ADK_TARGET_SYSTEM_HUMMINGBOARD
  101. default n if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
  102. default n if ADK_TARGET_SYSTEM_IBM_X40
  103. default n if ADK_TARGET_SYSTEM_ARANYM_M68K
  104. default n if ADK_TARGET_VBOX
  105. default y
  106. help
  107. Start getty on serial console.
  108. config ADK_RUNTIME_CONSOLE_SERIAL_DEVICE
  109. prompt "serial console device"
  110. string
  111. default "hvc0" if ADK_TARGET_SYSTEM_QEMU_PPC64
  112. default "ttyUL0" if ADK_TARGET_QEMU_MICROBLAZE_MODEL_S3ADSP1800
  113. default "ttyAMA0" if ADK_TARGET_QEMU_ARM_MODEL_VERSATILEPB || ADK_TARGET_QEMU_ARM_MODEL_VEXPRESS_A9 || ADK_TARGET_SYSTEM_ARM_FM || ADK_TARGET_SYSTEM_QEMU_AARCH64
  114. default "ttySC1" if ADK_TARGET_SYSTEM_QEMU_SH
  115. default "ttymxc0" if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
  116. default "ttyAMA0" if ADK_TARGET_SYSTEM_RASPBERRY_PI
  117. default "ttyS0"
  118. config ADK_RUNTIME_CONSOLE_SERIAL_SPEED
  119. prompt "serial console speed"
  120. string
  121. default "9600" if ADK_TARGET_SYSTEM_FON_FON2100
  122. default "9600" if ADK_TARGET_SYSTEM_RASPBERRY_PI
  123. default "38400" if ADK_TARGET_SYSTEM_PCENGINES_WRAP
  124. default "115200"
  125. config ADK_RUNTIME_KBD_LAYOUT
  126. string "keyboard layout for the embedded system"
  127. default ""
  128. depends on ADK_TARGET_WITH_INPUT
  129. help
  130. Predefine the keyboard layout for the embedded system.
  131. choice
  132. prompt "initial login shell for the root user"
  133. default ADK_ROOTSH_SASH if ADK_TARGET_UCLINUX
  134. default ADK_ROOTSH_MKSH
  135. config ADK_ROOTSH_MKSH
  136. select ADK_PACKAGE_MKSH if !ADK_TOOLCHAIN_ONLY
  137. bool "mksh (MirBSD Korn Shell)"
  138. help
  139. Use mksh (a Korn Shell variant) as standard login shell
  140. for the superuser.
  141. config ADK_ROOTSH_SASH
  142. select ADK_PACKAGE_SASH if !ADK_TOOLCHAIN_ONLY
  143. bool "sash (Shell compatible with non-MMU systems)"
  144. help
  145. standalone shell.
  146. config ADK_ROOTSH_HUSH
  147. select ADK_PACKAGE_HUSH if !ADK_TOOLCHAIN_ONLY
  148. bool "hush (Shell compatible with non-MMU systems)"
  149. help
  150. hush shell from busybox.
  151. config ADK_ROOTSH_ASH
  152. select BUSYBOX_ASH
  153. bool "ash (busybox)"
  154. help
  155. Use the minimalistic ash variant that is part of busybox
  156. as standard login shell for the superuser. This is the
  157. default, but discouraged due to its frugality.
  158. config ADK_ROOTSH_BASH
  159. select ADK_PACKAGE_BASH
  160. bool "bash (GNU Bourne-Again Shell)"
  161. help
  162. Use GNU bash as standard login shell for the superuser.
  163. config ADK_ROOTSH_TCSH
  164. select ADK_PACKAGE_TCSH
  165. bool "tcsh (Tenex C Shell)"
  166. help
  167. Use tcsh (a C Shell variant) as standard login shell
  168. for the superuser.
  169. config ADK_ROOTSH_ZSH
  170. select ADK_PACKAGE_ZSH
  171. bool "zsh (The Z Shell)"
  172. help
  173. Use zsh as standard login shell for the superuser.
  174. endchoice
  175. choice
  176. prompt "system /bin/sh (POSIX script shell)"
  177. default ADK_BINSH_SASH if ADK_TARGET_UCLINUX
  178. default ADK_BINSH_MKSH
  179. config ADK_BINSH_MKSH
  180. select ADK_PACKAGE_MKSH if !ADK_TOOLCHAIN_ONLY
  181. bool "mksh (MirBSD Korn Shell)"
  182. help
  183. Use mksh (a Korn Shell variant) as system shell, which is
  184. both small and powerful, so quite suited for this task.
  185. config ADK_BINSH_SASH
  186. select ADK_PACKAGE_SASH if !ADK_TOOLCHAIN_ONLY
  187. bool "sash (Standalone Shell)"
  188. help
  189. hush shell.
  190. config ADK_BINSH_HUSH
  191. select ADK_PACKAGE_HUSH if !ADK_TOOLCHAIN_ONLY
  192. bool "hush (busybox)"
  193. help
  194. hush shell.
  195. config ADK_BINSH_ASH
  196. select BUSYBOX_ASH
  197. bool "ash (busybox)"
  198. help
  199. Use the minimalistic ash variant that is part of busybox
  200. as system shell. This is the default and rather small and
  201. fast, but lacks scripting features.
  202. config ADK_BINSH_BASH
  203. select ADK_PACKAGE_BASH
  204. bool "bash (GNU Bourne-Again Shell)"
  205. help
  206. Use GNU bash as system shell. This is discouraged due to
  207. its size and slowness.
  208. config ADK_BINSH_ZSH
  209. select ADK_PACKAGE_ZSH
  210. bool "zsh (The Z Shell)"
  211. help
  212. Use zsh as system shell. This is probably a bad idea.
  213. endchoice
  214. config ADK_SIMPLE_NETWORK_CONFIG
  215. prompt "simple network configuration"
  216. boolean
  217. help
  218. Manually change network config
  219. menu "eth0 Configuration"
  220. depends on ADK_SIMPLE_NETWORK_CONFIG
  221. choice
  222. prompt "Type"
  223. default ADK_SIMPLE_NETWORK_CONFIG_ETH0_TYPE_MANUAL
  224. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  225. bool "static IP configuration"
  226. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_DHCP
  227. bool "DHCP"
  228. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_NONE
  229. bool "no configuration"
  230. endchoice
  231. choice
  232. prompt "configure default Gateway"
  233. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  234. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITH_GW
  235. boolean "with Gateway"
  236. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITHOUT_GW
  237. boolean "without Gateway"
  238. endchoice
  239. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_IP
  240. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  241. string "IP Address"
  242. default "10.0.0.2"
  243. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_NM
  244. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  245. string "Netmask"
  246. default "255.255.255.0"
  247. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_GW
  248. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITH_GW
  249. string "Gateway"
  250. default "10.0.0.1"
  251. endmenu
  252. menu "wlan0 Configuration"
  253. depends on ADK_SIMPLE_NETWORK_CONFIG
  254. depends on ADK_TARGET_WITH_WIFI
  255. choice
  256. prompt "Type"
  257. default ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NONE
  258. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NONE
  259. bool "No configuration"
  260. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  261. bool "static IP configuration"
  262. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
  263. bool "DHCP"
  264. endchoice
  265. choice
  266. prompt "configure default Gateway"
  267. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  268. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITH_GW
  269. boolean "with Gateway"
  270. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITHOUT_GW
  271. boolean "without Gateway"
  272. endchoice
  273. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_IP
  274. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  275. string "IP Address"
  276. default "192.168.1.2"
  277. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NM
  278. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  279. string "Netmask"
  280. default "255.255.255.0"
  281. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_GW
  282. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITH_GW
  283. string "Gateway"
  284. default "192.168.1.1"
  285. endmenu
  286. choice
  287. prompt "WLAN Security"
  288. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC || ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
  289. default ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NOSEC
  290. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NOSEC
  291. bool "No security"
  292. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
  293. bool "WPA2"
  294. endchoice
  295. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_SSID
  296. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
  297. string "SSID"
  298. default ""
  299. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_PW
  300. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
  301. string "Password"
  302. default ""
  303. menu "eth1 Configuration"
  304. depends on ADK_SIMPLE_NETWORK_CONFIG && \
  305. ADK_TARGET_SYSTEM_MIKROTIK_RB532
  306. choice
  307. prompt "Type"
  308. default ADK_SIMPLE_NETWORK_CONFIG_ETH1_NONE
  309. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  310. bool "static IP configuration"
  311. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_DHCP
  312. bool "DHCP"
  313. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_NONE
  314. bool "no configuration"
  315. endchoice
  316. choice
  317. prompt "configure default Gateway"
  318. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  319. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITH_GW
  320. boolean "with Gateway"
  321. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITHOUT_GW
  322. boolean "without Gateway"
  323. endchoice
  324. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_IP
  325. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  326. string "IP Address"
  327. default "172.16.0.2"
  328. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_NM
  329. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  330. string "Netmask"
  331. default "255.255.0.0"
  332. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_GW
  333. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITH_GW
  334. string "Gateway"
  335. default "172.16.0.1"
  336. endmenu
  337. config ADK_SIMPLE_NETWORK_CONFIG_NS
  338. depends on ADK_SIMPLE_NETWORK_CONFIG
  339. depends on !ADK_SIMPLE_NETWORK_CONFIG_ETH0_DHCP
  340. depends on !ADK_SIMPLE_NETWORK_CONFIG_ETH1_DHCP
  341. depends on !ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
  342. string "Nameserver"
  343. default "10.0.0.1"
  344. config ADK_SIMPLE_NETWORK_CONFIG_PROXY
  345. depends on ADK_SIMPLE_NETWORK_CONFIG
  346. string "HTTP-Proxy (f.e. http://10.0.0.2:8080)"
  347. default ""