Config.in.runtime 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  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_VGA_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 "de-latin1-nodeadkeys"
  160. help
  161. Predefine the keyboard layout for the embedded system.
  162. For example use de-latin1-nodeadkeys.
  163. choice
  164. prompt "initial login shell for the root user"
  165. default ADK_ROOTSH_SASH if ADK_TARGET_UCLINUX
  166. default ADK_ROOTSH_MKSH
  167. config ADK_ROOTSH_MKSH
  168. bool "mksh (MirBSD Korn Shell)"
  169. select ADK_PACKAGE_MKSH if !ADK_TOOLCHAIN_ONLY
  170. help
  171. Use mksh (a Korn Shell variant) as standard login shell
  172. for the superuser.
  173. config ADK_ROOTSH_SASH
  174. bool "sash (Shell compatible with non-MMU systems)"
  175. select ADK_PACKAGE_SASH if !ADK_TOOLCHAIN_ONLY
  176. help
  177. standalone shell.
  178. config ADK_ROOTSH_HUSH
  179. bool "hush (Shell compatible with non-MMU systems)"
  180. select ADK_PACKAGE_HUSH if !ADK_TOOLCHAIN_ONLY
  181. help
  182. hush shell from busybox.
  183. config ADK_ROOTSH_ASH
  184. bool "ash (busybox)"
  185. select BUSYBOX_ASH
  186. help
  187. Use the minimalistic ash variant that is part of busybox
  188. as standard login shell for the superuser. This is the
  189. default, but discouraged due to its frugality.
  190. config ADK_ROOTSH_BASH
  191. bool "bash (GNU Bourne-Again Shell)"
  192. select ADK_PACKAGE_BASH
  193. help
  194. Use GNU bash as standard login shell for the superuser.
  195. config ADK_ROOTSH_TCSH
  196. bool "tcsh (Tenex C Shell)"
  197. select ADK_PACKAGE_TCSH
  198. help
  199. Use tcsh (a C Shell variant) as standard login shell
  200. for the superuser.
  201. config ADK_ROOTSH_ZSH
  202. bool "zsh (The Z Shell)"
  203. select ADK_PACKAGE_ZSH
  204. help
  205. Use zsh as standard login shell for the superuser.
  206. endchoice
  207. choice
  208. prompt "system /bin/sh (POSIX script shell)"
  209. default ADK_BINSH_SASH if ADK_TARGET_UCLINUX
  210. default ADK_BINSH_MKSH
  211. config ADK_BINSH_MKSH
  212. bool "mksh (MirBSD Korn Shell)"
  213. select ADK_PACKAGE_MKSH if !ADK_TOOLCHAIN_ONLY
  214. help
  215. Use mksh (a Korn Shell variant) as system shell, which is
  216. both small and powerful, so quite suited for this task.
  217. config ADK_BINSH_SASH
  218. bool "sash (Standalone Shell)"
  219. select ADK_PACKAGE_SASH if !ADK_TOOLCHAIN_ONLY
  220. help
  221. hush shell.
  222. config ADK_BINSH_HUSH
  223. bool "hush (busybox)"
  224. select ADK_PACKAGE_HUSH if !ADK_TOOLCHAIN_ONLY
  225. help
  226. hush shell.
  227. config ADK_BINSH_ASH
  228. bool "ash (busybox)"
  229. select BUSYBOX_ASH
  230. help
  231. Use the minimalistic ash variant that is part of busybox
  232. as system shell. This is the default and rather small and
  233. fast, but lacks scripting features.
  234. config ADK_BINSH_BASH
  235. bool "bash (GNU Bourne-Again Shell)"
  236. select ADK_PACKAGE_BASH
  237. help
  238. Use GNU bash as system shell. This is discouraged due to
  239. its size and slowness.
  240. config ADK_BINSH_ZSH
  241. bool "zsh (The Z Shell)"
  242. select ADK_PACKAGE_ZSH
  243. help
  244. Use zsh as system shell. This is probably a bad idea.
  245. endchoice
  246. config ADK_SIMPLE_NETWORK_CONFIG
  247. bool "simple network configuration"
  248. help
  249. Manually change network config
  250. menu "eth0 Configuration"
  251. depends on ADK_SIMPLE_NETWORK_CONFIG
  252. choice
  253. prompt "Type"
  254. default ADK_SIMPLE_NETWORK_CONFIG_ETH0_TYPE_MANUAL
  255. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  256. bool "static IP configuration"
  257. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_DHCP
  258. bool "DHCP"
  259. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_NONE
  260. bool "no configuration"
  261. endchoice
  262. choice
  263. prompt "configure default Gateway"
  264. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  265. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITH_GW
  266. bool "with Gateway"
  267. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITHOUT_GW
  268. bool "without Gateway"
  269. endchoice
  270. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_IP
  271. string "IP Address"
  272. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  273. default "10.0.0.2"
  274. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_NM
  275. string "Netmask"
  276. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC
  277. default "255.255.255.0"
  278. config ADK_SIMPLE_NETWORK_CONFIG_ETH0_GW
  279. string "Gateway"
  280. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH0_STATIC_WITH_GW
  281. default "10.0.0.1"
  282. endmenu
  283. menu "wlan0 Configuration"
  284. depends on ADK_SIMPLE_NETWORK_CONFIG
  285. depends on ADK_TARGET_WITH_WIFI
  286. choice
  287. prompt "Type"
  288. default ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NONE
  289. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NONE
  290. bool "No configuration"
  291. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  292. bool "static IP configuration"
  293. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
  294. bool "DHCP"
  295. endchoice
  296. choice
  297. prompt "configure default Gateway"
  298. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  299. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITH_GW
  300. bool "with Gateway"
  301. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITHOUT_GW
  302. bool "without Gateway"
  303. endchoice
  304. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_IP
  305. string "IP Address"
  306. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  307. default "192.168.1.2"
  308. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NM
  309. string "Netmask"
  310. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC
  311. default "255.255.255.0"
  312. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_GW
  313. string "Gateway"
  314. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC_WITH_GW
  315. default "192.168.1.1"
  316. endmenu
  317. choice
  318. prompt "WLAN Security"
  319. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_STATIC || ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
  320. default ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NOSEC
  321. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_NOSEC
  322. bool "No security"
  323. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
  324. bool "WPA2"
  325. endchoice
  326. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_SSID
  327. string "SSID"
  328. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
  329. default ""
  330. config ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2_PW
  331. string "Password"
  332. depends on ADK_SIMPLE_NETWORK_CONFIG_WLAN0_WPA2
  333. default ""
  334. menu "eth1 Configuration"
  335. depends on ADK_SIMPLE_NETWORK_CONFIG && \
  336. ADK_TARGET_SYSTEM_MIKROTIK_RB532
  337. choice
  338. prompt "Type"
  339. default ADK_SIMPLE_NETWORK_CONFIG_ETH1_NONE
  340. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  341. bool "static IP configuration"
  342. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_DHCP
  343. bool "DHCP"
  344. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_NONE
  345. bool "no configuration"
  346. endchoice
  347. choice
  348. prompt "configure default Gateway"
  349. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  350. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITH_GW
  351. bool "with Gateway"
  352. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITHOUT_GW
  353. bool "without Gateway"
  354. endchoice
  355. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_IP
  356. string "IP Address"
  357. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  358. default "172.16.0.2"
  359. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_NM
  360. string "Netmask"
  361. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC
  362. default "255.255.0.0"
  363. config ADK_SIMPLE_NETWORK_CONFIG_ETH1_GW
  364. string "Gateway"
  365. depends on ADK_SIMPLE_NETWORK_CONFIG_ETH1_STATIC_WITH_GW
  366. default "172.16.0.1"
  367. endmenu
  368. config ADK_SIMPLE_NETWORK_CONFIG_NS
  369. string "Nameserver"
  370. depends on ADK_SIMPLE_NETWORK_CONFIG
  371. depends on !ADK_SIMPLE_NETWORK_CONFIG_ETH0_DHCP
  372. depends on !ADK_SIMPLE_NETWORK_CONFIG_ETH1_DHCP
  373. depends on !ADK_SIMPLE_NETWORK_CONFIG_WLAN0_DHCP
  374. default "10.0.0.1"
  375. config ADK_SIMPLE_NETWORK_CONFIG_PROXY
  376. string "HTTP-Proxy (f.e. http://10.0.0.2:8080)"
  377. depends on ADK_SIMPLE_NETWORK_CONFIG
  378. default ""