2013-08-08 19:50:27 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# cryptsetup
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-12-25 22:45:32 +01:00
|
|
|
CRYPTSETUP_VERSION_MAJOR = 2.4
|
2022-02-01 18:33:51 +01:00
|
|
|
CRYPTSETUP_VERSION = $(CRYPTSETUP_VERSION_MAJOR).3
|
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)
|
2020-11-06 19:02:54 +01:00
|
|
|
CRYPTSETUP_DEPENDENCIES = \
|
2020-11-13 23:52:07 +01:00
|
|
|
lvm2 popt host-pkgconf json-c libargon2 \
|
2020-06-28 22:48:08 +02:00
|
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv) \
|
2020-11-06 19:02:54 +01:00
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_LIBS),util-linux-libs,util-linux) \
|
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
|
2021-03-05 23:27:44 +01:00
|
|
|
CRYPTSETUP_CPE_ID_VENDOR = cryptsetup_project
|
2017-03-05 16:19:11 +01:00
|
|
|
CRYPTSETUP_INSTALL_STAGING = YES
|
2022-02-17 08:43:38 +01:00
|
|
|
|
|
|
|
# 0001-Add-check-program-for-symver-attribute.patch
|
|
|
|
CRYPTSETUP_AUTORECONF = 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
|
|
|
|
2022-02-13 22:29:09 +01:00
|
|
|
# cryptsetup uses OpenSSL by default, but can be configured to use libgcrypt
|
2015-02-04 19:33:28 +01:00
|
|
|
# or kernel crypto modules instead
|
2022-02-13 22:29:09 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
CRYPTSETUP_DEPENDENCIES += openssl
|
|
|
|
CRYPTSETUP_CONF_OPTS += --with-crypto_backend=openssl
|
|
|
|
else ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
2015-02-04 19:33:28 +01:00
|
|
|
CRYPTSETUP_DEPENDENCIES += libgcrypt
|
|
|
|
CRYPTSETUP_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
|
|
|
|
CRYPTSETUP_CONF_OPTS += --with-crypto_backend=gcrypt
|
|
|
|
else
|
|
|
|
CRYPTSETUP_CONF_OPTS += --with-crypto_backend=kernel
|
|
|
|
endif
|
|
|
|
|
2021-12-25 22:45:32 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSSH),y)
|
2021-12-30 10:13:30 +01:00
|
|
|
CRYPTSETUP_DEPENDENCIES += \
|
|
|
|
$(if $(BR2_PACKAGE_ARGP_STANDALONE),argp-standalone) \
|
|
|
|
libssh
|
2021-12-25 22:45:32 +01:00
|
|
|
CRYPTSETUP_CONF_OPTS += --enable-ssh-token
|
|
|
|
else
|
|
|
|
CRYPTSETUP_CONF_OPTS += --disable-ssh-token
|
|
|
|
endif
|
|
|
|
|
2022-01-09 12:34:36 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
2021-06-14 12:42:10 +02:00
|
|
|
CRYPTSETUP_CONF_OPTS += --with-tmpfilesdir=/usr/lib/tmpfiles.d
|
|
|
|
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 \
|
2021-12-25 22:45:32 +01:00
|
|
|
--disable-ssh-token \
|
2021-05-07 17:21:59 +02:00
|
|
|
--enable-blkid \
|
|
|
|
--with-tmpfilesdir=no
|
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))
|