Config.in.runtime 13 KB

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