2013-08-08 19:50:27 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# cryptsetup
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-11-13 13:35:47 +01:00
|
|
|
CRYPTSETUP_VERSION_MAJOR = 1.7
|
|
|
|
CRYPTSETUP_VERSION = $(CRYPTSETUP_VERSION_MAJOR).0
|
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)
|
2015-07-02 15:18:44 +02:00
|
|
|
CRYPTSETUP_DEPENDENCIES = lvm2 popt util-linux host-pkgconf \
|
2013-11-01 15:48:25 +01:00
|
|
|
$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
|
2013-08-08 19:50:27 +02:00
|
|
|
CRYPTSETUP_LICENSE = GPLv2+ (programs), LGPLv2.1+ (library)
|
|
|
|
CRYPTSETUP_LICENSE_FILES = COPYING COPYING.LGPL
|
|
|
|
|
2013-11-01 15:48:25 +01:00
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
|
|
|
CRYPTSETUP_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -lintl"
|
|
|
|
endif
|
|
|
|
|
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
|
|
|
|
|
2013-08-08 19:50:27 +02:00
|
|
|
$(eval $(autotools-package))
|