From: James Hilliard Date: Sun, 29 Aug 2021 02:46:28 +0000 (-0600) Subject: package/swupdate: enable/disable systemd support automatically X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=85062dcefc352f96b309cb232bc931374e8ca077;p=buildroot.git 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) --- 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