From c52a679b85a5989b13b8d9e3bbbc35cc9d5bb197 Mon Sep 17 00:00:00 2001 From: Alexander Dahl Date: Wed, 11 Sep 2019 10:40:39 +0200 Subject: [PATCH] package/qemu: add optional dependency on nettle Qemu can optionally depend on nettle if available, so we should take into account this optional dependency. Cc: Florian Wolters Signed-off-by: Alexander Dahl [Thomas: reword commit log, so that it makes sense in the context of upstream Buildroot] Signed-off-by: Thomas Petazzoni --- package/qemu/qemu.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk index 05d16560f7..1d3759a850 100644 --- a/package/qemu/qemu.mk +++ b/package/qemu/qemu.mk @@ -97,6 +97,13 @@ else QEMU_OPTS += --disable-libssh2 endif +ifeq ($(BR2_PACKAGE_NETTLE),y) +QEMU_OPTS += --enable-nettle +QEMU_DEPENDENCIES += nettle +else +QEMU_OPTS += --disable-nettle +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