Config.in.runtime 12 KB

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