Config.in 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. menu "System configuration"
  2. config BR2_TARGET_GENERIC_HOSTNAME
  3. string "System hostname"
  4. default "buildroot"
  5. help
  6. Select system hostname to be stored in /etc/hostname.
  7. Leave empty to not create /etc/hostname, or to keep the
  8. one from a custom skeleton.
  9. config BR2_TARGET_GENERIC_ISSUE
  10. string "System banner"
  11. default "Welcome to Buildroot"
  12. help
  13. Select system banner (/etc/issue) to be displayed at login.
  14. Leave empty to not create /etc/issue, or to keep the
  15. one from a custom skeleton.
  16. choice
  17. bool "Passwords encoding"
  18. default BR2_TARGET_GENERIC_PASSWD_MD5
  19. help
  20. Choose the password encoding scheme to use when Buildroot
  21. needs to encode a password (eg. the root password, below).
  22. Note: this is used at build-time, and *not* at runtime.
  23. config BR2_TARGET_GENERIC_PASSWD_MD5
  24. bool "md5"
  25. help
  26. Use MD5 to encode passwords.
  27. The default. Wildly available, and pretty good.
  28. Although pretty strong, MD5 is now an old hash function, and
  29. suffers from some weaknesses, which makes it susceptible to
  30. brute-force attacks.
  31. config BR2_TARGET_GENERIC_PASSWD_SHA256
  32. bool "sha-256"
  33. help
  34. Use SHA256 to encode passwords.
  35. Very strong, but not ubiquitous, although available in glibc
  36. for some time now. Choose only if you are sure your C library
  37. understands SHA256 passwords.
  38. config BR2_TARGET_GENERIC_PASSWD_SHA512
  39. bool "sha-512"
  40. help
  41. Use SHA512 to encode passwords.
  42. Extremely strong, but not ubiquitous, although available in glibc
  43. for some time now. Choose only if you are sure your C library
  44. understands SHA512 passwords.
  45. endchoice # Passwd encoding
  46. config BR2_TARGET_GENERIC_PASSWD_METHOD
  47. string
  48. default "md5" if BR2_TARGET_GENERIC_PASSWD_MD5
  49. default "sha-256" if BR2_TARGET_GENERIC_PASSWD_SHA256
  50. default "sha-512" if BR2_TARGET_GENERIC_PASSWD_SHA512
  51. choice
  52. prompt "Init system"
  53. default BR2_INIT_BUSYBOX
  54. config BR2_INIT_BUSYBOX
  55. bool "BusyBox"
  56. select BR2_PACKAGE_BUSYBOX
  57. select BR2_PACKAGE_INITSCRIPTS
  58. config BR2_INIT_SYSV
  59. bool "systemV"
  60. select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # sysvinit
  61. select BR2_PACKAGE_INITSCRIPTS
  62. select BR2_PACKAGE_SYSVINIT
  63. config BR2_INIT_SYSTEMD
  64. bool "systemd"
  65. depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
  66. depends on BR2_TOOLCHAIN_USES_GLIBC
  67. depends on BR2_USE_WCHAR
  68. depends on BR2_TOOLCHAIN_HAS_THREADS
  69. depends on BR2_TOOLCHAIN_HAS_SSP
  70. depends on BR2_USE_MMU
  71. depends on !BR2_STATIC_LIBS
  72. depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  73. select BR2_PACKAGE_SYSTEMD
  74. comment "systemd needs (e)glibc toolchain, headers >= 3.10"
  75. depends on !(BR2_TOOLCHAIN_USES_GLIBC \
  76. && BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10)
  77. config BR2_INIT_NONE
  78. bool "None"
  79. endchoice
  80. choice
  81. prompt "/dev management" if !BR2_INIT_SYSTEMD
  82. default BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
  83. config BR2_ROOTFS_DEVICE_CREATION_STATIC
  84. bool "Static using device table"
  85. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
  86. bool "Dynamic using devtmpfs only"
  87. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV
  88. bool "Dynamic using devtmpfs + mdev"
  89. select BR2_PACKAGE_BUSYBOX
  90. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
  91. bool "Dynamic using devtmpfs + eudev"
  92. depends on BR2_USE_WCHAR
  93. depends on !BR2_STATIC_LIBS
  94. depends on BR2_USE_MMU # eudev
  95. select BR2_PACKAGE_EUDEV
  96. comment "eudev needs a toolchain w/ wchar, dynamic library"
  97. depends on BR2_USE_MMU
  98. depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
  99. endchoice
  100. comment "/dev management using udev (from systemd)"
  101. depends on BR2_INIT_SYSTEMD
  102. config BR2_ROOTFS_DEVICE_TABLE
  103. string "Path to the permission tables"
  104. default "system/device_table.txt"
  105. help
  106. Specify a space-separated list of permission table locations,
  107. that will be passed to the makedevs utility to assign
  108. correct owners and permissions on various files in the
  109. target filesystem.
  110. See package/makedevs/README for details on the usage and
  111. syntax of these files.
  112. config BR2_ROOTFS_STATIC_DEVICE_TABLE
  113. string "Path to the device tables"
  114. default "system/device_table_dev.txt"
  115. depends on BR2_ROOTFS_DEVICE_CREATION_STATIC
  116. help
  117. Specify a space-separated list of device table locations,
  118. that will be passed to the makedevs utility to create all
  119. the special device files under /dev.
  120. See package/makedevs/README for details on the usage and
  121. syntax of these files.
  122. choice
  123. prompt "Root FS skeleton"
  124. config BR2_ROOTFS_SKELETON_DEFAULT
  125. bool "default target skeleton"
  126. help
  127. Use default target skeleton
  128. config BR2_ROOTFS_SKELETON_CUSTOM
  129. bool "custom target skeleton"
  130. help
  131. Use custom target skeleton.
  132. endchoice
  133. if BR2_ROOTFS_SKELETON_CUSTOM
  134. config BR2_ROOTFS_SKELETON_CUSTOM_PATH
  135. string "custom target skeleton path"
  136. default "system/skeleton"
  137. help
  138. Path to custom target skeleton.
  139. endif
  140. if BR2_ROOTFS_SKELETON_DEFAULT
  141. config BR2_TARGET_ENABLE_ROOT_LOGIN
  142. bool "Enable root login with password"
  143. default y
  144. help
  145. Allow root to log in with a password.
  146. If not enabled, root will not be able to log in with a password.
  147. However, if you have an ssh server and you add an ssh key, you
  148. can still allow root to log in. Alternatively, you can use sudo
  149. to become root.
  150. config BR2_TARGET_GENERIC_ROOT_PASSWD
  151. string "Root password"
  152. default ""
  153. depends on BR2_TARGET_ENABLE_ROOT_LOGIN
  154. help
  155. Set the initial root password.
  156. If set to empty (the default), then no root password will be set,
  157. and root will need no password to log in.
  158. If the password starts with any of $1$, $5$ or $6$, it is considered
  159. to be already crypt-encoded with respectively md5, sha256 or sha512.
  160. Any other value is taken to be a clear-text value, and is crypt-encoded
  161. as per the "Passwords encoding" scheme, above.
  162. Note: "$" signs in the hashed password must be doubled. For example,
  163. if the hashed password is "$1$longsalt$v35DIIeMo4yUfI23yditq0",
  164. then you must enter it as "$$1$$longsalt$$v35DIIeMo4yUfI23yditq0"
  165. (this is necessary otherwise make would attempt to interpret the $
  166. as a variable expansion).
  167. WARNING! WARNING!
  168. The password appears as-is in the .config file, and may appear
  169. in the build log! Avoid using a valuable password if either the
  170. .config file or the build log may be distributed, or at the
  171. very least use a strong cryptographic hash for your password!
  172. choice
  173. bool "/bin/sh"
  174. default BR2_SYSTEM_BIN_SH_DASH if !BR2_PACKAGE_BUSYBOX
  175. help
  176. Select which shell will provide /bin/sh.
  177. # busybox has shells that work on noMMU
  178. config BR2_SYSTEM_BIN_SH_BUSYBOX
  179. bool "busybox' default shell"
  180. depends on BR2_PACKAGE_BUSYBOX
  181. config BR2_SYSTEM_BIN_SH_BASH
  182. bool "bash"
  183. depends on BR2_USE_MMU # bash
  184. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  185. select BR2_PACKAGE_BASH
  186. config BR2_SYSTEM_BIN_SH_DASH
  187. bool "dash"
  188. depends on BR2_USE_MMU # dash
  189. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  190. select BR2_PACKAGE_DASH
  191. config BR2_SYSTEM_BIN_SH_ZSH
  192. bool "zsh"
  193. depends on BR2_USE_MMU # zsh
  194. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  195. select BR2_PACKAGE_ZSH
  196. comment "bash, dash, zsh need BR2_PACKAGE_BUSYBOX_SHOW_OTHERS"
  197. depends on !BR2_PACKAGE_BUSYBOX_SHOW_OTHERS && BR2_PACKAGE_BUSYBOX
  198. config BR2_SYSTEM_BIN_SH_NONE
  199. bool "none"
  200. endchoice # /bin/sh
  201. config BR2_SYSTEM_BIN_SH
  202. string
  203. default "busybox" if BR2_SYSTEM_BIN_SH_BUSYBOX
  204. default "bash" if BR2_SYSTEM_BIN_SH_BASH
  205. default "dash" if BR2_SYSTEM_BIN_SH_DASH
  206. default "zsh" if BR2_SYSTEM_BIN_SH_ZSH
  207. menuconfig BR2_TARGET_GENERIC_GETTY
  208. bool "Run a getty (login prompt) after boot"
  209. default y
  210. if BR2_TARGET_GENERIC_GETTY
  211. config BR2_TARGET_GENERIC_GETTY_PORT
  212. string "TTY port"
  213. default "console"
  214. help
  215. Specify a port to run a getty on.
  216. choice
  217. prompt "Baudrate"
  218. default BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  219. help
  220. Select a baudrate to use.
  221. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  222. bool "keep kernel default"
  223. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
  224. bool "9600"
  225. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
  226. bool "19200"
  227. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
  228. bool "38400"
  229. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
  230. bool "57600"
  231. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  232. bool "115200"
  233. endchoice
  234. config BR2_TARGET_GENERIC_GETTY_BAUDRATE
  235. string
  236. default "0" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  237. default "9600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
  238. default "19200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
  239. default "38400" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
  240. default "57600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
  241. default "115200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  242. config BR2_TARGET_GENERIC_GETTY_TERM
  243. string "TERM environment variable"
  244. default "vt100"
  245. help
  246. Specify a TERM type.
  247. config BR2_TARGET_GENERIC_GETTY_OPTIONS
  248. string "other options to pass to getty"
  249. default ""
  250. help
  251. Any other flags you want to pass to getty,
  252. Refer to getty --help for details.
  253. endif
  254. config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
  255. bool "remount root filesystem read-write during boot"
  256. default y
  257. help
  258. The root filesystem is typically mounted read-only at boot.
  259. By default, buildroot remounts it in read-write mode early during the
  260. boot process.
  261. Say no here if you would rather like your root filesystem to remain
  262. read-only.
  263. If unsure, say Y.
  264. endif # BR2_ROOTFS_SKELETON_DEFAULT
  265. config BR2_SYSTEM_DHCP
  266. string "Network interface to configure through DHCP"
  267. default ""
  268. depends on !BR2_PACKAGE_SYSTEMD_NETWORKD && (BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN)
  269. help
  270. Enter here the name of the network interface (E.G. eth0) to
  271. automatically configure through DHCP at bootup.
  272. If left empty, no automatic DHCP requests will take place.
  273. For more complicated network setups use an overlay to overwrite
  274. /etc/network/interfaces or add a networkd configuration file.
  275. comment "automatic network configuration via DHCP is not compatible with networkd"
  276. depends on BR2_PACKAGE_SYSTEMD_NETWORKD
  277. comment "automatic network configuration via DHCP needs ifupdown or busybox"
  278. depends on !(BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN)
  279. config BR2_TARGET_TZ_INFO
  280. bool "Install timezone info"
  281. # No timezone for musl; only for uClibc or (e)glibc.
  282. depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC
  283. select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_GLIBC
  284. select BR2_PACKAGE_TZ if BR2_TOOLCHAIN_USES_UCLIBC
  285. help
  286. Say 'y' here to install timezone info.
  287. if BR2_TARGET_TZ_INFO
  288. config BR2_TARGET_TZ_ZONELIST
  289. string "timezone list"
  290. default "default"
  291. help
  292. Space-separated list of time zones to compile.
  293. The value "default" includes all commonly used time zones. Note
  294. that this set consumes around 5.5M for (e)glibc and 2.1M for uClibc.
  295. The full list is the list of files in the time zone database source,
  296. not including the build and .tab files.
  297. config BR2_TARGET_LOCALTIME
  298. string "default local time"
  299. default "Etc/UTC"
  300. help
  301. The time zone to install as the default local time, expressed as a
  302. tzdata location, such as:
  303. GMT
  304. Europe/Paris
  305. America/New_York
  306. Pacific/Wallis
  307. ...
  308. If empty, no local time will be set, and the dates will be
  309. expressed in UTC.
  310. endif # BR2_TARGET_TZ_INFO
  311. config BR2_ROOTFS_USERS_TABLES
  312. string "Path to the users tables"
  313. help
  314. Specify a space-separated list of users table locations,
  315. that will be passed to the mkusers utility to create
  316. users on the system, with home directory, password, etc.
  317. See manual for details on the usage and syntax of these files.
  318. config BR2_ROOTFS_OVERLAY
  319. string "Root filesystem overlay directories"
  320. default ""
  321. help
  322. Specify a list of directories that are copied over the target
  323. root filesystem after the build has finished and before it is
  324. packed into the selected filesystem images.
  325. They are copied as-is into the rootfs, excluding files ending with
  326. ~ and .git, .svn and .hg directories.
  327. config BR2_ROOTFS_POST_BUILD_SCRIPT
  328. string "Custom scripts to run before creating filesystem images"
  329. default ""
  330. help
  331. Specify a space-separated list of scripts to be run after the build
  332. has finished and before Buildroot starts packing the files into
  333. selected filesystem images.
  334. This gives users the opportunity to do board-specific cleanups,
  335. add-ons and the like, so the generated files can be used directly
  336. without further processing.
  337. These scripts are called with the target directory name as first
  338. argument. Make sure the exit code of those scripts are 0, otherwise
  339. make will stop after calling them.
  340. config BR2_ROOTFS_POST_IMAGE_SCRIPT
  341. string "Custom scripts to run after creating filesystem images"
  342. default ""
  343. help
  344. Specify a space-separated list of scripts to be run after
  345. the build has finished and after Buildroot has packed the
  346. files into selected filesystem images.
  347. This can for example be used to call a tool building a
  348. firmware image from different images generated by Buildroot,
  349. or automatically extract the tarball root filesystem image
  350. into some location exported by NFS, or any other custom
  351. action.
  352. These scripts are called with the images directory name as
  353. first argument. The script is executed from the main Buildroot
  354. source directory as the current directory.
  355. config BR2_ROOTFS_POST_SCRIPT_ARGS
  356. string "Extra post-{build,image} arguments"
  357. depends on BR2_ROOTFS_POST_BUILD_SCRIPT != "" || BR2_ROOTFS_POST_IMAGE_SCRIPT != ""
  358. help
  359. Pass these additional arguments to each post-build or post-image
  360. scripts.
  361. Note that all the post-build and post-image scripts will be passed
  362. the same set of arguments, you can not pass different arguments to
  363. each script.
  364. Note also, as stated in their respective help text, that the first
  365. argument to each post-build or post-image script is the target
  366. directory / images directory. The arguments in this option will be
  367. passed *after* those.
  368. endmenu