mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
package/ibm-sw-tpm2: bump version to 1661
Bump the version to 1661 and remove the patch 0002-Remove-unused-global-variable-to-fix-compilation-with-GCC-10.patch. This patch is no longer needed because the fix has been added upstream. Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle (Essensium/Mind)
parent
65cee90cc3
commit
271461b81b
@@ -1,4 +1,4 @@
|
|||||||
From 5aeb25abf13de43b9e497f6509209911dd1386b8 Mon Sep 17 00:00:00 2001
|
From 7ea7fe229ea6195938d9eadbe783cb1aa74380ba Mon Sep 17 00:00:00 2001
|
||||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||||
Date: Sun, 26 Apr 2020 15:33:39 +0200
|
Date: Sun, 26 Apr 2020 15:33:39 +0200
|
||||||
Subject: [PATCH] Use LONG_BIT to define RADIX_BITS
|
Subject: [PATCH] Use LONG_BIT to define RADIX_BITS
|
||||||
@@ -13,28 +13,32 @@ as we're now using >= POSIX.1-2001 definitions of fd_set and friends.
|
|||||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||||
Signed-off-by: Vincent Fazio <vfazio@gmail.com>
|
Signed-off-by: Vincent Fazio <vfazio@gmail.com>
|
||||||
---
|
---
|
||||||
src/LibSupport.h | 17 +++--------------
|
src/LibSupport.h | 21 +++------------------
|
||||||
src/TcpServerPosix.c | 1 +
|
src/TcpServerPosix.c | 1 +
|
||||||
src/makefile | 2 ++
|
src/makefile | 2 ++
|
||||||
3 files changed, 6 insertions(+), 14 deletions(-)
|
3 files changed, 6 insertions(+), 18 deletions(-)
|
||||||
|
|
||||||
diff --git a/src/LibSupport.h b/src/LibSupport.h
|
diff --git a/src/LibSupport.h b/src/LibSupport.h
|
||||||
index b2e6a51..0b59d18 100644
|
index 5055560..48b1e16 100644
|
||||||
--- a/src/LibSupport.h
|
--- a/src/LibSupport.h
|
||||||
+++ b/src/LibSupport.h
|
+++ b/src/LibSupport.h
|
||||||
@@ -64,20 +64,9 @@
|
@@ -64,24 +64,9 @@
|
||||||
#ifndef _LIB_SUPPORT_H_
|
#ifndef _LIB_SUPPORT_H_
|
||||||
#define _LIB_SUPPORT_H_
|
#define _LIB_SUPPORT_H_
|
||||||
|
|
||||||
|
-/* kgold added power and s390 */
|
||||||
-#ifndef RADIX_BITS
|
-#ifndef RADIX_BITS
|
||||||
-# if defined(__x86_64__) || defined(__x86_64) \
|
-# if defined(__x86_64__) || defined(__x86_64) \
|
||||||
- || defined(__amd64__) || defined(__amd64) || defined(_WIN64) || defined(_M_X64) \
|
- || defined(__amd64__) || defined(__amd64) \
|
||||||
- || defined(_M_ARM64) || defined(__aarch64__) \
|
- || defined(_WIN64) || defined(_M_X64) \
|
||||||
- || defined(__powerpc64__) || defined(__ppc64__)
|
- || defined(_M_ARM64) || defined(__aarch64__) \
|
||||||
|
- || defined(__powerpc64__) || defined(__PPC64__) || defined(__ppc64__) \
|
||||||
|
- || defined(__s390x__)
|
||||||
-# define RADIX_BITS 64
|
-# define RADIX_BITS 64
|
||||||
-# elif defined(__i386__) || defined(__i386) || defined(i386) \
|
-# elif defined(__i386__) || defined(__i386) || defined(i386) \
|
||||||
- || defined(_WIN32) || defined(_M_IX86) \
|
- || defined(_WIN32) || defined(_M_IX86) \
|
||||||
- || defined(_M_ARM) || defined(__arm__) || defined(__thumb__)
|
- || defined(_M_ARM) || defined(__arm__) || defined(__thumb__) \
|
||||||
|
- || defined(__powerpc__) || defined(__PPC__)
|
||||||
-# define RADIX_BITS 32
|
-# define RADIX_BITS 32
|
||||||
-# else
|
-# else
|
||||||
-# error Unable to determine RADIX_BITS from compiler environment
|
-# error Unable to determine RADIX_BITS from compiler environment
|
||||||
@@ -47,13 +51,13 @@ index b2e6a51..0b59d18 100644
|
|||||||
// These macros use the selected libraries to the proper include files.
|
// These macros use the selected libraries to the proper include files.
|
||||||
#define LIB_QUOTE(_STRING_) #_STRING_
|
#define LIB_QUOTE(_STRING_) #_STRING_
|
||||||
diff --git a/src/TcpServerPosix.c b/src/TcpServerPosix.c
|
diff --git a/src/TcpServerPosix.c b/src/TcpServerPosix.c
|
||||||
index 20fcb29..bdac7aa 100644
|
index cad0402..6293cdd 100644
|
||||||
--- a/src/TcpServerPosix.c
|
--- a/src/TcpServerPosix.c
|
||||||
+++ b/src/TcpServerPosix.c
|
+++ b/src/TcpServerPosix.c
|
||||||
@@ -66,6 +66,7 @@
|
@@ -66,6 +66,7 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
/* FIXME need Posix TCP socket code */
|
#include <stdbool.h>
|
||||||
+#include <sys/select.h>
|
+#include <sys/select.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@@ -72,5 +76,5 @@ index f124e78..6ee128e 100644
|
|||||||
|
|
||||||
# add this line for big endian platforms
|
# add this line for big endian platforms
|
||||||
--
|
--
|
||||||
2.26.2
|
2.17.1
|
||||||
|
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
From 9bd2926c0f359f143141c32c2b261ca100d804c8 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jonas Witschel <diabonas@archlinux.org>
|
|
||||||
Date: Wed, 13 May 2020 10:56:03 +0200
|
|
||||||
Subject: [PATCH] Remove unused global variable to fix compilation with GCC 10
|
|
||||||
|
|
||||||
GCC defaults to -fno-common, resulting in a compilation error:
|
|
||||||
|
|
||||||
CryptSym.h:84: multiple definition of `tpmCryptKeySchedule'
|
|
||||||
|
|
||||||
Since the global variable is not used anywhere, it can be removed.
|
|
||||||
[Retrieved from:
|
|
||||||
https://github.com/kgoldman/ibmswtpm2/pull/3/commits/9bd2926c0f359f143141c32c2b261ca100d804c8]
|
|
||||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
||||||
---
|
|
||||||
src/CryptSym.h | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/CryptSym.h b/src/CryptSym.h
|
|
||||||
index 7b58e41..9a33b13 100644
|
|
||||||
--- a/src/CryptSym.h
|
|
||||||
+++ b/src/CryptSym.h
|
|
||||||
@@ -81,7 +81,7 @@ union tpmCryptKeySchedule_t {
|
|
||||||
#else
|
|
||||||
uint32_t alignment;
|
|
||||||
#endif
|
|
||||||
-} tpmCryptKeySchedule;
|
|
||||||
+};
|
|
||||||
/* Each block cipher within a library is expected to conform to the same calling conventions with
|
|
||||||
three parameters (keySchedule, in, and out) in the same order. That means that all algorithms
|
|
||||||
would use the same order of the same parameters. The code is written assuming the (keySchedule,
|
|
||||||
@@ -2,5 +2,5 @@
|
|||||||
sha1 a2a5335024a2edc1739f08b99e716fa355be627d ibmtpm1563.tar.gz
|
sha1 a2a5335024a2edc1739f08b99e716fa355be627d ibmtpm1563.tar.gz
|
||||||
md5 13013612b3a13dc935fefe1a5684179c ibmtpm1563.tar.gz
|
md5 13013612b3a13dc935fefe1a5684179c ibmtpm1563.tar.gz
|
||||||
# Locally computed:
|
# Locally computed:
|
||||||
sha256 fc3a17f8315c1f47670764f2384943afc0d3ba1e9a0422dacb08d455733bd1e9 ibmtpm1563.tar.gz
|
sha256 55145928ad2b24f34be6a0eacf9fb492e10e0ea919b8428c721fa970e85d6147 ibmtpm1661.tar.gz
|
||||||
sha256 dd2d31b560011ea673e197251e710e52669d911367d83cd3cfd018f8ed58bde9 LICENSE
|
sha256 dd2d31b560011ea673e197251e710e52669d911367d83cd3cfd018f8ed58bde9 LICENSE
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
IBM_SW_TPM2_VERSION = 1563
|
IBM_SW_TPM2_VERSION = 1661
|
||||||
IBM_SW_TPM2_SOURCE = ibmtpm$(IBM_SW_TPM2_VERSION).tar.gz
|
IBM_SW_TPM2_SOURCE = ibmtpm$(IBM_SW_TPM2_VERSION).tar.gz
|
||||||
IBM_SW_TPM2_SITE = https://sourceforge.net/projects/ibmswtpm2/files
|
IBM_SW_TPM2_SITE = https://sourceforge.net/projects/ibmswtpm2/files
|
||||||
IBM_SW_TPM2_LICENSE = BSD-3-Clause
|
IBM_SW_TPM2_LICENSE = BSD-3-Clause
|
||||||
|
|||||||
Reference in New Issue
Block a user