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>
This commit is contained in:
Fabrice Fontaine 2019-03-19 23:17:30 +01:00 committed by Thomas Petazzoni
parent c11aae0e06
commit 340f89403e
2 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,6 @@ config BR2_PACKAGE_UFTP
depends on BR2_USE_MMU # fork() depends on BR2_USE_MMU # fork()
depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_USE_WCHAR depends on BR2_USE_WCHAR
select BR2_PACKAGE_OPENSSL
help help
Encrypted UDP based FTP with multicast. Encrypted UDP based FTP with multicast.

View File

@ -6,11 +6,15 @@
UFTP_VERSION = 4.9.9 UFTP_VERSION = 4.9.9
UFTP_SITE = http://sourceforge.net/projects/uftp-multicast/files/source-tar UFTP_SITE = http://sourceforge.net/projects/uftp-multicast/files/source-tar
UFTP_DEPENDENCIES = host-pkgconf openssl
UFTP_LICENSE = GPL-3.0+ UFTP_LICENSE = GPL-3.0+
UFTP_LICENSE_FILES = LICENSE.txt 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 define UFTP_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(UFTP_MAKE_OPTS) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(UFTP_MAKE_OPTS)