Config.in 25 KB

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