Config.in.runtime 14 KB

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