[Buildroot] [PATCH] package/cryptsetup: use libargon2 when available

Pascal de Bruijn p.debruijn at unilogic.nl
Tue Dec 3 09:27:15 UTC 2019


cryptsetup has an internal copy of libargon2, which is used by default,
but when libargon2 is available as a proper system library this is a
duplication.

Signed-off-by: Pascal de Bruijn <p.debruijn at unilogic.nl>
---
 package/cryptsetup/cryptsetup.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/cryptsetup/cryptsetup.mk b/package/cryptsetup/cryptsetup.mk
index 7788bfb..2941328 100644
--- a/package/cryptsetup/cryptsetup.mk
+++ b/package/cryptsetup/cryptsetup.mk
@@ -29,6 +29,10 @@ else
 CRYPTSETUP_CONF_OPTS += --with-crypto_backend=kernel
 endif
 
+ifeq ($(BR2_PACKAGE_LIBARGON2),y)
+CRYPTSETUP_CONF_OPTS += --enable-libargon2
+endif
+
 HOST_CRYPTSETUP_DEPENDENCIES = \
 	host-pkgconf \
 	host-lvm2 \
-- 
2.7.4




More information about the buildroot mailing list