2013-08-08 19:50:27 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# cryptsetup
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-01-07 12:03:43 +01:00
|
|
|
CRYPTSETUP_VERSION_MAJOR = 2.2
|
|
|
|
CRYPTSETUP_VERSION = $(CRYPTSETUP_VERSION_MAJOR).2
|
2014-10-29 17:01:35 +01:00
|
|
|
CRYPTSETUP_SOURCE = cryptsetup-$(CRYPTSETUP_VERSION).tar.xz
|
|
|
|
CRYPTSETUP_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/cryptsetup/v$(CRYPTSETUP_VERSION_MAJOR)
|
2019-12-04 09:05:47 +01:00
|
|
|
CRYPTSETUP_DEPENDENCIES = lvm2 popt util-linux host-pkgconf json-c libargon2 \
|
2017-07-03 22:40:58 +02:00
|
|
|
$(TARGET_NLS_DEPENDENCIES)
|
2017-03-30 15:43:34 +02:00
|
|
|
CRYPTSETUP_LICENSE = GPL-2.0+ (programs), LGPL-2.1+ (library)
|
2013-08-08 19:50:27 +02:00
|
|
|
CRYPTSETUP_LICENSE_FILES = COPYING COPYING.LGPL
|
2017-03-05 16:19:11 +01:00
|
|
|
CRYPTSETUP_INSTALL_STAGING = YES
|
2017-07-03 22:40:58 +02:00
|
|
|
CRYPTSETUP_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)"
|
2019-12-04 09:05:47 +01:00
|
|
|
CRYPTSETUP_CONF_OPTS += --enable-blkid --enable-libargon2
|
2013-11-01 15:48:25 +01:00
|
|
|
|
2015-02-04 19:33:28 +01:00
|
|
|
# cryptsetup uses libgcrypt by default, but can be configured to use OpenSSL
|
|
|
|
# or kernel crypto modules instead
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
|
|
|
CRYPTSETUP_DEPENDENCIES += libgcrypt
|
|
|
|
CRYPTSETUP_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
|
|
|
|
CRYPTSETUP_CONF_OPTS += --with-crypto_backend=gcrypt
|
|
|
|
else ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
CRYPTSETUP_DEPENDENCIES += openssl
|
|
|
|
CRYPTSETUP_CONF_OPTS += --with-crypto_backend=openssl
|
|
|
|
else
|
|
|
|
CRYPTSETUP_CONF_OPTS += --with-crypto_backend=kernel
|
|
|
|
endif
|
|
|
|
|
2017-10-05 17:06:21 +02:00
|
|
|
HOST_CRYPTSETUP_DEPENDENCIES = \
|
|
|
|
host-pkgconf \
|
|
|
|
host-lvm2 \
|
|
|
|
host-popt \
|
|
|
|
host-util-linux \
|
2017-12-23 18:43:03 +01:00
|
|
|
host-json-c \
|
2017-10-05 17:06:21 +02:00
|
|
|
host-openssl
|
|
|
|
|
2018-08-07 13:04:48 +02:00
|
|
|
HOST_CRYPTSETUP_CONF_OPTS = --with-crypto_backend=openssl \
|
2018-08-17 11:14:33 +02:00
|
|
|
--disable-kernel_crypto \
|
|
|
|
--enable-blkid
|
2017-10-05 17:06:21 +02:00
|
|
|
|
2013-08-08 19:50:27 +02:00
|
|
|
$(eval $(autotools-package))
|
2017-10-05 17:06:21 +02:00
|
|
|
$(eval $(host-autotools-package))
|