Config.in.runtime 13 KB

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