2
1

Config.in 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  1. menu "System configuration"
  2. # Note on package/skeleton: usually, it is not safe to 'select' a
  3. # provider of a virtual package. But below we have an exception: each
  4. # init system may select one of the virtual skeleton-init-* packages.
  5. # As only one init system may be enabled, only one skeleton-init-* may
  6. # be selected. So this is a safe situation.
  7. choice
  8. prompt "Root FS skeleton"
  9. config BR2_ROOTFS_SKELETON_DEFAULT
  10. bool "default target skeleton"
  11. help
  12. Use default target skeleton for selected init system.
  13. config BR2_ROOTFS_SKELETON_CUSTOM
  14. bool "custom target skeleton"
  15. select BR2_PACKAGE_SKELETON_CUSTOM
  16. help
  17. Use custom target skeleton.
  18. # skeleton from br2-external trees, if any
  19. source "$BR2_BASE_DIR/.br2-external.in.skeleton"
  20. endchoice
  21. if BR2_ROOTFS_SKELETON_CUSTOM
  22. config BR2_ROOTFS_SKELETON_CUSTOM_PATH
  23. string "custom target skeleton path"
  24. help
  25. Path to custom target skeleton.
  26. endif
  27. if BR2_ROOTFS_SKELETON_DEFAULT
  28. config BR2_TARGET_GENERIC_HOSTNAME
  29. string "System hostname"
  30. default "buildroot"
  31. help
  32. Select system hostname to be stored in /etc/hostname.
  33. Leave empty to not create /etc/hostname, or to keep the
  34. one from a custom skeleton.
  35. config BR2_TARGET_GENERIC_ISSUE
  36. string "System banner"
  37. default "Welcome to Buildroot"
  38. help
  39. Select system banner (/etc/issue) to be displayed at login.
  40. Leave empty to not create /etc/issue, or to keep the
  41. one from a custom skeleton.
  42. endif
  43. choice
  44. bool "Passwords encoding"
  45. default BR2_TARGET_GENERIC_PASSWD_SHA256
  46. help
  47. Choose the password encoding scheme to use when Buildroot
  48. needs to encode a password (eg. the root password, below).
  49. Note: this is used at build-time, and *not* at runtime.
  50. config BR2_TARGET_GENERIC_PASSWD_SHA256
  51. bool "sha-256"
  52. help
  53. Use SHA256 to encode passwords which is stronger than MD5.
  54. config BR2_TARGET_GENERIC_PASSWD_SHA512
  55. bool "sha-512"
  56. help
  57. Use SHA512 to encode passwords which is stronger than SHA256
  58. endchoice # Passwd encoding
  59. config BR2_TARGET_GENERIC_PASSWD_METHOD
  60. string
  61. default "sha-256" if BR2_TARGET_GENERIC_PASSWD_SHA256
  62. default "sha-512" if BR2_TARGET_GENERIC_PASSWD_SHA512
  63. # See comment at the top of the file, about selecting individual
  64. # skeletons, which are providers of the virtual skeleton package.
  65. choice
  66. prompt "Init system"
  67. default BR2_INIT_BUSYBOX
  68. comment "General purpose"
  69. config BR2_INIT_BUSYBOX
  70. bool "BusyBox"
  71. select BR2_PACKAGE_BUSYBOX
  72. select BR2_PACKAGE_INITSCRIPTS
  73. select BR2_PACKAGE_SKELETON_INIT_SYSV if BR2_ROOTFS_SKELETON_DEFAULT
  74. config BR2_INIT_SYSV
  75. bool "systemV"
  76. depends on BR2_USE_MMU # sysvinit
  77. select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # sysvinit
  78. select BR2_PACKAGE_INITSCRIPTS
  79. select BR2_PACKAGE_SYSVINIT
  80. select BR2_PACKAGE_SKELETON_INIT_SYSV if BR2_ROOTFS_SKELETON_DEFAULT
  81. config BR2_INIT_OPENRC
  82. bool "OpenRC"
  83. depends on BR2_USE_MMU
  84. depends on !BR2_STATIC_LIBS
  85. depends on !BR2_TOOLCHAIN_USES_UCLIBC # openrc
  86. select BR2_PACKAGE_OPENRC
  87. select BR2_PACKAGE_SKELETON_INIT_OPENRC if BR2_ROOTFS_SKELETON_DEFAULT
  88. comment "openrc needs a glibc or musl toolchain w/ dynamic library"
  89. depends on BR2_USE_MMU
  90. depends on BR2_STATIC_LIBS && BR2_TOOLCHAIN_USES_UCLIBC
  91. # In Buildroot, we decided not to support a split-usr when systemd is
  92. # used as an init system. This is a design decision, not a systemd
  93. # issue. Thus the select is with BR2_INIT_SYSTEMD (below) rather than
  94. # with BR2_PACKAGE_SYSTEMD.
  95. config BR2_INIT_SYSTEMD
  96. bool "systemd"
  97. depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
  98. depends on BR2_USE_MMU
  99. depends on !BR2_STATIC_LIBS
  100. depends on BR2_TOOLCHAIN_USES_GLIBC
  101. depends on BR2_TOOLCHAIN_HAS_SSP
  102. depends on BR2_TOOLCHAIN_HAS_THREADS
  103. depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
  104. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8
  105. depends on BR2_HOST_GCC_AT_LEAST_8
  106. select BR2_ROOTFS_MERGED_USR
  107. select BR2_PACKAGE_SYSTEMD
  108. select BR2_PACKAGE_SKELETON_INIT_SYSTEMD if BR2_ROOTFS_SKELETON_DEFAULT
  109. comment "systemd needs a glibc toolchain w/ SSP, headers >= 3.15, host and target gcc >= 8"
  110. depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
  111. depends on BR2_USE_MMU
  112. depends on !BR2_TOOLCHAIN_USES_GLIBC || \
  113. !BR2_TOOLCHAIN_HAS_SSP || \
  114. !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15 || \
  115. !BR2_TOOLCHAIN_GCC_AT_LEAST_8 || \
  116. !BR2_HOST_GCC_AT_LEAST_8
  117. comment "systemd highly recommends Linux >= 4.15"
  118. depends on BR2_INIT_SYSTEMD
  119. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
  120. comment "Special purpose (read help)"
  121. config BR2_INIT_TINI
  122. bool "tini"
  123. depends on BR2_USE_MMU # tini
  124. select BR2_PACKAGE_TINI
  125. select BR2_PACKAGE_SKELETON_INIT_NONE if BR2_ROOTFS_SKELETON_DEFAULT
  126. help
  127. Tini - A tiny but valid init for containers
  128. Tini is the simplest init you could think of.
  129. All Tini does is spawn a single child (Tini is meant to be run
  130. in a container), and wait for it to exit all the while reaping
  131. zombies and performing signal forwarding.
  132. https://github.com/krallin/tini
  133. config BR2_INIT_NONE
  134. bool "Custom (none)"
  135. select BR2_PACKAGE_SKELETON_INIT_NONE if BR2_ROOTFS_SKELETON_DEFAULT
  136. help
  137. Buildroot will not install any init system. You will
  138. have to provide your own, either with a new package
  139. or with a rootfs-overlay.
  140. # Init systems from br2-external trees, if any
  141. source "$BR2_BASE_DIR/.br2-external.in.init"
  142. endchoice
  143. if BR2_INIT_SYSTEMD
  144. choice
  145. bool "/var management"
  146. default BR2_INIT_SYSTEMD_VAR_FACTORY # legacy
  147. depends on !BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
  148. help
  149. Select how Buildroot provides a read-write /var when the
  150. rootfs is not remounted read-write.
  151. Note: Buildroot uses a tmpfs, either as a mount point or as
  152. the upper of an overlayfs, so as to at least make the system
  153. bootable out of the box; mounting a filesystem from actual
  154. storage is left to the integration, as it is too specific and
  155. may need preparatory work like partitionning a device and/or
  156. formatting a filesystem first, which falls out of the scope
  157. of Buildroot.
  158. config BR2_INIT_SYSTEMD_VAR_FACTORY
  159. bool "build a factory to populate a tmpfs"
  160. help
  161. Build a factory of the content of /var as installed by
  162. packages, mount a tmpfs on /var at runtime, so that
  163. systemd-tmpfiles can populate it from the factory.
  164. This may help on a read-only rootfs.
  165. It probably does not play very well with triggering a call
  166. to systemd-tmpfiles at build time (below).
  167. To use persistent storage, provide a systemd dropin for the
  168. var.mount unit, that overrides the What and Type, and possibly
  169. the Options and After, fields.
  170. config BR2_INIT_SYSTEMD_VAR_OVERLAYFS
  171. bool "mount an overlayfs backed by a tmpfs"
  172. select BR2_INIT_SYSTEMD_POPULATE_TMPFILES
  173. help
  174. Mount an overlayfs on /var, with the upper as a tmpfs.
  175. To use a persistent storage, provide either a mount unit or a
  176. fstab line to mount it on /run/buildroot/mounts/var, e.g.
  177. /dev/sdc1 /run/buildroot/mounts/var ext4 defaults
  178. config BR2_INIT_SYSTEMD_VAR_NONE
  179. bool "do nothing"
  180. help
  181. Choose this if you have custom dispositions (like one or more
  182. of a post-build script, a fakeroot script, systemd units, an
  183. initramfs, or something else) that prepare /var to be writable
  184. on a read-only rootfs.
  185. endchoice
  186. config BR2_INIT_SYSTEMD_POPULATE_TMPFILES
  187. bool "trigger systemd-tmpfiles during build"
  188. default y # legacy
  189. help
  190. Act on the systemd-tmpfiles.d database at build time, when
  191. assembling the root filesystems.
  192. This may help on a read-only filesystem.
  193. It probably does not play very well with the /var factory
  194. (above).
  195. config BR2_PACKAGE_SYSTEMD_DEFAULT_TARGET
  196. string "The default unit systemd starts at bootup"
  197. default "multi-user.target"
  198. help
  199. Specify the name of the unit configuration file to be started
  200. at bootup by systemd. Should end in ".target".
  201. ex: multi-user.target
  202. https://www.freedesktop.org/software/systemd/man/systemd.special.html#default.target
  203. endif # BR2_INIT_SYSTEMD
  204. choice
  205. prompt "/dev management" if !BR2_INIT_SYSTEMD
  206. default BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
  207. config BR2_ROOTFS_DEVICE_CREATION_STATIC
  208. bool "Static using device table"
  209. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
  210. bool "Dynamic using devtmpfs only"
  211. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV
  212. bool "Dynamic using devtmpfs + mdev"
  213. select BR2_PACKAGE_BUSYBOX
  214. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
  215. bool "Dynamic using devtmpfs + eudev"
  216. depends on BR2_USE_WCHAR # eudev
  217. depends on !BR2_STATIC_LIBS # eudev
  218. depends on BR2_USE_MMU # eudev
  219. select BR2_PACKAGE_EUDEV
  220. comment "eudev needs a toolchain w/ wchar, dynamic library"
  221. depends on BR2_USE_MMU
  222. depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
  223. endchoice
  224. comment "/dev management using udev (from systemd)"
  225. depends on BR2_INIT_SYSTEMD
  226. config BR2_ROOTFS_DEVICE_TABLE
  227. string "Path to the permission tables"
  228. default "system/device_table.txt"
  229. help
  230. Specify a space-separated list of permission table locations,
  231. that will be passed to the makedevs utility to assign
  232. correct owners and permissions on various files in the
  233. target filesystem.
  234. See package/makedevs/README for details on the usage and
  235. syntax of these files.
  236. config BR2_ROOTFS_STATIC_DEVICE_TABLE
  237. string "Path to the device tables"
  238. default "system/device_table_dev.txt"
  239. depends on BR2_ROOTFS_DEVICE_CREATION_STATIC
  240. help
  241. Specify a space-separated list of device table locations,
  242. that will be passed to the makedevs utility to create all
  243. the special device files under /dev.
  244. See package/makedevs/README for details on the usage and
  245. syntax of these files.
  246. config BR2_ROOTFS_DEVICE_TABLE_SUPPORTS_EXTENDED_ATTRIBUTES
  247. bool "support extended attributes in device tables"
  248. help
  249. Support extended attributes handling in device tables
  250. config BR2_ROOTFS_MERGED_USR
  251. bool "Use symlinks to /usr for /bin, /sbin and /lib"
  252. help
  253. If you say 'n' here, then /bin, /sbin and /lib and their
  254. counterparts in /usr will be separate directories. This
  255. is the historical UNIX way. In this case, /usr can be a
  256. filesystem on a partition separate from / .
  257. If you say 'y' here, then /bin, /sbin and /lib will be
  258. symlinks to their counterparts in /usr. In this case, /usr can
  259. not be a separate filesystem.
  260. if BR2_ROOTFS_SKELETON_DEFAULT
  261. config BR2_TARGET_ENABLE_ROOT_LOGIN
  262. bool "Enable root login with password"
  263. default y
  264. select BR2_PACKAGE_HOST_MKPASSWD if BR2_TARGET_GENERIC_ROOT_PASSWD != ""
  265. help
  266. Allow root to log in with a password.
  267. If not enabled, root will not be able to log in with a
  268. password. However, if you have an ssh server and you add an
  269. ssh key, you can still allow root to log in. Alternatively,
  270. you can use sudo to become root.
  271. config BR2_TARGET_GENERIC_ROOT_PASSWD
  272. string "Root password"
  273. default ""
  274. depends on BR2_TARGET_ENABLE_ROOT_LOGIN
  275. help
  276. Set the initial root password.
  277. If set to empty (the default), then no root password will be
  278. set, and root will need no password to log in.
  279. If the password starts with any of $1$, $5$ or $6$, it is
  280. considered to be already crypt-encoded with respectively md5,
  281. sha256 or sha512. Any other value is taken to be a clear-text
  282. value, and is crypt-encoded as per the "Passwords encoding"
  283. scheme, above.
  284. Note: "$" signs in the hashed password must be doubled. For
  285. example, if the hashed password is
  286. "$1$longsalt$v35DIIeMo4yUfI23yditq0", then you must enter it
  287. as "$$1$$longsalt$$v35DIIeMo4yUfI23yditq0" (this is necessary
  288. otherwise make would attempt to interpret the $ as a variable
  289. expansion).
  290. WARNING! WARNING!
  291. The password appears as-is in the .config file, and may appear
  292. in the build log! Avoid using a valuable password if either
  293. the .config file or the build log may be distributed, or at
  294. the very least use a strong cryptographic hash for your
  295. password!
  296. choice
  297. bool "/bin/sh"
  298. default BR2_SYSTEM_BIN_SH_DASH if !BR2_PACKAGE_BUSYBOX
  299. help
  300. Select which shell will provide /bin/sh.
  301. # busybox has shells that work on noMMU
  302. config BR2_SYSTEM_BIN_SH_BUSYBOX
  303. bool "busybox' default shell"
  304. depends on BR2_PACKAGE_BUSYBOX
  305. config BR2_SYSTEM_BIN_SH_BASH
  306. bool "bash"
  307. depends on BR2_USE_MMU # bash
  308. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  309. select BR2_PACKAGE_BASH
  310. config BR2_SYSTEM_BIN_SH_DASH
  311. bool "dash"
  312. depends on BR2_USE_MMU # dash
  313. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  314. select BR2_PACKAGE_DASH
  315. config BR2_SYSTEM_BIN_SH_MKSH
  316. bool "mksh"
  317. depends on BR2_USE_MMU # mksh
  318. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  319. select BR2_PACKAGE_MKSH
  320. config BR2_SYSTEM_BIN_SH_ZSH
  321. bool "zsh"
  322. depends on BR2_USE_MMU # zsh
  323. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  324. select BR2_PACKAGE_ZSH
  325. comment "bash, dash, mksh, zsh need BR2_PACKAGE_BUSYBOX_SHOW_OTHERS"
  326. depends on !BR2_PACKAGE_BUSYBOX_SHOW_OTHERS && BR2_PACKAGE_BUSYBOX
  327. config BR2_SYSTEM_BIN_SH_NONE
  328. bool "none"
  329. endchoice # /bin/sh
  330. config BR2_SYSTEM_BIN_SH
  331. string
  332. default "bash" if BR2_SYSTEM_BIN_SH_BASH
  333. default "dash" if BR2_SYSTEM_BIN_SH_DASH
  334. default "mksh" if BR2_SYSTEM_BIN_SH_MKSH
  335. default "zsh" if BR2_SYSTEM_BIN_SH_ZSH
  336. menuconfig BR2_TARGET_GENERIC_GETTY
  337. bool "Run a getty (login prompt) after boot"
  338. default y if !BR2_PACKAGE_PETITBOOT
  339. if BR2_TARGET_GENERIC_GETTY
  340. config BR2_TARGET_GENERIC_GETTY_PORT
  341. string "TTY port"
  342. default "console"
  343. help
  344. Specify a port to run a getty on.
  345. choice
  346. prompt "Baudrate"
  347. default BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  348. help
  349. Select a baudrate to use.
  350. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  351. bool "keep kernel default"
  352. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
  353. bool "9600"
  354. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
  355. bool "19200"
  356. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
  357. bool "38400"
  358. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
  359. bool "57600"
  360. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  361. bool "115200"
  362. endchoice
  363. config BR2_TARGET_GENERIC_GETTY_BAUDRATE
  364. string
  365. default "0" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  366. default "9600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
  367. default "19200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
  368. default "38400" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
  369. default "57600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
  370. default "115200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  371. config BR2_TARGET_GENERIC_GETTY_TERM
  372. string "TERM environment variable"
  373. default "vt100"
  374. # currently observed by all but systemd
  375. depends on !BR2_INIT_SYSTEMD
  376. help
  377. Specify a TERM type.
  378. config BR2_TARGET_GENERIC_GETTY_OPTIONS
  379. string "other options to pass to getty"
  380. default ""
  381. # currently observed by all but systemd
  382. depends on !BR2_INIT_SYSTEMD
  383. help
  384. Any other flags you want to pass to getty,
  385. Refer to getty --help for details.
  386. endif
  387. config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
  388. bool "remount root filesystem read-write during boot"
  389. default y
  390. help
  391. The root filesystem is typically mounted read-only at boot.
  392. By default, buildroot remounts it in read-write mode early
  393. during the boot process.
  394. Say no here if you would rather like your root filesystem to
  395. remain read-only.
  396. If unsure, say Y.
  397. config BR2_SYSTEM_DHCP
  398. string "Network interface to configure through DHCP"
  399. default ""
  400. depends on BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN || \
  401. BR2_PACKAGE_SYSTEMD_NETWORKD || BR2_PACKAGE_NETIFRC
  402. help
  403. Enter here the name of the network interface (E.G. eth0) to
  404. automatically configure through DHCP at bootup.
  405. If left empty, no automatic DHCP requests will take place.
  406. For more complicated network setups use an overlay to
  407. overwrite /etc/network/interfaces or add a networkd
  408. configuration file.
  409. comment "automatic network configuration via DHCP needs ifupdown or busybox or networkd or netifrc"
  410. depends on !(BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN || \
  411. BR2_PACKAGE_SYSTEMD_NETWORKD || BR2_PACKAGE_NETIFRC)
  412. endif # BR2_ROOTFS_SKELETON_DEFAULT
  413. config BR2_SYSTEM_DEFAULT_PATH
  414. string "Set the system's default PATH"
  415. default "/usr/bin:/usr/sbin" if BR2_ROOTFS_MERGED_USR
  416. default "/bin:/sbin:/usr/bin:/usr/sbin" if !BR2_ROOTFS_MERGED_USR
  417. help
  418. Sets the system's default PATH. It is being used in
  419. /etc/profile in the skeleton-init-common package and by some
  420. daemons.
  421. The default should work in most cases.
  422. config BR2_ENABLE_LOCALE_PURGE
  423. bool "Purge unwanted locales"
  424. default y
  425. help
  426. Explicitly specify what locales to install on target. If N
  427. then all locales supported by packages are installed.
  428. config BR2_ENABLE_LOCALE_WHITELIST
  429. string "Locales to keep"
  430. default "C en_US"
  431. depends on BR2_ENABLE_LOCALE_PURGE
  432. help
  433. Whitespace separated list of locales to allow on target.
  434. Locales not listed here will be removed from the target.
  435. See 'locale -a' on your host for a list of locales available
  436. on your build host, or have a look in /usr/share/locale in
  437. the target file system for available locales.
  438. Notice that listing a locale here doesn't guarantee that it
  439. will be available on the target - That purely depends on the
  440. support for that locale in the selected packages.
  441. config BR2_GENERATE_LOCALE
  442. string "Generate locale data"
  443. default ""
  444. depends on \
  445. (BR2_TOOLCHAIN_BUILDROOT_UCLIBC && BR2_ENABLE_LOCALE) || \
  446. BR2_TOOLCHAIN_USES_GLIBC
  447. help
  448. Generate support for a list of locales. Locales can be
  449. specified with or without encoding, when no encoding is
  450. specified, UTF-8 is assumed. Examples of locales: en_US,
  451. fr_FR.UTF-8.
  452. config BR2_SYSTEM_ENABLE_NLS
  453. bool "Enable Native Language Support (NLS)"
  454. depends on BR2_USE_WCHAR
  455. # - glibc has built-in NLS support, but anyway doesn't
  456. # support static linking
  457. # - musl and uclibc support static linking, but they don't
  458. # have built-in NLS support, which is provided by the
  459. # libintl library from gettext. The fact that it is a
  460. # separate library causes too many problems for static
  461. # linking.
  462. depends on !BR2_STATIC_LIBS
  463. select BR2_PACKAGE_GETTEXT if !BR2_TOOLCHAIN_HAS_FULL_GETTEXT
  464. help
  465. This option will enable Native Language Support, which will
  466. allow software packages to support translations.
  467. comment "NLS support needs a toolchain w/ wchar, dynamic library"
  468. depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
  469. config BR2_TARGET_TZ_INFO
  470. bool "Install timezone info"
  471. select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_GLIBC
  472. select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_MUSL
  473. select BR2_PACKAGE_TZ if BR2_TOOLCHAIN_USES_UCLIBC
  474. help
  475. Say 'y' here to install timezone info.
  476. if BR2_TARGET_TZ_INFO
  477. config BR2_TARGET_TZ_ZONELIST
  478. string "timezone list"
  479. default "default"
  480. help
  481. Space-separated list of time zones to compile.
  482. The value "default" includes all commonly used time zones.
  483. Note that this set consumes around 5.5M for glibc and 2.1M for
  484. uClibc.
  485. The full list is the list of files in the time zone database
  486. source, not including the build and .tab files.
  487. config BR2_TARGET_LOCALTIME
  488. string "default local time"
  489. default "Etc/UTC"
  490. help
  491. The time zone to install as the default local time, expressed
  492. as a tzdata location, such as:
  493. Etc/UTC (the default)
  494. GMT
  495. Europe/Paris
  496. America/New_York
  497. Pacific/Wallis
  498. ...
  499. Set to empty to not install a default time zone.
  500. endif # BR2_TARGET_TZ_INFO
  501. config BR2_ROOTFS_USERS_TABLES
  502. string "Path to the users tables"
  503. help
  504. Specify a space-separated list of users table locations,
  505. that will be passed to the mkusers utility to create
  506. users on the system, with home directory, password, etc.
  507. See manual for details on the usage and syntax of these files.
  508. config BR2_ROOTFS_OVERLAY
  509. string "Root filesystem overlay directories"
  510. default ""
  511. help
  512. Specify a list of directories that are copied over the target
  513. root filesystem after the build has finished and before it is
  514. packed into the selected filesystem images.
  515. They are copied as-is into the rootfs, excluding files ending
  516. with ~ and .git, .svn and .hg directories.
  517. config BR2_ROOTFS_PRE_BUILD_SCRIPT
  518. string "Custom scripts to run before commencing the build"
  519. default ""
  520. help
  521. Specify a space-separated list of scripts to be run before the
  522. build commences.
  523. This gives users the opportunity to do board-specific
  524. preparations before starting the build.
  525. config BR2_ROOTFS_POST_BUILD_SCRIPT
  526. string "Custom scripts to run before creating filesystem images"
  527. default ""
  528. help
  529. Specify a space-separated list of scripts to be run after the
  530. build has finished and before Buildroot starts packing the
  531. files into selected filesystem images.
  532. This gives users the opportunity to do board-specific
  533. cleanups, add-ons and the like, so the generated files can be
  534. used directly without further processing.
  535. These scripts are called with the target directory name as
  536. first argument. Make sure the exit code of those scripts are
  537. 0, otherwise make will stop after calling them.
  538. config BR2_ROOTFS_POST_FAKEROOT_SCRIPT
  539. string "Custom scripts to run inside the fakeroot environment"
  540. default ""
  541. help
  542. Specify a space-separated list of scripts to be run at the end
  543. of the fakeroot script right before the image(s) are actually
  544. generated.
  545. This gives users the opportunity to do customisations of the
  546. content of the rootfs, which would otherwise require root
  547. rights.
  548. These scripts are called with the target directory name as
  549. first argument. The build will fail on the first scripts that
  550. exits with a non-zero exit code.
  551. Note that Buildroot already provides mechanisms to customise
  552. the content of the rootfs:
  553. - BR2_ROOTFS_STATIC_DEVICE_TABLE
  554. to create arbitrary entries statically in /dev
  555. - BR2_ROOTFS_DEVICE_TABLE
  556. to set arbitrary permissions as well as extended
  557. attributes (such as capabilities) on files and
  558. directories,
  559. - BR2_ROOTFS_USERS_TABLES:
  560. to create arbitrary users and their home directories
  561. It is highly recommended to use those mechanisms if possible,
  562. rather than using custom fakeroot scripts.
  563. config BR2_ROOTFS_POST_IMAGE_SCRIPT
  564. string "Custom scripts to run after creating filesystem images"
  565. default ""
  566. help
  567. Specify a space-separated list of scripts to be run after
  568. the build has finished and after Buildroot has packed the
  569. files into selected filesystem images.
  570. This can for example be used to call a tool building a
  571. firmware image from different images generated by Buildroot,
  572. or automatically extract the tarball root filesystem image
  573. into some location exported by NFS, or any other custom
  574. action.
  575. These scripts are called with the images directory name as
  576. first argument. The script is executed from the main Buildroot
  577. source directory as the current directory.
  578. config BR2_ROOTFS_POST_SCRIPT_ARGS
  579. string "Extra arguments passed to custom scripts"
  580. depends on BR2_ROOTFS_PRE_BUILD_SCRIPT != "" \
  581. || BR2_ROOTFS_POST_BUILD_SCRIPT != "" \
  582. || BR2_ROOTFS_POST_FAKEROOT_SCRIPT != "" \
  583. || BR2_ROOTFS_POST_IMAGE_SCRIPT != ""
  584. help
  585. Pass these additional arguments to each pre-build, post-build,
  586. post-fakeroot and post-image scripts.
  587. Note that all the post-build and post-image scripts will be
  588. passed the same set of arguments, you can not pass different
  589. arguments to each script.
  590. Note also, as stated in their respective help text, that the
  591. first argument to each script is the target directory / images
  592. directory. The arguments in this option will be passed *after*
  593. those.
  594. config BR2_ROOTFS_PRE_BUILD_SCRIPT_ARGS
  595. string "Extra arguments passed to BR2_ROOTFS_PRE_BUILD_SCRIPT"
  596. depends on BR2_ROOTFS_PRE_BUILD_SCRIPT != ""
  597. help
  598. Pass these additional arguments to the pre-build script.
  599. Note also, as stated in the respective help text, that the
  600. first argument to each script is the target directory, then
  601. the common arguments specified in BR2_ROOTFS_POST_SCRIPT_ARGS
  602. above, and then the arguments in this option will be passed
  603. *after* those.
  604. config BR2_ROOTFS_POST_BUILD_SCRIPT_ARGS
  605. string "Extra arguments passed to BR2_ROOTFS_POST_BUILD_SCRIPT"
  606. depends on BR2_ROOTFS_POST_BUILD_SCRIPT != ""
  607. help
  608. Pass these additional arguments to the post-build script.
  609. Note also, as stated in the respective help text, that the
  610. first argument to each script is the target directory, then
  611. the common arguments specified in BR2_ROOTFS_POST_SCRIPT_ARGS
  612. above, and then the arguments in this option will be passed
  613. *after* those.
  614. config BR2_ROOTFS_POST_FAKEROOT_SCRIPT_ARGS
  615. string "Extra arguments passed to BR2_ROOTFS_POST_FAKEROOT_SCRIPT"
  616. depends on BR2_ROOTFS_POST_FAKEROOT_SCRIPT != ""
  617. help
  618. Pass these additional arguments to the post-fakeroot script.
  619. Note also, as stated in the respective help text, that the
  620. first argument to each script is the target directory, then
  621. the common arguments specified in BR2_ROOTFS_POST_SCRIPT_ARGS
  622. above, and then the arguments in this option will be passed
  623. *after* those.
  624. config BR2_ROOTFS_POST_IMAGE_SCRIPT_ARGS
  625. string "Extra arguments passed to POST_IMAGE_SCRIPT"
  626. depends on BR2_ROOTFS_POST_IMAGE_SCRIPT != ""
  627. help
  628. Pass these additional arguments to the post-image script.
  629. Note also, as stated in the respective help text, that the
  630. first argument to each script is the images directory, then
  631. the common arguments specified in BR2_ROOTFS_POST_SCRIPT_ARGS
  632. above, and then the arguments in this option will be passed
  633. *after* those.
  634. endmenu