Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
From fc8820cfaa8b5e17328f731df93911f6ab92443b Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Berger <stefanb@linux.ibm.com>
|
||||
Date: Fri, 2 Jan 2026 11:37:31 -0500
|
||||
Subject: [PATCH] Fix a compilation error in TPMLIB_GetPlaintext
|
||||
|
||||
Fix a compilation error that newer gcc versions may complain about:
|
||||
|
||||
tpm_library.c: In function 'TPMLIB_GetPlaintext':
|
||||
tpm_library.c:441:11: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
|
||||
441 | start = strstr(stream, starttag);
|
||||
| ^
|
||||
At top level:
|
||||
cc1: note: unrecognized command-line option '-Wno-self-assign' may have been intended to silence earlier diagnostics
|
||||
cc1: all warnings being treated as errors
|
||||
|
||||
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
|
||||
|
||||
Upstream: https://github.com/stefanberger/libtpms/commit/fc8820cfaa8b5e17328f731df93911f6ab92443b
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
src/tpm_library.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/tpm_library.c b/src/tpm_library.c
|
||||
index f48f4fd3..7b2ea687 100644
|
||||
--- a/src/tpm_library.c
|
||||
+++ b/src/tpm_library.c
|
||||
@@ -435,7 +435,7 @@ static unsigned char *TPMLIB_GetPlaintext(const char *stream,
|
||||
const char *endtag,
|
||||
size_t *length)
|
||||
{
|
||||
- char *start, *end;
|
||||
+ const char *start, *end;
|
||||
unsigned char *plaintext = NULL;
|
||||
|
||||
start = strstr(stream, starttag);
|
||||
--
|
||||
2.47.3
|
||||
|
||||
3
package/libtpms/libtpms.hash
Normal file
3
package/libtpms/libtpms.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 edac03680f8a4a1c5c1d609a10e3f41e1a129e38ff5158f0c8deaedc719fb127 libtpms-0.10.2.tar.gz
|
||||
sha256 82f1e6bae374bb6a9d4f4596767fd33e499718d560de140fd9f3d402cc5e41fb LICENSE
|
||||
18
package/libtpms/libtpms.mk
Normal file
18
package/libtpms/libtpms.mk
Normal file
@@ -0,0 +1,18 @@
|
||||
################################################################################
|
||||
#
|
||||
# libtpms
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBTPMS_VERSION = 0.10.2
|
||||
LIBTPMS_SITE = $(call github,stefanberger,libtpms,v$(LIBTPMS_VERSION))
|
||||
LIBTPMS_LICENSE = BSD-4-Clause
|
||||
LIBTPMS_LICENSE_FILES = LICENSE
|
||||
LIBTPMS_INSTALL_STAGING = YES
|
||||
|
||||
# Required because a plain Git clone is used:
|
||||
HOST_LIBTPMS_AUTORECONF = YES
|
||||
HOST_LIBTPMS_DEPENDENCIES = host-pkgconf host-openssl
|
||||
HOST_LIBTPMS_CONF_OPTS = --with-openssl -with-tpm2
|
||||
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user