@@ -60,6 +60,7 @@ PACKAGECONFIG ??= " \
gshadow \
hibernate \
hostnamed \
+ hwdb \
idn \
ima \
kmod \
@@ -138,6 +139,7 @@ PACKAGECONFIG[homed] = "-Dhomed=enabled,-Dhomed=disabled"
PACKAGECONFIG[gshadow] = "-Dgshadow=true,-Dgshadow=false"
PACKAGECONFIG[hibernate] = "-Dhibernate=true,-Dhibernate=false"
PACKAGECONFIG[hostnamed] = "-Dhostnamed=true,-Dhostnamed=false"
+PACKAGECONFIG[hwdb] = "-Dhwdb=true,-Dhwdb=false"
PACKAGECONFIG[idn] = "-Didn=true,-Didn=false"
PACKAGECONFIG[ima] = "-Dima=true,-Dima=false"
# importd requires journal-upload/xz/zlib/bzip2/gcrypt
@@ -759,7 +761,7 @@ RDEPENDS:${PN} += "systemd-serialgetty"
RDEPENDS:${PN} += "volatile-binds"
RRECOMMENDS:${PN} += "${PN}-extra-utils \
- udev-hwdb \
+ ${@bb.utils.contains('PACKAGECONFIG', 'hwdb', 'udev-hwdb', '', d)} \
e2fsprogs-e2fsck \
kernel-module-autofs4 kernel-module-unix kernel-module-ipv6 kernel-module-sch-fq-codel \
os-release \
The hwdb is not that useful on embedded devices which may never see HID or PCI devices, and it uses a fair amount of storage. Add a packageconfig option which is enabled by default and only recommends udev-hwdb when it is enabled. usbutils and similar only RRECOMMEND it, so disabling it does not break them. Signed-off-by: Tan Siewert <tan.siewert@9elements.com> --- meta/recipes-core/systemd/systemd_262.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)