1 ################################################################################
5 ################################################################################
7 CRYPTSETUP_VERSION_MAJOR
= 1.7
8 CRYPTSETUP_VERSION
= $(CRYPTSETUP_VERSION_MAJOR
).4
9 CRYPTSETUP_SOURCE
= cryptsetup-
$(CRYPTSETUP_VERSION
).
tar.xz
10 CRYPTSETUP_SITE
= $(BR2_KERNEL_MIRROR
)/linux
/utils
/cryptsetup
/v
$(CRYPTSETUP_VERSION_MAJOR
)
11 CRYPTSETUP_DEPENDENCIES
= lvm2 popt util-linux host-pkgconf \
12 $(if
$(BR2_NEEDS_GETTEXT_IF_LOCALE
),gettext
)
13 CRYPTSETUP_LICENSE
= GPLv2
+ (programs
), LGPLv2.1
+ (library
)
14 CRYPTSETUP_LICENSE_FILES
= COPYING COPYING.LGPL
15 CRYPTSETUP_INSTALL_STAGING
= YES
17 ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE
),y
)
18 CRYPTSETUP_CONF_ENV
+= LDFLAGS
="$(TARGET_LDFLAGS) -lintl"
21 # cryptsetup uses libgcrypt by default, but can be configured to use OpenSSL
22 # or kernel crypto modules instead
23 ifeq ($(BR2_PACKAGE_LIBGCRYPT
),y
)
24 CRYPTSETUP_DEPENDENCIES
+= libgcrypt
25 CRYPTSETUP_CONF_ENV
+= LIBGCRYPT_CONFIG
=$(STAGING_DIR
)/usr
/bin
/libgcrypt-config
26 CRYPTSETUP_CONF_OPTS
+= --with-crypto_backend
=gcrypt
27 else ifeq ($(BR2_PACKAGE_OPENSSL
),y
)
28 CRYPTSETUP_DEPENDENCIES
+= openssl
29 CRYPTSETUP_CONF_OPTS
+= --with-crypto_backend
=openssl
31 CRYPTSETUP_CONF_OPTS
+= --with-crypto_backend
=kernel
34 $(eval
$(autotools-package
))