aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2019-03-19 23:17:30 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-03-20 17:24:14 +0100
commit340f89403efc50c3a6096d13282de0761ecf683e (patch)
treeae9ab5ba12fc0a0eaa49700b5e1397a38c490f9c
parentc11aae0e064ad285deaa7ccaf141cc9920a59442 (diff)
downloadbuildroot-340f89403efc50c3a6096d13282de0761ecf683e.tar.gz
buildroot-340f89403efc50c3a6096d13282de0761ecf683e.tar.bz2
package/uftp: openssl is optional, not mandatory
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/uftp/Config.in1
-rw-r--r--package/uftp/uftp.mk8
2 files changed, 6 insertions, 3 deletions
diff --git a/package/uftp/Config.in b/package/uftp/Config.in
index ca6e5f9a05..b88fb03ae2 100644
--- a/package/uftp/Config.in
+++ b/package/uftp/Config.in
@@ -3,7 +3,6 @@ config BR2_PACKAGE_UFTP
depends on BR2_USE_MMU # fork()
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_USE_WCHAR
- select BR2_PACKAGE_OPENSSL
help
Encrypted UDP based FTP with multicast.
diff --git a/package/uftp/uftp.mk b/package/uftp/uftp.mk
index f9f0502b49..abdb0a4def 100644
--- a/package/uftp/uftp.mk
+++ b/package/uftp/uftp.mk
@@ -6,11 +6,15 @@
UFTP_VERSION = 4.9.9
UFTP_SITE = http://sourceforge.net/projects/uftp-multicast/files/source-tar
-UFTP_DEPENDENCIES = host-pkgconf openssl
UFTP_LICENSE = GPL-3.0+
UFTP_LICENSE_FILES = LICENSE.txt
-UFTP_MAKE_OPTS = CRYPT_LIB="`$(PKG_CONFIG_HOST_BINARY) --libs libssl`"
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+UFTP_DEPENDENCIES += host-pkgconf openssl
+UFTP_MAKE_OPTS += CRYPT_LIB="`$(PKG_CONFIG_HOST_BINARY) --libs libssl`"
+else
+UFTP_MAKE_OPTS += NO_ENCRYPTION=1
+endif
define UFTP_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(UFTP_MAKE_OPTS)