Config.in 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  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_DES
  24. bool "des"
  25. help
  26. Use standard 56-bit DES-based crypt(3) to encode passwords.
  27. Old, wildly available, but also the weakest, very susceptible to
  28. brute-force attacks.
  29. config BR2_TARGET_GENERIC_PASSWD_MD5
  30. bool "md5"
  31. help
  32. Use MD5 to encode passwords.
  33. The default. Wildly available, and pretty good.
  34. Although pretty strong, MD5 is now an old hash function, and
  35. suffers from some weaknesses, which makes it susceptible to
  36. brute-force attacks.
  37. config BR2_TARGET_GENERIC_PASSWD_SHA256
  38. bool "sha-256"
  39. help
  40. Use SHA256 to encode passwords.
  41. Very strong, but not ubiquitous, although available in glibc
  42. for some time now. Choose only if you are sure your C library
  43. understands SHA256 passwords.
  44. config BR2_TARGET_GENERIC_PASSWD_SHA512
  45. bool "sha-512"
  46. help
  47. Use SHA512 to encode passwords.
  48. Extremely strong, but not ubiquitous, although available in glibc
  49. for some time now. Choose only if you are sure your C library
  50. understands SHA512 passwords.
  51. endchoice # Passwd encoding
  52. config BR2_TARGET_GENERIC_PASSWD_METHOD
  53. string
  54. default "des" if BR2_TARGET_GENERIC_PASSWD_DES
  55. default "md5" if BR2_TARGET_GENERIC_PASSWD_MD5
  56. default "sha-256" if BR2_TARGET_GENERIC_PASSWD_SHA256
  57. default "sha-512" if BR2_TARGET_GENERIC_PASSWD_SHA512
  58. choice
  59. prompt "Init system"
  60. default BR2_INIT_BUSYBOX
  61. config BR2_INIT_BUSYBOX
  62. bool "BusyBox"
  63. select BR2_PACKAGE_BUSYBOX
  64. config BR2_INIT_SYSV
  65. bool "systemV"
  66. select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # sysvinit
  67. select BR2_PACKAGE_SYSVINIT
  68. config BR2_INIT_SYSTEMD
  69. bool "systemd"
  70. depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
  71. depends on BR2_TOOLCHAIN_USES_GLIBC
  72. depends on BR2_LARGEFILE
  73. depends on BR2_USE_WCHAR
  74. depends on BR2_INET_IPV6
  75. depends on BR2_TOOLCHAIN_HAS_THREADS
  76. depends on BR2_TOOLCHAIN_HAS_SSP
  77. depends on BR2_USE_MMU
  78. depends on !BR2_STATIC_LIBS
  79. depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
  80. select BR2_PACKAGE_SYSTEMD
  81. comment 'systemd needs an (e)glibc toolchain, headers >= 3.7'
  82. depends on !(BR2_TOOLCHAIN_USES_GLIBC \
  83. && BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7)
  84. config BR2_INIT_NONE
  85. bool "None"
  86. endchoice
  87. choice
  88. prompt "/dev management" if !BR2_INIT_SYSTEMD
  89. default BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
  90. config BR2_ROOTFS_DEVICE_CREATION_STATIC
  91. bool "Static using device table"
  92. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
  93. bool "Dynamic using devtmpfs only"
  94. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV
  95. bool "Dynamic using mdev"
  96. select BR2_PACKAGE_BUSYBOX
  97. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
  98. bool "Dynamic using eudev"
  99. depends on !BR2_avr32 # eudev
  100. depends on BR2_LARGEFILE
  101. depends on BR2_USE_WCHAR
  102. depends on !BR2_STATIC_LIBS
  103. depends on BR2_USE_MMU # eudev
  104. depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
  105. select BR2_PACKAGE_EUDEV
  106. comment "eudev needs a toolchain w/ largefile, wchar, dynamic library, headers >= 3.9"
  107. depends on !BR2_avr32 # eudev
  108. depends on BR2_USE_MMU
  109. depends on !BR2_LARGEFILE || !BR2_USE_WCHAR || BR2_STATIC_LIBS \
  110. || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
  111. endchoice
  112. comment "/dev management using udev (from systemd)"
  113. depends on BR2_INIT_SYSTEMD
  114. config BR2_ROOTFS_DEVICE_TABLE
  115. string "Path to the permission tables"
  116. default "system/device_table.txt"
  117. help
  118. Specify a space-separated list of permission table locations,
  119. that will be passed to the makedevs utility to assign
  120. correct owners and permissions on various files in the
  121. target filesystem.
  122. See package/makedevs/README for details on the usage and
  123. syntax of these files.
  124. config BR2_ROOTFS_STATIC_DEVICE_TABLE
  125. string "Path to the device tables"
  126. default "system/device_table_dev.txt"
  127. depends on BR2_ROOTFS_DEVICE_CREATION_STATIC
  128. help
  129. Specify a space-separated list of device table locations,
  130. that will be passed to the makedevs utility to create all
  131. the special device files under /dev.
  132. See package/makedevs/README for details on the usage and
  133. syntax of these files.
  134. choice
  135. prompt "Root FS skeleton"
  136. config BR2_ROOTFS_SKELETON_DEFAULT
  137. bool "default target skeleton"
  138. help
  139. Use default target skeleton
  140. config BR2_ROOTFS_SKELETON_CUSTOM
  141. bool "custom target skeleton"
  142. help
  143. Use custom target skeleton.
  144. endchoice
  145. if BR2_ROOTFS_SKELETON_CUSTOM
  146. config BR2_ROOTFS_SKELETON_CUSTOM_PATH
  147. string "custom target skeleton path"
  148. default "system/skeleton"
  149. help
  150. Path to custom target skeleton.
  151. endif
  152. if BR2_ROOTFS_SKELETON_DEFAULT
  153. config BR2_TARGET_GENERIC_ROOT_PASSWD
  154. string "Root password"
  155. default ""
  156. help
  157. Set the initial root password (in clear). It will be md5-encrypted.
  158. If set to empty (the default), then no root password will be set,
  159. and root will need no password to log in.
  160. WARNING! WARNING!
  161. Although pretty strong, MD5 is now an old hash function, and
  162. suffers from some weaknesses, which makes it susceptible to attacks.
  163. It is showing its age, so this root password should not be trusted
  164. to properly secure any product that can be shipped to the wide,
  165. hostile world.
  166. WARNING! WARNING!
  167. The password appears in clear in the .config file, and may appear
  168. in the build log! Avoid using a valuable password if either the
  169. .config file or the build log may be distributed!
  170. choice
  171. bool "/bin/sh"
  172. default BR2_SYSTEM_BIN_SH_DASH if !BR2_PACKAGE_BUSYBOX
  173. help
  174. Select which shell will provide /bin/sh.
  175. # busybox has shells that work on noMMU
  176. config BR2_SYSTEM_BIN_SH_BUSYBOX
  177. bool "busybox' default shell"
  178. depends on BR2_PACKAGE_BUSYBOX
  179. config BR2_SYSTEM_BIN_SH_BASH
  180. bool "bash"
  181. depends on BR2_USE_MMU # bash
  182. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  183. select BR2_PACKAGE_BASH
  184. config BR2_SYSTEM_BIN_SH_DASH
  185. bool "dash"
  186. depends on BR2_USE_MMU # dash
  187. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  188. select BR2_PACKAGE_DASH
  189. config BR2_SYSTEM_BIN_SH_ZSH
  190. bool "zsh"
  191. depends on BR2_USE_MMU # zsh
  192. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  193. select BR2_PACKAGE_ZSH
  194. comment "bash, dash, zsh need BR2_PACKAGE_BUSYBOX_SHOW_OTHERS"
  195. depends on !BR2_PACKAGE_BUSYBOX_SHOW_OTHERS && BR2_PACKAGE_BUSYBOX
  196. config BR2_SYSTEM_BIN_SH_NONE
  197. bool "none"
  198. endchoice # /bin/sh
  199. config BR2_SYSTEM_BIN_SH
  200. string
  201. default "/bin/busybox" if BR2_SYSTEM_BIN_SH_BUSYBOX
  202. default "/bin/bash" if BR2_SYSTEM_BIN_SH_BASH
  203. default "/bin/dash" if BR2_SYSTEM_BIN_SH_DASH
  204. default "/bin/zsh" if BR2_SYSTEM_BIN_SH_ZSH
  205. config BR2_TARGET_GENERIC_GETTY
  206. bool "Run a getty (login prompt) after boot"
  207. default y
  208. if BR2_TARGET_GENERIC_GETTY
  209. menu "getty options"
  210. config BR2_TARGET_GENERIC_GETTY_PORT
  211. string "TTY port"
  212. default "console"
  213. help
  214. Specify a port to run a getty on.
  215. choice
  216. prompt "Baudrate"
  217. default BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  218. help
  219. Select a baudrate to use.
  220. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  221. bool "keep kernel default"
  222. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
  223. bool "9600"
  224. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
  225. bool "19200"
  226. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
  227. bool "38400"
  228. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
  229. bool "57600"
  230. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  231. bool "115200"
  232. endchoice
  233. config BR2_TARGET_GENERIC_GETTY_BAUDRATE
  234. string
  235. default "0" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  236. default "9600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
  237. default "19200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
  238. default "38400" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
  239. default "57600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
  240. default "115200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  241. config BR2_TARGET_GENERIC_GETTY_TERM
  242. string "TERM environment variable"
  243. default "vt100"
  244. help
  245. Specify a TERM type.
  246. config BR2_TARGET_GENERIC_GETTY_OPTIONS
  247. string "other options to pass to getty"
  248. default ""
  249. help
  250. Any other flags you want to pass to getty,
  251. Refer to getty --help for details.
  252. endmenu
  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. help
  300. The time zone to install as the default local time, expressed as a
  301. tzdata location, such as:
  302. GMT
  303. Europe/Paris
  304. America/New_York
  305. Pacific/Wallis
  306. ...
  307. If empty, no local time will be set, and the dates will be
  308. expressed in UTC.
  309. endif # BR2_TARGET_TZ_INFO
  310. config BR2_ROOTFS_USERS_TABLES
  311. string "Path to the users tables"
  312. help
  313. Specify a space-separated list of users table locations,
  314. that will be passed to the mkusers utility to create
  315. users on the system, with home directory, password, etc.
  316. See manual for details on the usage and syntax of these files.
  317. config BR2_ROOTFS_OVERLAY
  318. string "Root filesystem overlay directories"
  319. default ""
  320. help
  321. Specify a list of directories that are copied over the target
  322. root filesystem after the build has finished and before it is
  323. packed into the selected filesystem images.
  324. They are copied as-is into the rootfs, excluding files ending with
  325. ~ and .git, .svn and .hg directories.
  326. config BR2_ROOTFS_POST_BUILD_SCRIPT
  327. string "Custom scripts to run before creating filesystem images"
  328. default ""
  329. help
  330. Specify a space-separated list of scripts to be run after the build
  331. has finished and before Buildroot starts packing the files into
  332. selected filesystem images.
  333. This gives users the opportunity to do board-specific cleanups,
  334. add-ons and the like, so the generated files can be used directly
  335. without further processing.
  336. These scripts are called with the target directory name as first
  337. argument. Make sure the exit code of those scripts are 0, otherwise
  338. make will stop after calling them.
  339. config BR2_ROOTFS_POST_IMAGE_SCRIPT
  340. string "Custom scripts to run after creating filesystem images"
  341. default ""
  342. help
  343. Specify a space-separated list of scripts to be run after
  344. the build has finished and after Buildroot has packed the
  345. files into selected filesystem images.
  346. This can for example be used to call a tool building a
  347. firmware image from different images generated by Buildroot,
  348. or automatically extract the tarball root filesystem image
  349. into some location exported by NFS, or any other custom
  350. action.
  351. These scripts are called with the images directory name as
  352. first argument. The script is executed from the main Buildroot
  353. source directory as the current directory.
  354. config BR2_ROOTFS_POST_SCRIPT_ARGS
  355. string "Extra post-{build,image} arguments"
  356. depends on BR2_ROOTFS_POST_BUILD_SCRIPT != "" || BR2_ROOTFS_POST_IMAGE_SCRIPT != ""
  357. help
  358. Pass these additional arguments to each post-build or post-image
  359. scripts.
  360. Note that all the post-build and post-image scripts will be passed
  361. the same set of arguments, you can not pass different arguments to
  362. each script.
  363. Note also, as stated in their respective help text, that the first
  364. argument to each post-build or post-image script is the target
  365. directory / images directory. The arguments in this option will be
  366. passed *after* those.
  367. endmenu