From d769377a41e172e1963351c168c97a1212561133 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Tue, 20 Mar 2018 20:46:36 +0200 Subject: [PATCH] qemu: add libssh2 optional dependency Make sure that qemu uses libssh2 when libssh2 is enabled, for build consistency. Cc: Francois Perrad Signed-off-by: Baruch Siach Reviewed-by: Romain Naour Signed-off-by: Peter Korsgaard --- package/qemu/qemu.mk | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.30.2