package/systemd: use systemd-hwdb for generating HWDB
udevadm has been deprecated for a while for building the HWDB, systemd-hwdb should be used in its place. This tool further has a switch to generate the database in /usr which is a better place for a one-time created file than the default /etc/udev. The systemd-hwdb wasn't enabled yet in the host build, so do that. Signed-off-by: Norbert Lange <nolange79@gmail.com> [Arnout: split in two separate commits] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
505b5a6cdd
commit
1532252520
@ -307,7 +307,7 @@ endif
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_HWDB),y)
|
||||
SYSTEMD_CONF_OPTS += -Dhwdb=true
|
||||
define SYSTEMD_BUILD_HWDB
|
||||
$(HOST_DIR)/bin/udevadm hwdb --update --root $(TARGET_DIR)
|
||||
$(HOST_DIR)/bin/systemd-hwdb update --root $(TARGET_DIR) --strict --usr
|
||||
endef
|
||||
SYSTEMD_TARGET_FINALIZE_HOOKS += SYSTEMD_BUILD_HWDB
|
||||
define SYSTEMD_RM_HWDB_SRV
|
||||
@ -819,7 +819,7 @@ HOST_SYSTEMD_CONF_OPTS = \
|
||||
-Dsysusers=false \
|
||||
-Dtmpfiles=true \
|
||||
-Dimportd=false \
|
||||
-Dhwdb=false \
|
||||
-Dhwdb=true \
|
||||
-Drfkill=false \
|
||||
-Dman=false \
|
||||
-Dhtml=false \
|
||||
|
Loading…
Reference in New Issue
Block a user