2013-08-08 19:50:27 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# cryptsetup
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-12-22 13:03:21 +01:00
|
|
|
CRYPTSETUP_VERSION_MAJOR = 2.0
|
2018-03-13 13:12:36 +01:00
|
|
|
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)
|
2017-12-22 13:03:21 +01:00
|
|
|
CRYPTSETUP_DEPENDENCIES = lvm2 popt util-linux host-pkgconf json-c \
|
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)"
|
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
|
|
|
|
|
|
|
|
HOST_CRYPTSETUP_CONF_OPTS = --with-crypto-backend=openssl
|
|
|
|
|
2013-08-08 19:50:27 +02:00
|
|
|
$(eval $(autotools-package))
|
2017-10-05 17:06:21 +02:00
|
|
|
$(eval $(host-autotools-package))
|