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 <[email protected]> --- meta/recipes-core/systemd/systemd_262.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/systemd/systemd_262.bb b/meta/recipes-core/systemd/systemd_262.bb index 60d8ed00d5..03f4e049d5 100644 --- a/meta/recipes-core/systemd/systemd_262.bb +++ b/meta/recipes-core/systemd/systemd_262.bb @@ -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 \ -- 2.53.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#248539): https://lists.openembedded.org/g/openembedded-core/message/248539 Mute This Topic: https://lists.openembedded.org/mt/121898197/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
