Add buildroot 2018-02
This commit is contained in:
21
buildroot/package/cryptsetup/Config.in
Normal file
21
buildroot/package/cryptsetup/Config.in
Normal file
@@ -0,0 +1,21 @@
|
||||
config BR2_PACKAGE_CRYPTSETUP
|
||||
bool "cryptsetup"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2
|
||||
depends on BR2_USE_MMU # lvm2
|
||||
depends on !BR2_STATIC_LIBS # lvm2
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
|
||||
select BR2_PACKAGE_POPT
|
||||
select BR2_PACKAGE_LVM2
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
|
||||
select BR2_PACKAGE_JSON_C
|
||||
help
|
||||
This tool helps manipulate dm-crypt and luks partitions for
|
||||
on-disk encryption.
|
||||
|
||||
https://gitlab.com/cryptsetup/cryptsetup
|
||||
|
||||
comment "cryptsetup needs a toolchain w/ threads, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
8
buildroot/package/cryptsetup/Config.in.host
Normal file
8
buildroot/package/cryptsetup/Config.in.host
Normal file
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_HOST_CRYPTSETUP
|
||||
bool "host cryptsetup"
|
||||
select BR2_PACKAGE_HOST_UTIL_LINUX
|
||||
help
|
||||
This tool helps manipulate dm-crypt and luks partitions for
|
||||
on-disk encryption.
|
||||
|
||||
https://gitlab.com/cryptsetup/cryptsetup
|
||||
4
buildroot/package/cryptsetup/cryptsetup.hash
Normal file
4
buildroot/package/cryptsetup/cryptsetup.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# From https://www.kernel.org/pub/linux/utils/cryptsetup/v2.0/sha256sums.asc
|
||||
sha256 adc623b9e3e3ab5c14145b8baf21b741e513ee5bf90d2b4d85a745c2f05da199 cryptsetup-2.0.0.tar.xz
|
||||
sha256 45670cce8b6a0ddd66c8016cd8ccef6cd71f35717cbacc7f1e895b3855207b33 COPYING
|
||||
sha256 8c33cc37871654ec7ed87e6fbb896c8cf33ef5ef05b1611a5aed857596ffafa5 COPYING.LGPL
|
||||
42
buildroot/package/cryptsetup/cryptsetup.mk
Normal file
42
buildroot/package/cryptsetup/cryptsetup.mk
Normal file
@@ -0,0 +1,42 @@
|
||||
################################################################################
|
||||
#
|
||||
# cryptsetup
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CRYPTSETUP_VERSION_MAJOR = 2.0
|
||||
CRYPTSETUP_VERSION = $(CRYPTSETUP_VERSION_MAJOR).0
|
||||
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 json-c \
|
||||
$(TARGET_NLS_DEPENDENCIES)
|
||||
CRYPTSETUP_LICENSE = GPL-2.0+ (programs), LGPL-2.1+ (library)
|
||||
CRYPTSETUP_LICENSE_FILES = COPYING COPYING.LGPL
|
||||
CRYPTSETUP_INSTALL_STAGING = YES
|
||||
CRYPTSETUP_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)"
|
||||
|
||||
# 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
|
||||
|
||||
HOST_CRYPTSETUP_DEPENDENCIES = \
|
||||
host-pkgconf \
|
||||
host-lvm2 \
|
||||
host-popt \
|
||||
host-util-linux \
|
||||
host-json-c \
|
||||
host-openssl
|
||||
|
||||
HOST_CRYPTSETUP_CONF_OPTS = --with-crypto-backend=openssl
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user