package/rauc-hawkbit-updater: add systemd optional dependency

Take the systemd into account if present.

Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 4aa7a4ad8a6f729ad6ee6baf16f01d657559b3e6)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Bartosz Bilas 2024-07-10 11:41:38 +02:00 committed by Peter Korsgaard
parent 78ea31ddd7
commit 1d91c6fda4

View File

@ -12,4 +12,11 @@ RAUC_HAWKBIT_UPDATER_LICENSE_FILES = LICENSE
RAUC_HAWKBIT_UPDATER_DEPENDENCIES = json-glib libcurl
RAUC_HAWKBIT_UPDATER_CFLAGS = $(TARGET_CFLAGS) -std=c99
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
RAUC_HAWKBIT_UPDATER_DEPENDENCIES += systemd
RAUC_HAWKBIT_UPDATER_CONF_OPTS += -Dsystemd=enabled
else
RAUC_HAWKBIT_UPDATER_CONF_OPTS += -Dsystemd=disabled
endif
$(eval $(meson-package))