aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Baruch Siach <baruch@tkos.co.il>2018-03-20 20:46:36 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-03-24 21:40:26 +0100
commitd769377a41e172e1963351c168c97a1212561133 (patch)
tree5a5ebfe2c72045ae1b27b7a2737f5153a763190f
parentebbf8746243ee4fa6b51a5a6afa8b14459b4178f (diff)
downloadbuildroot-d769377a41e172e1963351c168c97a1212561133.tar.gz
buildroot-d769377a41e172e1963351c168c97a1212561133.tar.bz2
qemu: add libssh2 optional dependency
Make sure that qemu uses libssh2 when libssh2 is enabled, for build consistency. Cc: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Reviewed-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/qemu/qemu.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 345ef52668..c3a7e7738e 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -212,6 +212,13 @@ else
QEMU_OPTS += --disable-tools
endif
+ifeq ($(BR2_PACKAGE_LIBSSH2),y)
+QEMU_OPTS += --enable-libssh2
+QEMU_DEPENDENCIES += libssh2
+else
+QEMU_OPTS += --disable-libssh2
+endif
+
# Override CPP, as it expects to be able to call it like it'd
# call the compiler.
define QEMU_CONFIGURE_CMDS