Browse Source

Merge pull request #5565 from micmac1/libssh2-master

libssh2: Make crypto backends selectable
lilik-openwrt-22.03
Jiri Slachta 7 years ago
committed by GitHub
parent
commit
a949b9f0af
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 3 deletions
  1. +15
    -0
      libs/libssh2/Config.in
  2. +7
    -3
      libs/libssh2/Makefile

+ 15
- 0
libs/libssh2/Config.in View File

@ -0,0 +1,15 @@
if PACKAGE_libssh2
choice
prompt "Choose crypto backend"
default LIBSSH2_MBEDTLS
config LIBSSH2_MBEDTLS
bool "mbedtls"
config LIBSSH2_OPENSSL
bool "openssl"
endchoice
endif

+ 7
- 3
libs/libssh2/Makefile View File

@ -29,7 +29,7 @@ define Package/libssh2
CATEGORY:=Libraries
TITLE:=SSH2 library
URL:=https://www.libssh2.org/
DEPENDS:=+libmbedtls +zlib
DEPENDS:=+LIBSSH2_MBEDTLS:libmbedtls +LIBSSH2_OPENSSL:libopenssl +zlib
MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
endef
@ -37,13 +37,17 @@ define Package/libssh2/description
libssh2 is a client-side C library implementing the SSH2 protocol.
endef
define Package/libssh2/config
source "$(SOURCE)/Config.in"
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--disable-examples-build \
--disable-silent-rules \
--with-mbedtls \
--with-libmbedtls-prefix=$(STAGING_DIR)/usr \
$(if $(CONFIG_LIBSSH2_MBEDTLS),--with-mbedtls --with-libmbedtls-prefix=$(STAGING_DIR)/usr) \
$(if $(CONFIG_LIBSSH2_OPENSSL),--with-openssl --with-libssl-prefix=$(STAGING_DIR)/usr) \
--with-libz-prefix=$(STAGING_DIR)/usr
define Build/InstallDev


Loading…
Cancel
Save