From: Tan Siewert <tan.siewert@9elements.com>
To: openembedded-core@lists.openembedded.org
Cc: Sai Sireesha T <saisireesha.t@windriver.com>,
Tan Siewert <tan.siewert@9elements.com>
Subject: [PATCH v2 3/4] systemd: add hwdb packageconfig
Date: Mon, 23 Nov 2026 20:22:43 +0100 [thread overview]
Message-ID: <20261123-systemd-optimisations-v2-3-0ecd5965985c@9elements.com> (raw)
In-Reply-To: <20261123-systemd-optimisations-v2-0-0ecd5965985c@9elements.com>
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.2.bb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-core/systemd/systemd_262.2.bb b/meta/recipes-core/systemd/systemd_262.2.bb
index 899df09fa2..5841ee3322 100644
--- a/meta/recipes-core/systemd/systemd_262.2.bb
+++ b/meta/recipes-core/systemd/systemd_262.2.bb
@@ -59,6 +59,7 @@ PACKAGECONFIG ??= " \
gshadow \
hibernate \
hostnamed \
+ hwdb \
idn \
ima \
kmod \
@@ -137,6 +138,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 \
--
2.56.0
next prev parent reply other threads:[~2026-11-23 19:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 19:22 [PATCH v2 0/4] systemd: add packageconfigs for storage optimisation Tan Siewert
2026-11-23 19:22 ` [PATCH v2 1/4] systemd: add ukify packageconfig Tan Siewert
2026-11-23 19:22 ` [PATCH v2 2/4] systemd: add sysinstall packageconfig Tan Siewert
2026-11-23 19:22 ` Tan Siewert [this message]
2026-11-23 19:22 ` [PATCH v2 4/4] systemd: add fdisk packageconfig Tan Siewert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261123-systemd-optimisations-v2-3-0ecd5965985c@9elements.com \
--to=tan.siewert@9elements.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=saisireesha.t@windriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox