diff mbox series

[4/4] Kconfig: Disable Suricatta on unavailable curl

Message ID 20200930231528.2179-5-bastiangermann@fishpost.de
State Accepted
Headers show
Series Minor Kconfig changes | expand

Commit Message

Bastian Germann Sept. 30, 2020, 11:15 p.m. UTC
There are impossible configurations configurable because Suricatta SSL
support does not depend on HAVE_LIBCURL.

As no element of Suricatta is available with curl unavailable, disable the
complete section in that case.

Signed-off-by: Bastian Germann <bastiangermann@fishpost.de>
---
 suricatta/Config.in | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/suricatta/Config.in b/suricatta/Config.in
index 1e340ec..718b2fe 100644
--- a/suricatta/Config.in
+++ b/suricatta/Config.in
@@ -1,5 +1,6 @@ 
 menuconfig SURICATTA
 	bool "Suricatta"
+	depends on HAVE_LIBCURL
 	help
 	  Suricatta is a daemon mode of SWUpdate.
 
@@ -43,7 +44,6 @@  choice
 
 config SURICATTA_HAWKBIT
 	bool "hawkBit support"
-	depends on HAVE_LIBCURL
 	depends on HAVE_JSON_C
 	select CHANNEL_CURL
 	select JSON
@@ -51,23 +51,22 @@  config SURICATTA_HAWKBIT
 	  Support for hawkBit server.
 	  https://projects.eclipse.org/projects/iot.hawkbit
 
-comment "hawkBit support needs libcurl, json-c"
-	depends on !HAVE_LIBCURL || !HAVE_JSON_C
+comment "hawkBit support needs json-c"
+	depends on !HAVE_JSON_C
 
 config SURICATTA_GENERAL
 	bool "General HTTP support"
-	depends on HAVE_LIBCURL
 	select CHANNEL_CURL
 	help
 	  Support for Simple HTTP coded server
 	  The server uses HTTP return codes to detect if an update
 	  is available. See documentation for more details.
 
-comment "General HTTP backend support needs libcurl"
-	depends on !HAVE_LIBCURL
-
 endchoice
 
 endmenu
 
 endif
+
+comment "Suricatta daemon support needs libcurl"
+	depends on !HAVE_LIBCURL