[Buildroot] [git commit] package/qemu: add optional dependency on nettle

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Sep 15 13:19:30 UTC 2019


commit: https://git.buildroot.net/buildroot/commit/?id=c52a679b85a5989b13b8d9e3bbbc35cc9d5bb197
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Qemu can optionally depend on nettle if available, so we should take
into account this optional dependency.

Cc: Florian Wolters <florian at florian-wolters.de>
Signed-off-by: Alexander Dahl <post at lespocky.de>
[Thomas: reword commit log, so that it makes sense in the context of
upstream Buildroot]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 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


More information about the buildroot mailing list