Config.in 13 KB

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