Config.in.runtime 11 KB

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