diff mbox series

[06/17] Kconfig: adding a CURL switch

Message ID 1511176210-28928-6-git-send-email-sbabic@denx.de
State Accepted
Headers show
Series [01/17] parser: added function to get net child in tree | expand

Commit Message

Stefano Babic Nov. 20, 2017, 11:09 a.m. UTC
A CONFIG_CURL is introduced to move curl code into a
separate library.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 Kconfig             | 5 +++++
 Makefile.flags      | 2 +-
 suricatta/Config.in | 1 +
 3 files changed, 7 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/Kconfig b/Kconfig
index 4d244bc..e46ff05 100644
--- a/Kconfig
+++ b/Kconfig
@@ -61,6 +61,10 @@  menu "Swupdate Settings"
 
 menu "General Configuration"
 
+config CURL
+	bool
+	default n
+
 config SYSTEMD
 	bool "enable systemd support"
 	default n
@@ -278,6 +282,7 @@  config DOWNLOAD
 	bool "Enable image downloading"
 	default n
 	depends on HAVE_LIBCURL
+	select CURL
 	help
 	  Enable update from image URL using libcurl. The stream is sent via IPC
 	  to the installer as it is done for other interfaces.
diff --git a/Makefile.flags b/Makefile.flags
index c9f32f5..041a08e 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -113,7 +113,7 @@  endif
 endif
 
 # Image downloading support
-ifneq ($(CONFIG_DOWNLOAD),)
+ifneq ($(CONFIG_CURL),)
 LDLIBS += curl
 endif
 
diff --git a/suricatta/Config.in b/suricatta/Config.in
index 554ee61..62e448a 100644
--- a/suricatta/Config.in
+++ b/suricatta/Config.in
@@ -72,6 +72,7 @@  config SURICATTA_HAWKBIT
 	depends on HAVE_LIBCURL
 	depends on HAVE_JSON_C
 	select JSON
+	select CURL
 	help
 	  Support for hawkBit server.
 	  https://projects.eclipse.org/projects/iot.hawkbit