[Buildroot] [PATCH 1/1] Adding opkg configuration options for curl, curl with ssl, and sha256

Baker, Derek Derek-Baker at idexx.com
Mon Jun 25 15:21:31 UTC 2018


>From 51a9bc5b2fc6e40f8b076a7b153caf3d84489c9c Mon Sep 17 00:00:00 2001
From: Derek Baker <derek-baker at idexx.com>
Date: Thu, 14 Jun 2018 16:36:31 -0400
Subject: [PATCH 1/1] Adding opkg configuration options for curl, curl with
 ssl, and sha256

Signed-off-by: Derek Baker <derek-baker at idexx.com>
---
 package/opkg/Config.in | 13 +++++++++++++
 package/opkg/opkg.mk   | 20 +++++++++++++++++++-
 2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/package/opkg/Config.in b/package/opkg/Config.in
index 20f6fa2f53..4ce3372bc0 100644
--- a/package/opkg/Config.in
+++ b/package/opkg/Config.in
@@ -30,4 +30,17 @@ config BR2_PACKAGE_OPKG_GPG_SIGN
       Enable opkg package signature checking support using
       gnupg/libgpgme.

+config BR2_PACKAGE_OPKG_CURL
+    bool "curl support"
+    select BR2_PACKAGE_LIBCURL
+
+if BR2_PACKAGE_OPKG_CURL
+config BR2_PACKAGE_OPKG_CURL_SSL
+    select BR2_PACKAGE_OPENSSL
+    bool "ssl support for curl"
+endif
+
+config BR2_PACKAGE_OPKG_SHA256
+    bool "SHA256 support"
+
 endif
diff --git a/package/opkg/opkg.mk b/package/opkg/opkg.mk
index 4d34c6d4d3..d72f0bd97d 100644
--- a/package/opkg/opkg.mk
+++ b/package/opkg/opkg.mk
@@ -10,7 +10,6 @@ OPKG_DEPENDENCIES = host-pkgconf libarchive
 OPKG_LICENSE = GPL-2.0+
 OPKG_LICENSE_FILES = COPYING
 OPKG_INSTALL_STAGING = YES
-OPKG_CONF_OPTS = --disable-curl
 # Populate the conf/ directory
 OPKG_AUTORECONF = YES

@@ -37,6 +36,25 @@ else
 OPKG_CONF_OPTS += --disable-gpg
 endif

+ifeq ($(BR2_PACKAGE_OPKG_SHA256),y)
+OPKG_CONF_OPTS += --enable-sha256
+endif
+
+ifeq ($(BR2_PACKAGE_OPKG_CURL),y)
+OPKG_CONF_OPTS += --enable-curl
+OPKG_DEPENDENCIES += libcurl
+
+ifeq ($(BR2_PACKAGE_OPKG_CURL_SSL),y)
+OPKG_CONF_OPTS += --enable-ssl-curl
+OPKG_DEPENDENCIES += libopenssl
+else
+OPKG_CONF_OPTS += --disable-ssl-curl
+endif
+
+else
+OPKG_CONF_OPTS += --disable-curl
+endif
+
 OPKG_POST_INSTALL_TARGET_HOOKS += OPKG_CREATE_LOCKDIR

 $(eval $(autotools-package))
--
2.17.1


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180625/f669ebcf/attachment.html>


More information about the buildroot mailing list