Config.in.runtime 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  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 "linux123"
  18. help
  19. Predefine the root password enabled in the built image.
  20. config ADK_RUNTIME_START_SERVICES
  21. bool "start services by default"
  22. default n
  23. help
  24. Enable this option to start selected services on boot.
  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. bool "make bootup quiet without messages from the kernel"
  45. help
  46. Make bootup quiet without messages from the kernel.
  47. choice
  48. prompt "bootup messages from initscripts"
  49. default ADK_RUNTIME_VERBOSE_INIT_VGA if ADK_TARGET_WITH_VGA
  50. default ADK_RUNTIME_VERBOSE_INIT_SERIAL
  51. config ADK_RUNTIME_VERBOSE_INIT_VGA
  52. bool "output via VGA"
  53. depends on ADK_TARGET_WITH_VGA
  54. config ADK_RUNTIME_VERBOSE_INIT_SERIAL
  55. bool "output via serial"
  56. depends on ADK_TARGET_WITH_SERIAL
  57. config ADK_RUNTIME_QUIET_INIT
  58. bool "no output"
  59. endchoice
  60. choice
  61. prompt "start getty or shell after bootup"
  62. default ADK_RUNTIME_GETTY
  63. config ADK_RUNTIME_GETTY
  64. bool "start a getty after bootup"
  65. help
  66. Start a getty after bootup.
  67. config ADK_RUNTIME_SHELL
  68. bool "start a shell after bootup"
  69. help
  70. Start a shell after bootup.
  71. config ADK_RUNTIME_NONE
  72. bool "start no shell nor getty after bootup"
  73. help
  74. Do not start a shell or getty after bootup.
  75. endchoice
  76. config ADK_RUNTIME_GETTY_VGA
  77. bool "start getty on VGA console (tty1-tty6)"
  78. depends on ADK_RUNTIME_GETTY && ADK_TARGET_WITH_VGA
  79. default y if ADK_TARGET_QEMU_WITH_GRAPHIC_ONLY
  80. default y if ADK_TARGET_QEMU_WITH_GRAPHIC
  81. default y if ADK_TARGET_SYSTEM_RASPBERRY_PI
  82. default y if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
  83. default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
  84. default y if ADK_TARGET_SYSTEM_IBM_X40
  85. default y if ADK_TARGET_SYSTEM_ARANYM_M68K
  86. default y if ADK_TARGET_VBOX
  87. default n
  88. help
  89. Start getty on VGA console. (tty1-tty6)
  90. config ADK_RUNTIME_GETTY_SERIAL
  91. bool "start getty on serial console"
  92. depends on ADK_RUNTIME_GETTY && ADK_TARGET_WITH_SERIAL
  93. default n if ADK_TARGET_QEMU_WITH_GRAPHIC_ONLY
  94. default n if ADK_TARGET_QEMU_WITH_GRAPHIC
  95. default n if ADK_TARGET_SYSTEM_RASPBERRY_PI
  96. default n if ADK_TARGET_SYSTEM_HUMMINGBOARD
  97. default n if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
  98. default n if ADK_TARGET_SYSTEM_IBM_X40
  99. default n if ADK_TARGET_SYSTEM_ARANYM_M68K
  100. default n if ADK_TARGET_VBOX
  101. default y
  102. help
  103. Start getty on serial console.
  104. config ADK_RUNTIME_CONSOLE_VGA_DEVICE
  105. string "VGA console device"
  106. depends on ADK_TARGET_WITH_VGA
  107. default "tty1" if ADK_TARGET_SYSTEM_RASPBERRY_PI
  108. default "tty0"
  109. config ADK_RUNTIME_CONSOLE_SERIAL_DEVICE
  110. string "serial console device"
  111. depends on ADK_TARGET_WITH_SERIAL
  112. default "hvc0" if ADK_TARGET_SYSTEM_QEMU_PPC64
  113. default "ttyUL0" if ADK_TARGET_QEMU_MICROBLAZE_MODEL_S3ADSP1800
  114. 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
  115. default "ttySC1" if ADK_TARGET_SYSTEM_QEMU_SH
  116. default "ttymxc0" if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
  117. default "ttyAMA0" if ADK_TARGET_SYSTEM_RASPBERRY_PI
  118. default "ttyS0"
  119. config ADK_RUNTIME_CONSOLE_SERIAL_SPEED
  120. string "serial console speed"
  121. depends on ADK_TARGET_WITH_SERIAL
  122. default "9600" if ADK_TARGET_SYSTEM_FON_FON2100
  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. depends on ADK_TARGET_WITH_INPUT
  128. default ""
  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. bool "mksh (MirBSD Korn Shell)"
  137. select ADK_PACKAGE_MKSH if !ADK_TOOLCHAIN_ONLY
  138. help
  139. Use mksh (a Korn Shell variant) as standard login shell
  140. for the superuser.
  141. config ADK_ROOTSH_SASH
  142. bool "sash (Shell compatible with non-MMU systems)"
  143. select ADK_PACKAGE_SASH if !ADK_TOOLCHAIN_ONLY
  144. help
  145. standalone shell.
  146. config ADK_ROOTSH_HUSH
  147. bool "hush (Shell compatible with non-MMU systems)"
  148. select ADK_PACKAGE_HUSH if !ADK_TOOLCHAIN_ONLY
  149. help
  150. hush shell from busybox.
  151. config ADK_ROOTSH_ASH
  152. bool "ash (busybox)"
  153. select BUSYBOX_ASH
  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. bool "bash (GNU Bourne-Again Shell)"
  160. select ADK_PACKAGE_BASH
  161. help
  162. Use GNU bash as standard login shell for the superuser.
  163. config ADK_ROOTSH_TCSH
  164. bool "tcsh (Tenex C Shell)"
  165. select ADK_PACKAGE_TCSH
  166. help
  167. Use tcsh (a C Shell variant) as standard login shell
  168. for the superuser.
  169. config ADK_ROOTSH_ZSH
  170. bool "zsh (The Z Shell)"
  171. select ADK_PACKAGE_ZSH
  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. bool "mksh (MirBSD Korn Shell)"
  181. select ADK_PACKAGE_MKSH if !ADK_TOOLCHAIN_ONLY
  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. bool "sash (Standalone Shell)"
  187. select ADK_PACKAGE_SASH if !ADK_TOOLCHAIN_ONLY
  188. help
  189. hush shell.
  190. config ADK_BINSH_HUSH
  191. bool "hush (busybox)"
  192. select ADK_PACKAGE_HUSH if !ADK_TOOLCHAIN_ONLY
  193. help
  194. hush shell.
  195. config ADK_BINSH_ASH
  196. bool "ash (busybox)"
  197. select BUSYBOX_ASH
  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. bool "bash (GNU Bourne-Again Shell)"
  204. select ADK_PACKAGE_BASH
  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. bool "zsh (The Z Shell)"
  210. select ADK_PACKAGE_ZSH
  211. help
  212. Use zsh as system shell. This is probably a bad idea.
  213. endchoice
  214. config ADK_SIMPLE_NETWORK_CONFIG
  215. bool "simple network configuration"
  216. help
  217. Manually change network config
  218. menu "eth0 Configuration"
  219. depends on ADK_SIMPLE_NETWORK_CONFIG
  220. choice
  221. prompt "Type"
  222. default ADK_SIMPLE_NETWORK_CONFIG_ETH0_TYPE_MANUAL
  223. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  224. bool "static IP configuration"
  225. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_DHCP
  226. bool "DHCP"
  227. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_NONE
  228. bool "no configuration"
  229. endchoice
  230. choice
  231. prompt "configure default Gateway"
  232. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  233. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITH_GW
  234. bool "with Gateway"
  235. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITHOUT_GW
  236. bool "without Gateway"
  237. endchoice
  238. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_IP
  239. string "IP Address"
  240. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  241. default "10.0.0.2"
  242. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_NM
  243. string "Netmask"
  244. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  245. default "255.255.255.0"
  246. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_GW
  247. string "Gateway"
  248. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITH_GW
  249. default "10.0.0.1"
  250. endmenu
  251. menu "wlan0 Configuration"
  252. depends on ADK_SIMPLE_NETWORK_CONFIG
  253. depends on ADK_TARGET_WITH_WIFI
  254. choice
  255. prompt "Type"
  256. default ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NONE
  257. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NONE
  258. bool "No configuration"
  259. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  260. bool "static IP configuration"
  261. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
  262. bool "DHCP"
  263. endchoice
  264. choice
  265. prompt "configure default Gateway"
  266. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  267. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITH_GW
  268. bool "with Gateway"
  269. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITHOUT_GW
  270. bool "without Gateway"
  271. endchoice
  272. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_IP
  273. string "IP Address"
  274. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  275. default "192.168.1.2"
  276. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NM
  277. string "Netmask"
  278. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  279. default "255.255.255.0"
  280. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_GW
  281. string "Gateway"
  282. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITH_GW
  283. default "192.168.1.1"
  284. endmenu
  285. choice
  286. prompt "WLAN Security"
  287. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC || ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
  288. default ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NOSEC
  289. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NOSEC
  290. bool "No security"
  291. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
  292. bool "WPA2"
  293. endchoice
  294. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_SSID
  295. string "SSID"
  296. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
  297. default ""
  298. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_PW
  299. string "Password"
  300. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
  301. default ""
  302. menu "eth1 Configuration"
  303. depends on ADK_SIMPLE_NETWORK_CONFIG && \
  304. ADK_TARGET_SYSTEM_MIKROTIK_RB532
  305. choice
  306. prompt "Type"
  307. default ADK_SIMPLE_NETWORK_CONFIG_ETH1_NONE
  308. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  309. bool "static IP configuration"
  310. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_DHCP
  311. bool "DHCP"
  312. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_NONE
  313. bool "no configuration"
  314. endchoice
  315. choice
  316. prompt "configure default Gateway"
  317. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  318. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITH_GW
  319. bool "with Gateway"
  320. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITHOUT_GW
  321. bool "without Gateway"
  322. endchoice
  323. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_IP
  324. string "IP Address"
  325. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  326. default "172.16.0.2"
  327. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_NM
  328. string "Netmask"
  329. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  330. default "255.255.0.0"
  331. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_GW
  332. string "Gateway"
  333. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITH_GW
  334. default "172.16.0.1"
  335. endmenu
  336. config ADK_SIMPLE_NETWORK_CONFIG_NS
  337. string "Nameserver"
  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. default "10.0.0.1"
  343. config ADK_SIMPLE_NETWORK_CONFIG_PROXY
  344. string "HTTP-Proxy (f.e. http://10.0.0.2:8080)"
  345. depends on ADK_SIMPLE_NETWORK_CONFIG
  346. default ""