Config.in 25 KB

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