Bump buidlroot version to 2018.02.6
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
From 567e7f8664c621f8aeaa95d9f4ab4b590574f572 Mon Sep 17 00:00:00 2001
|
||||
From: Baruch Siach <baruch@tkos.co.il>
|
||||
Date: Wed, 15 Aug 2018 14:13:46 +0300
|
||||
Subject: [PATCH] Remove json_object typedef
|
||||
|
||||
The json-c header already defines the same typedef. While C11 allows
|
||||
typedef redefinition to the same type, older versions of gcc disallow
|
||||
that.
|
||||
|
||||
In file included from lib/luks2/luks2_internal.h:32,
|
||||
from lib/luks2/luks2_disk_metadata.c:24:
|
||||
lib/luks2/luks2.h:86: error: redefinition of typedef 'json_object'
|
||||
|
||||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||
---
|
||||
lib/luks2/luks2.h | 1 -
|
||||
lib/setup.c | 1 +
|
||||
2 files changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/luks2/luks2.h b/lib/luks2/luks2.h
|
||||
index ee57b41ba974..25e36190da45 100644
|
||||
--- a/lib/luks2/luks2.h
|
||||
+++ b/lib/luks2/luks2.h
|
||||
@@ -83,7 +83,6 @@ struct luks2_hdr_disk {
|
||||
/*
|
||||
* LUKS2 header in-memory.
|
||||
*/
|
||||
-typedef struct json_object json_object;
|
||||
struct luks2_hdr {
|
||||
size_t hdr_size;
|
||||
uint64_t seqid;
|
||||
diff --git a/lib/setup.c b/lib/setup.c
|
||||
index fddbe7ef7897..856f6e80f465 100644
|
||||
--- a/lib/setup.c
|
||||
+++ b/lib/setup.c
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <sys/utsname.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
+#include <json-c/json.h>
|
||||
|
||||
#include "libcryptsetup.h"
|
||||
#include "luks.h"
|
||||
--
|
||||
2.18.0
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
$(mkdir_p) is obsolete for newer automake, use $(MKDIR_P) instead.
|
||||
Upstream should really gettextize with a newer version before packing up.
|
||||
|
||||
[base on a similar patch from Gustavo Zacarias for Linux-PAM-1.1.7]
|
||||
Signed-off-by: Axel Lin <axel.lin@ingics.com>
|
||||
|
||||
diff -Nura cryptsetup-1.6.3.ori/po/Makefile.in.in cryptsetup-1.6.3/po/Makefile.in.in
|
||||
--- cryptsetup-1.6.3.ori/po/Makefile.in.in 2013-12-30 11:53:22.731942516 +0800
|
||||
+++ cryptsetup-1.6.3/po/Makefile.in.in 2014-01-09 09:46:13.594071188 +0800
|
||||
@@ -31,7 +31,7 @@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
mkinstalldirs = $(SHELL) @install_sh@ -d
|
||||
-mkdir_p = @mkdir_p@
|
||||
+mkdir_p = @MKDIR_P@
|
||||
|
||||
GMSGFMT_ = @GMSGFMT@
|
||||
GMSGFMT_no = @GMSGFMT@
|
||||
@@ -3,19 +3,19 @@ config BR2_PACKAGE_CRYPTSETUP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2
|
||||
depends on BR2_USE_MMU # lvm2
|
||||
depends on !BR2_STATIC_LIBS # lvm2
|
||||
depends on !BR2_TOOLCHAIN_USES_MUSL # 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_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
|
||||
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 glibc or uClibc toolchain w/ threads, dynamic library"
|
||||
comment "cryptsetup needs a toolchain w/ threads, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS \
|
||||
|| BR2_TOOLCHAIN_USES_MUSL
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
8
bsp/buildroot/package/cryptsetup/Config.in.host
Normal file
8
bsp/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
|
||||
@@ -1,2 +1,4 @@
|
||||
# From https://www.kernel.org/pub/linux/utils/cryptsetup/v1.7/sha256sums.asc
|
||||
sha256 af2b04e8475cf40b8d9ffd97a1acfa73aa787c890430afd89804fb544d6adc02 cryptsetup-1.7.3.tar.xz
|
||||
# From https://www.kernel.org/pub/linux/utils/cryptsetup/v2.0/sha256sums.asc
|
||||
sha256 4d6cca04c1f5ff4a68d045d190efb2623087eda0274ded92f92a4b6911e501d4 cryptsetup-2.0.3.tar.xz
|
||||
sha256 45670cce8b6a0ddd66c8016cd8ccef6cd71f35717cbacc7f1e895b3855207b33 COPYING
|
||||
sha256 8c33cc37871654ec7ed87e6fbb896c8cf33ef5ef05b1611a5aed857596ffafa5 COPYING.LGPL
|
||||
|
||||
@@ -4,18 +4,16 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CRYPTSETUP_VERSION_MAJOR = 1.7
|
||||
CRYPTSETUP_VERSION_MAJOR = 2.0
|
||||
CRYPTSETUP_VERSION = $(CRYPTSETUP_VERSION_MAJOR).3
|
||||
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 \
|
||||
$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
|
||||
CRYPTSETUP_LICENSE = GPLv2+ (programs), LGPLv2.1+ (library)
|
||||
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
|
||||
|
||||
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
||||
CRYPTSETUP_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -lintl"
|
||||
endif
|
||||
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
|
||||
@@ -30,4 +28,16 @@ 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 \
|
||||
--disable-kernel_crypto
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user