Config.in.runtime 14 KB

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