0d67ffe596
cryptsetup does not actually depend on e2fsprogs, but on libuuid that is a dependency of e2fsprogs. Remove the e2fsprogs dependency, and add a direct dependency on util-linux (libuuid provider). Cc: Martin Hicks <mort@bork.org> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
34 lines
1.2 KiB
Makefile
34 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# cryptsetup
|
|
#
|
|
################################################################################
|
|
|
|
CRYPTSETUP_VERSION_MAJOR = 1.6
|
|
CRYPTSETUP_VERSION = $(CRYPTSETUP_VERSION_MAJOR).7
|
|
CRYPTSETUP_SOURCE = cryptsetup-$(CRYPTSETUP_VERSION).tar.xz
|
|
CRYPTSETUP_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/cryptsetup/v$(CRYPTSETUP_VERSION_MAJOR)
|
|
CRYPTSETUP_DEPENDENCIES = lvm2 popt util-linux host-pkgconf \
|
|
$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
|
|
CRYPTSETUP_LICENSE = GPLv2+ (programs), LGPLv2.1+ (library)
|
|
CRYPTSETUP_LICENSE_FILES = COPYING COPYING.LGPL
|
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
|
CRYPTSETUP_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -lintl"
|
|
endif
|
|
|
|
# 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
|
|
|
|
$(eval $(autotools-package))
|