cryptsetup: Remove OpenSSL variant
OpenSSL is only used for hashing while being a huge dependency (689.4KB for mips_24kc. Cryptsetup also supports and recommends argon2 for hashing, which is not provided by OpenSSL. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
685ca41089
commit
4815585a3b
1 changed files with 4 additions and 38 deletions
|
@ -22,41 +22,17 @@ PKG_LICENSE_FILES:=COPYING COPYING.LGPL
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/cryptsetup/Default
|
define Package/cryptsetup
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
SUBMENU:=Encryption
|
SUBMENU:=Encryption
|
||||||
TITLE:=Cryptsetup
|
TITLE:=Cryptsetup
|
||||||
DEPENDS:=+libblkid +libuuid +libpopt +lvm2 +libdevmapper +libjson-c +@KERNEL_DIRECT_IO
|
DEPENDS:=+libblkid +libuuid +libpopt +lvm2 +libdevmapper +libjson-c +@KERNEL_DIRECT_IO +kmod-crypto-user
|
||||||
URL:=https://gitlab.com/cryptsetup/cryptsetup/
|
URL:=https://gitlab.com/cryptsetup/cryptsetup/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/cryptsetup
|
|
||||||
$(call Package/cryptsetup/Default)
|
|
||||||
DEPENDS+=+kmod-crypto-user
|
|
||||||
VARIANT:=kernel
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/cryptsetup-openssl
|
|
||||||
$(call Package/cryptsetup/Default)
|
|
||||||
TITLE+= (with openssl support)
|
|
||||||
DEPENDS+=+libopenssl
|
|
||||||
VARIANT:=openssl
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/cryptsetup/Default/description
|
|
||||||
Cryptsetup-luks
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/cryptsetup/description
|
define Package/cryptsetup/description
|
||||||
$(call Package/cryptsetup/Default/description)
|
Cryptsetup is utility used to conveniently setup disk encryption based on DMCrypt kernel module.
|
||||||
linked against kernel crypto API
|
|
||||||
endef
|
|
||||||
|
|
||||||
|
|
||||||
define Package/cryptsetup-openssl/description
|
|
||||||
$(call Package/cryptsetup/Default/description)
|
|
||||||
linked against openssl
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
|
@ -66,15 +42,8 @@ CONFIGURE_ARGS += \
|
||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
--disable-veritysetup \
|
--disable-veritysetup \
|
||||||
--disable-udev \
|
--disable-udev \
|
||||||
--with-default-luks-format=LUKS2
|
--with-default-luks-format=LUKS2 \
|
||||||
|
|
||||||
ifeq ($(BUILD_VARIANT),openssl)
|
|
||||||
CONFIGURE_ARGS += \
|
|
||||||
--with-crypto_backend=openssl
|
|
||||||
else
|
|
||||||
CONFIGURE_ARGS += \
|
|
||||||
--with-crypto_backend=kernel
|
--with-crypto_backend=kernel
|
||||||
endif
|
|
||||||
|
|
||||||
define Package/cryptsetup/install
|
define Package/cryptsetup/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
|
@ -83,7 +52,4 @@ define Package/cryptsetup/install
|
||||||
$(CP) $(PKG_BUILD_DIR)/.libs/libcryptsetup.so* $(1)/usr/lib
|
$(CP) $(PKG_BUILD_DIR)/.libs/libcryptsetup.so* $(1)/usr/lib
|
||||||
endef
|
endef
|
||||||
|
|
||||||
Package/cryptsetup-openssl/install = $(Package/cryptsetup/install)
|
|
||||||
|
|
||||||
$(eval $(call BuildPackage,cryptsetup))
|
$(eval $(call BuildPackage,cryptsetup))
|
||||||
$(eval $(call BuildPackage,cryptsetup-openssl))
|
|
||||||
|
|
Loading…
Reference in a new issue