From 85062dcefc352f96b309cb232bc931374e8ca077 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Sat, 28 Aug 2021 20:46:28 -0600 Subject: [PATCH] package/swupdate: enable/disable systemd support automatically This needs to be set properly so that services work correctly. Enable disable automatically based on BR2_PACKAGE_SYSTEMD state. Signed-off-by: James Hilliard Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/swupdate/swupdate.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/swupdate/swupdate.mk b/package/swupdate/swupdate.mk index fd0fb763c9..c9bd486127 100644 --- a/package/swupdate/swupdate.mk +++ b/package/swupdate/swupdate.mk @@ -139,6 +139,13 @@ endif ifeq ($(BR2_PACKAGE_SYSTEMD),y) SWUPDATE_DEPENDENCIES += systemd +define SWUPDATE_SET_SYSTEMD + $(call KCONFIG_ENABLE_OPT,CONFIG_SYSTEMD) +endef +else +define SWUPDATE_SET_SYSTEMD + $(call KCONFIG_DISABLE_OPT,CONFIG_SYSTEMD) +endef endif ifeq ($(BR2_PACKAGE_LIBUBOOTENV),y) @@ -192,6 +199,7 @@ SWUPDATE_MAKE_OPTS = \ define SWUPDATE_KCONFIG_FIXUP_CMDS $(SWUPDATE_SET_LUA_VERSION) + $(SWUPDATE_SET_SYSTEMD) endef define SWUPDATE_BUILD_CMDS -- 2.30.2