mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 16:07:42 +00:00
package/libssh: add option to enable server support
This patch adds Config.in option for ssh server support. Signed-off-by: Heiko Thiery <heiko.thiery@kontron.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
31fb2ac781
commit
1638f0abba
@ -13,6 +13,15 @@ config BR2_PACKAGE_LIBSSH
|
|||||||
|
|
||||||
http://www.libssh.org/
|
http://www.libssh.org/
|
||||||
|
|
||||||
|
if BR2_PACKAGE_LIBSSH
|
||||||
|
|
||||||
|
config BR2_PACKAGE_LIBSSH_SERVER
|
||||||
|
bool "server"
|
||||||
|
help
|
||||||
|
Enable libssh server support
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
comment "libssh needs a toolchain w/ dynamic library, threads"
|
comment "libssh needs a toolchain w/ dynamic library, threads"
|
||||||
depends on BR2_USE_MMU
|
depends on BR2_USE_MMU
|
||||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
|
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
|
||||||
|
@ -14,12 +14,17 @@ LIBSSH_INSTALL_STAGING = YES
|
|||||||
LIBSSH_SUPPORTS_IN_SOURCE_BUILD = NO
|
LIBSSH_SUPPORTS_IN_SOURCE_BUILD = NO
|
||||||
LIBSSH_CONF_OPTS = \
|
LIBSSH_CONF_OPTS = \
|
||||||
-DWITH_STACK_PROTECTOR=OFF \
|
-DWITH_STACK_PROTECTOR=OFF \
|
||||||
-DWITH_SERVER=OFF \
|
|
||||||
-DWITH_EXAMPLES=OFF
|
-DWITH_EXAMPLES=OFF
|
||||||
|
|
||||||
# cmake older than 3.10 require this to avoid try_run() in FindThreads
|
# cmake older than 3.10 require this to avoid try_run() in FindThreads
|
||||||
LIBSSH_CONF_OPTS += -DTHREADS_PTHREAD_ARG=OFF
|
LIBSSH_CONF_OPTS += -DTHREADS_PTHREAD_ARG=OFF
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_LIBSSH_SERVER),y)
|
||||||
|
LIBSSH_CONF_OPTS += -DWITH_SERVER=ON
|
||||||
|
else
|
||||||
|
LIBSSH_CONF_OPTS += -DWITH_SERVER=OFF
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||||
LIBSSH_CONF_OPTS += -DWITH_ZLIB=ON
|
LIBSSH_CONF_OPTS += -DWITH_ZLIB=ON
|
||||||
LIBSSH_DEPENDENCIES += zlib
|
LIBSSH_DEPENDENCIES += zlib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user