Config.in.runtime 14 KB

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