cryptsetup: Replace libgcrypt with AFALG
Add several configure arguments to speed up build time. Switch from using libgcrypt to using the kernel directly. This has a number of benefits including smaller size and faster speed. It also allows selection of desired crypto primatives instead of having all of them. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
83b304c170
commit
685ca41089
1 changed files with 21 additions and 12 deletions
|
@ -9,21 +9,18 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=cryptsetup
|
PKG_NAME:=cryptsetup
|
||||||
PKG_VERSION:=2.0.6
|
PKG_VERSION:=2.0.6
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=@KERNEL/linux/utils/cryptsetup/v2.0
|
PKG_SOURCE_URL:=@KERNEL/linux/utils/cryptsetup/v2.0
|
||||||
PKG_HASH:=7c51fae0f0e7ea9af0f515b2ac77009fb2969a6619ebab47d097dca38b083d30
|
PKG_HASH:=7c51fae0f0e7ea9af0f515b2ac77009fb2969a6619ebab47d097dca38b083d30
|
||||||
|
|
||||||
PKG_LICENSE:=GPL-2.0+ LGPL-2.1+
|
|
||||||
PKG_LICENSE_FILES:=COPYING COPYING.LGPL
|
|
||||||
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
||||||
|
PKG_LICENSE:=GPL-2.0+ LGPL-2.1+
|
||||||
|
PKG_LICENSE_FILES:=COPYING COPYING.LGPL
|
||||||
|
|
||||||
TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/cryptsetup/Default
|
define Package/cryptsetup/Default
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
|
@ -36,8 +33,8 @@ endef
|
||||||
|
|
||||||
define Package/cryptsetup
|
define Package/cryptsetup
|
||||||
$(call Package/cryptsetup/Default)
|
$(call Package/cryptsetup/Default)
|
||||||
DEPENDS+=+libgcrypt
|
DEPENDS+=+kmod-crypto-user
|
||||||
VARIANT:=gcrypt
|
VARIANT:=kernel
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/cryptsetup-openssl
|
define Package/cryptsetup-openssl
|
||||||
|
@ -53,7 +50,7 @@ endef
|
||||||
|
|
||||||
define Package/cryptsetup/description
|
define Package/cryptsetup/description
|
||||||
$(call Package/cryptsetup/Default/description)
|
$(call Package/cryptsetup/Default/description)
|
||||||
linked against libgcrypt
|
linked against kernel crypto API
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
@ -62,9 +59,21 @@ $(call Package/cryptsetup/Default/description)
|
||||||
linked against openssl
|
linked against openssl
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
CONFIGURE_ARGS += \
|
||||||
|
--disable-cryptsetup-reencrypt \
|
||||||
|
--disable-integritysetup \
|
||||||
|
--disable-selinux \
|
||||||
|
--disable-rpath \
|
||||||
|
--disable-veritysetup \
|
||||||
|
--disable-udev \
|
||||||
|
--with-default-luks-format=LUKS2
|
||||||
|
|
||||||
ifeq ($(BUILD_VARIANT),openssl)
|
ifeq ($(BUILD_VARIANT),openssl)
|
||||||
CONFIGURE_ARGS+= \
|
CONFIGURE_ARGS += \
|
||||||
--with-crypto_backend=openssl
|
--with-crypto_backend=openssl
|
||||||
|
else
|
||||||
|
CONFIGURE_ARGS += \
|
||||||
|
--with-crypto_backend=kernel
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define Package/cryptsetup/install
|
define Package/cryptsetup/install
|
||||||
|
|
Loading…
Reference in a new issue