aboutsummaryrefslogtreecommitdiff
path: root/package/systemd/Config.in
diff options
context:
space:
mode:
authorGravatar Marcin Niestroj <m.niestroj@grinn-global.com>2016-04-15 12:46:30 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-06-15 23:21:33 +0200
commit42f9d9e37b8e9195e29754e383960886a9460f58 (patch)
treeb5fa650402b8fd9405ab77556fb2ac4813157fdc /package/systemd/Config.in
parent2abce7a7fa2f4c66c9468ab61c82d2a4f27fb2fc (diff)
downloadbuildroot-42f9d9e37b8e9195e29754e383960886a9460f58.tar.gz
buildroot-42f9d9e37b8e9195e29754e383960886a9460f58.tar.bz2
package/systemd: Optionally disable hwdb
By default hwdb files are installed in /usr/lib/udev/hwdb.d Currently they take about ~5MB. After first boot, systemd-hwdb tool parses them and creates a binary in /etc/udev/hwdb.bin, which takes another ~6.5MB. In case of initramfs images, hwdb parsing is done every boot. This adds about 2-3 seconds to boot time in case of rootfs on SDHC class 10 card (benchmarked with am335x board). NAND boot takes even longer. Add config option to disable hwdb in systemd, for smaller images and better boot performance. Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/systemd/Config.in')
-rw-r--r--package/systemd/Config.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/systemd/Config.in b/package/systemd/Config.in
index 97d48c4124..324e884489 100644
--- a/package/systemd/Config.in
+++ b/package/systemd/Config.in
@@ -84,6 +84,17 @@ config BR2_PACKAGE_SYSTEMD_JOURNAL_GATEWAY
http://www.freedesktop.org/software/systemd/man/systemd-journal-gatewayd.service.html
+config BR2_PACKAGE_SYSTEMD_HWDB
+ bool "enable hwdb installation"
+ default y
+ help
+ Enables hardware database installation to /usr/lib/udev/hwdb.d
+
+ Disabling this option improves first boot time (or every boot
+ time in case of initramfs images) and saves several MB space.
+
+ https://www.freedesktop.org/software/systemd/man/hwdb.html
+
config BR2_PACKAGE_SYSTEMD_BINFMT
bool "enable binfmt tool"
help