Config.in 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  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. # In Buildroot, we decided not to support a split-usr when systemd is
  64. # used as an init system. This is a design decision, not a systemd
  65. # issue. Thus the select is with BR2_INIT_SYSTEMD (below) rather than
  66. # with BR2_PACKAGE_SYSTEMD.
  67. config BR2_INIT_SYSTEMD
  68. bool "systemd"
  69. depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
  70. depends on BR2_TOOLCHAIN_USES_GLIBC
  71. depends on BR2_USE_WCHAR
  72. depends on BR2_TOOLCHAIN_HAS_THREADS
  73. depends on BR2_TOOLCHAIN_HAS_SSP
  74. depends on BR2_USE_MMU
  75. depends on !BR2_STATIC_LIBS
  76. depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  77. select BR2_ROOTFS_MERGED_USR
  78. select BR2_PACKAGE_SYSTEMD
  79. comment "systemd needs a glibc toolchain, headers >= 3.10"
  80. depends on !(BR2_TOOLCHAIN_USES_GLIBC \
  81. && BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10)
  82. config BR2_INIT_NONE
  83. bool "None"
  84. help
  85. Buildroot will not install any init system. You will
  86. have to provide your own, either with a new package
  87. or with a rootfs-overlay.
  88. endchoice
  89. choice
  90. prompt "/dev management" if !BR2_INIT_SYSTEMD
  91. default BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
  92. config BR2_ROOTFS_DEVICE_CREATION_STATIC
  93. bool "Static using device table"
  94. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
  95. bool "Dynamic using devtmpfs only"
  96. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV
  97. bool "Dynamic using devtmpfs + mdev"
  98. select BR2_PACKAGE_BUSYBOX
  99. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
  100. bool "Dynamic using devtmpfs + eudev"
  101. depends on BR2_USE_WCHAR
  102. depends on !BR2_STATIC_LIBS
  103. depends on BR2_USE_MMU # eudev
  104. select BR2_PACKAGE_EUDEV
  105. comment "eudev needs a toolchain w/ wchar, dynamic library"
  106. depends on BR2_USE_MMU
  107. depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
  108. endchoice
  109. comment "/dev management using udev (from systemd)"
  110. depends on BR2_INIT_SYSTEMD
  111. config BR2_ROOTFS_DEVICE_TABLE
  112. string "Path to the permission tables"
  113. default "system/device_table.txt"
  114. help
  115. Specify a space-separated list of permission table locations,
  116. that will be passed to the makedevs utility to assign
  117. correct owners and permissions on various files in the
  118. target filesystem.
  119. See package/makedevs/README for details on the usage and
  120. syntax of these files.
  121. config BR2_ROOTFS_STATIC_DEVICE_TABLE
  122. string "Path to the device tables"
  123. default "system/device_table_dev.txt"
  124. depends on BR2_ROOTFS_DEVICE_CREATION_STATIC
  125. help
  126. Specify a space-separated list of device table locations,
  127. that will be passed to the makedevs utility to create all
  128. the special device files under /dev.
  129. See package/makedevs/README for details on the usage and
  130. syntax of these files.
  131. config BR2_ROOTFS_DEVICE_TABLE_SUPPORTS_EXTENDED_ATTRIBUTES
  132. bool "support extended attributes in device tables"
  133. help
  134. Support extended attributes handling in device tables
  135. choice
  136. prompt "Root FS skeleton"
  137. config BR2_ROOTFS_SKELETON_DEFAULT
  138. bool "default target skeleton"
  139. help
  140. Use default target skeleton
  141. config BR2_ROOTFS_SKELETON_CUSTOM
  142. bool "custom target skeleton"
  143. help
  144. Use custom target skeleton.
  145. endchoice
  146. if BR2_ROOTFS_SKELETON_CUSTOM
  147. config BR2_ROOTFS_SKELETON_CUSTOM_PATH
  148. string "custom target skeleton path"
  149. default "system/skeleton"
  150. help
  151. Path to custom target skeleton.
  152. # dummy config so merged /usr workarounds can also be activated for
  153. # custom rootfs skeleton
  154. config BR2_ROOTFS_MERGED_USR
  155. endif
  156. if BR2_ROOTFS_SKELETON_DEFAULT
  157. config BR2_ROOTFS_MERGED_USR
  158. bool "Use symlinks to /usr for /bin, /sbin and /lib"
  159. help
  160. If you say 'n' here, then /bin, /sbin and /lib and their
  161. counterparts in /usr will be separate directories. This
  162. is the historical UNIX way. In this case, /usr can be a
  163. filesystem on a partition separate from / .
  164. If you say 'y' here, then /bin, /sbin and /lib will be symlinks
  165. to their counterparts in /usr. In this case, /usr can not be a
  166. separate filesystem.
  167. config BR2_TARGET_ENABLE_ROOT_LOGIN
  168. bool "Enable root login with password"
  169. default y
  170. help
  171. Allow root to log in with a password.
  172. If not enabled, root will not be able to log in with a password.
  173. However, if you have an ssh server and you add an ssh key, you
  174. can still allow root to log in. Alternatively, you can use sudo
  175. to become root.
  176. config BR2_TARGET_GENERIC_ROOT_PASSWD
  177. string "Root password"
  178. default ""
  179. depends on BR2_TARGET_ENABLE_ROOT_LOGIN
  180. help
  181. Set the initial root password.
  182. If set to empty (the default), then no root password will be set,
  183. and root will need no password to log in.
  184. If the password starts with any of $1$, $5$ or $6$, it is considered
  185. to be already crypt-encoded with respectively md5, sha256 or sha512.
  186. Any other value is taken to be a clear-text value, and is crypt-encoded
  187. as per the "Passwords encoding" scheme, above.
  188. Note: "$" signs in the hashed password must be doubled. For example,
  189. if the hashed password is "$1$longsalt$v35DIIeMo4yUfI23yditq0",
  190. then you must enter it as "$$1$$longsalt$$v35DIIeMo4yUfI23yditq0"
  191. (this is necessary otherwise make would attempt to interpret the $
  192. as a variable expansion).
  193. WARNING! WARNING!
  194. The password appears as-is in the .config file, and may appear
  195. in the build log! Avoid using a valuable password if either the
  196. .config file or the build log may be distributed, or at the
  197. very least use a strong cryptographic hash for your password!
  198. choice
  199. bool "/bin/sh"
  200. default BR2_SYSTEM_BIN_SH_DASH if !BR2_PACKAGE_BUSYBOX
  201. help
  202. Select which shell will provide /bin/sh.
  203. # busybox has shells that work on noMMU
  204. config BR2_SYSTEM_BIN_SH_BUSYBOX
  205. bool "busybox' default shell"
  206. depends on BR2_PACKAGE_BUSYBOX
  207. config BR2_SYSTEM_BIN_SH_BASH
  208. bool "bash"
  209. depends on BR2_USE_MMU # bash
  210. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  211. select BR2_PACKAGE_BASH
  212. config BR2_SYSTEM_BIN_SH_DASH
  213. bool "dash"
  214. depends on BR2_USE_MMU # dash
  215. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  216. select BR2_PACKAGE_DASH
  217. config BR2_SYSTEM_BIN_SH_ZSH
  218. bool "zsh"
  219. depends on BR2_USE_MMU # zsh
  220. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  221. select BR2_PACKAGE_ZSH
  222. comment "bash, dash, zsh need BR2_PACKAGE_BUSYBOX_SHOW_OTHERS"
  223. depends on !BR2_PACKAGE_BUSYBOX_SHOW_OTHERS && BR2_PACKAGE_BUSYBOX
  224. config BR2_SYSTEM_BIN_SH_NONE
  225. bool "none"
  226. endchoice # /bin/sh
  227. config BR2_SYSTEM_BIN_SH
  228. string
  229. default "busybox" if BR2_SYSTEM_BIN_SH_BUSYBOX
  230. default "bash" if BR2_SYSTEM_BIN_SH_BASH
  231. default "dash" if BR2_SYSTEM_BIN_SH_DASH
  232. default "zsh" if BR2_SYSTEM_BIN_SH_ZSH
  233. menuconfig BR2_TARGET_GENERIC_GETTY
  234. bool "Run a getty (login prompt) after boot"
  235. default y
  236. if BR2_TARGET_GENERIC_GETTY
  237. config BR2_TARGET_GENERIC_GETTY_PORT
  238. string "TTY port"
  239. default "console"
  240. help
  241. Specify a port to run a getty on.
  242. choice
  243. prompt "Baudrate"
  244. default BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  245. help
  246. Select a baudrate to use.
  247. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  248. bool "keep kernel default"
  249. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
  250. bool "9600"
  251. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
  252. bool "19200"
  253. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
  254. bool "38400"
  255. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
  256. bool "57600"
  257. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  258. bool "115200"
  259. endchoice
  260. config BR2_TARGET_GENERIC_GETTY_BAUDRATE
  261. string
  262. default "0" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  263. default "9600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
  264. default "19200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
  265. default "38400" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
  266. default "57600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
  267. default "115200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  268. config BR2_TARGET_GENERIC_GETTY_TERM
  269. string "TERM environment variable"
  270. default "vt100"
  271. help
  272. Specify a TERM type.
  273. config BR2_TARGET_GENERIC_GETTY_OPTIONS
  274. string "other options to pass to getty"
  275. default ""
  276. help
  277. Any other flags you want to pass to getty,
  278. Refer to getty --help for details.
  279. endif
  280. config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
  281. bool "remount root filesystem read-write during boot"
  282. default y
  283. help
  284. The root filesystem is typically mounted read-only at boot.
  285. By default, buildroot remounts it in read-write mode early during the
  286. boot process.
  287. Say no here if you would rather like your root filesystem to remain
  288. read-only.
  289. If unsure, say Y.
  290. endif # BR2_ROOTFS_SKELETON_DEFAULT
  291. config BR2_SYSTEM_DHCP
  292. string "Network interface to configure through DHCP"
  293. default ""
  294. depends on !BR2_PACKAGE_SYSTEMD_NETWORKD && (BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN)
  295. help
  296. Enter here the name of the network interface (E.G. eth0) to
  297. automatically configure through DHCP at bootup.
  298. If left empty, no automatic DHCP requests will take place.
  299. For more complicated network setups use an overlay to overwrite
  300. /etc/network/interfaces or add a networkd configuration file.
  301. comment "automatic network configuration via DHCP is not compatible with networkd"
  302. depends on BR2_PACKAGE_SYSTEMD_NETWORKD
  303. comment "automatic network configuration via DHCP needs ifupdown or busybox"
  304. depends on !(BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN)
  305. config BR2_TARGET_TZ_INFO
  306. bool "Install timezone info"
  307. # No timezone for musl; only for uClibc or glibc.
  308. depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC
  309. select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_GLIBC
  310. select BR2_PACKAGE_TZ if BR2_TOOLCHAIN_USES_UCLIBC
  311. help
  312. Say 'y' here to install timezone info.
  313. if BR2_TARGET_TZ_INFO
  314. config BR2_TARGET_TZ_ZONELIST
  315. string "timezone list"
  316. default "default"
  317. help
  318. Space-separated list of time zones to compile.
  319. The value "default" includes all commonly used time zones. Note
  320. that this set consumes around 5.5M for glibc and 2.1M for uClibc.
  321. The full list is the list of files in the time zone database source,
  322. not including the build and .tab files.
  323. config BR2_TARGET_LOCALTIME
  324. string "default local time"
  325. default "Etc/UTC"
  326. help
  327. The time zone to install as the default local time, expressed as a
  328. tzdata location, such as:
  329. GMT
  330. Europe/Paris
  331. America/New_York
  332. Pacific/Wallis
  333. ...
  334. If empty, no local time will be set, and the dates will be
  335. expressed in UTC.
  336. endif # BR2_TARGET_TZ_INFO
  337. config BR2_ROOTFS_USERS_TABLES
  338. string "Path to the users tables"
  339. help
  340. Specify a space-separated list of users table locations,
  341. that will be passed to the mkusers utility to create
  342. users on the system, with home directory, password, etc.
  343. See manual for details on the usage and syntax of these files.
  344. config BR2_ROOTFS_OVERLAY
  345. string "Root filesystem overlay directories"
  346. default ""
  347. help
  348. Specify a list of directories that are copied over the target
  349. root filesystem after the build has finished and before it is
  350. packed into the selected filesystem images.
  351. They are copied as-is into the rootfs, excluding files ending with
  352. ~ and .git, .svn and .hg directories.
  353. config BR2_ROOTFS_POST_BUILD_SCRIPT
  354. string "Custom scripts to run before creating filesystem images"
  355. default ""
  356. help
  357. Specify a space-separated list of scripts to be run after the build
  358. has finished and before Buildroot starts packing the files into
  359. selected filesystem images.
  360. This gives users the opportunity to do board-specific cleanups,
  361. add-ons and the like, so the generated files can be used directly
  362. without further processing.
  363. These scripts are called with the target directory name as first
  364. argument. Make sure the exit code of those scripts are 0, otherwise
  365. make will stop after calling them.
  366. config BR2_ROOTFS_POST_FAKEROOT_SCRIPT
  367. string "Custom scripts to run inside the fakeroot environment"
  368. default ""
  369. help
  370. Specify a space-separated list of scripts to be run at the end
  371. of the fakeroot script right before the image(s) are actually
  372. generated.
  373. This gives users the opportunity to do customisations of the
  374. content of the rootfs, which would otherwise require root
  375. rigths.
  376. These scripts are called with the target directory name as
  377. first argument. The build will fail on the first scripts that
  378. exits with a non-zero exit code.
  379. Note that Buildroot already provides mechanisms to customise
  380. the content of the rootfs:
  381. - BR2_ROOTFS_STATIC_DEVICE_TABLE
  382. to create arbitrary entries statically in /dev
  383. - BR2_ROOTFS_DEVICE_TABLE
  384. to set arbitrary permissions as well as extended attributes
  385. (such as capabilities) on files and directories,
  386. - BR2_ROOTFS_USERS_TABLES:
  387. to create arbitrary users and their home directories
  388. It is highly recommended to use those mechanisms if possible,
  389. rather than using custom fakeroot scripts.
  390. config BR2_ROOTFS_POST_IMAGE_SCRIPT
  391. string "Custom scripts to run after creating filesystem images"
  392. default ""
  393. help
  394. Specify a space-separated list of scripts to be run after
  395. the build has finished and after Buildroot has packed the
  396. files into selected filesystem images.
  397. This can for example be used to call a tool building a
  398. firmware image from different images generated by Buildroot,
  399. or automatically extract the tarball root filesystem image
  400. into some location exported by NFS, or any other custom
  401. action.
  402. These scripts are called with the images directory name as
  403. first argument. The script is executed from the main Buildroot
  404. source directory as the current directory.
  405. config BR2_ROOTFS_POST_SCRIPT_ARGS
  406. string "Extra arguments passed to custom scripts"
  407. depends on BR2_ROOTFS_POST_BUILD_SCRIPT != "" \
  408. || BR2_ROOTFS_POST_FAKEROOT_SCRIPT != "" \
  409. || BR2_ROOTFS_POST_IMAGE_SCRIPT != ""
  410. help
  411. Pass these additional arguments to each post-build or post-image
  412. scripts.
  413. Note that all the post-build and post-image scripts will be passed
  414. the same set of arguments, you can not pass different arguments to
  415. each script.
  416. Note also, as stated in their respective help text, that the first
  417. argument to each post-build or post-image script is the target
  418. directory / images directory. The arguments in this option will be
  419. passed *after* those.
  420. endmenu