Allow passing through the environment if libsystemd is available
for the build target.
Defaults to yes because we do not do any library checking for now.
Signed-off-by: James Hilliard <
james.h...@gmail.com>
---
Kconfig | 8 ++++++++
Makefile.deps | 8 ++++++++
2 files changed, 16 insertions(+)
diff --git a/Kconfig b/Kconfig
index ece4537..7660602 100644
--- a/Kconfig
+++ b/Kconfig
@@ -77,6 +77,10 @@ config HAVE_LIBSSL
bool
option env="HAVE_LIBSSL"
+config HAVE_LIBSYSTEMD
+ bool
+ option env="HAVE_LIBSYSTEMD"
+
config HAVE_LIBCRYPTO
bool
option env="HAVE_LIBCRYPTO"
@@ -120,11 +124,15 @@ config CURL_SSL
config SYSTEMD
bool "enable systemd support"
depends on HAVE_LINUX
+ depends on HAVE_LIBSYSTEMD
default n
help
Enable support for systemd's start-up completion
notification and socket-based activation features.
+comment "systemd support needs libsystemd"
+ depends on !HAVE_LIBSYSTEMD && HAVE_LINUX
+
config DEFAULT_CONFIG_FILE
string "File with default settings"
default "/etc/swupdate.cfg"
diff --git a/Makefile.deps b/Makefile.deps
index 13ff29d..0f38ae0 100644
--- a/Makefile.deps
+++ b/Makefile.deps
@@ -66,6 +66,14 @@ ifeq ($(HAVE_LIBSSL),)
export HAVE_LIBSSL = y
endif
+ifeq ($(HAVE_LIBSYSTEMD),)
+ifeq ($(HAVE_LINUX),y)
+export HAVE_LIBSYSTEMD = y
+else
+export HAVE_LIBSYSTEMD = n
+endif
+endif
+
ifeq ($(HAVE_LIBCRYPTO),)
export HAVE_LIBCRYPTO = y
endif
--
2.32.0