[packages/xen/DEVEL-4.14] - updated gcc10 patch

qboosh qboosh at pld-linux.org
Mon Jan 31 21:00:33 CET 2022


commit 6069a9ad1665ccbff2492b5fae6f15d698a1855a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jan 31 21:01:59 2022 +0100

    - updated gcc10 patch

 gcc10.patch | 60 ------------------------------------------------------------
 1 file changed, 60 deletions(-)
---
diff --git a/gcc10.patch b/gcc10.patch
index ea45980..03f8278 100644
--- a/gcc10.patch
+++ b/gcc10.patch
@@ -6,66 +6,6 @@
  CFLAGS += -DCONSOLE_SERIAL=1
 +
 +CFLAGS += -Wno-error=enum-conversion -Wno-error=maybe-uninitialized
---- xen-4.13.1/stubdom/Makefile~	2020-06-07 17:54:17.000000000 +0200
-+++ xen-4.13.1/stubdom/Makefile	2020-06-07 17:57:37.373200925 +0200
-@@ -232,6 +232,7 @@
- 	patch -d $@ -p1 < vtpm-cmake-Wextra.patch
- 	patch -d $@ -p1 < vtpm-implicit-fallthrough.patch
- 	patch -d $@ -p1 < vtpm_TPM_ChangeAuthAsymFinish.patch
-+	patch -d $@ -p1 < vtpm-gcc10.patch
- 	mkdir $@/build
- 	cd $@/build; CC=${CC} $(CMAKE) .. -DCMAKE_C_FLAGS:STRING="-std=c99 -DTPM_NO_EXTERN $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -Wno-declaration-after-statement"
- 	touch $@
---- xen-4.13.1/stubdom/vtpm-gcc10.patch~	2020-06-07 17:54:17.000000000 +0200
-+++ xen-4.13.1/stubdom/vtpm-gcc10.patch	2020-06-07 17:57:37.373200925 +0200
-@@ -0,0 +1,47 @@
-+--- tpm_emulator-x86_64/tpm/tpm_emulator_extern.h~	2011-12-20 19:30:06.000000000 +0100
-++++ tpm_emulator-x86_64/tpm/tpm_emulator_extern.h	2020-06-07 17:52:04.278217629 +0200
-+@@ -29,7 +29,7 @@
-+   TPM_LOG_ERROR
-+ };
-+ 
-+-void (*tpm_log)(int priority, const char *fmt, ...);
-++extern void (*tpm_log)(int priority, const char *fmt, ...);
-+ 
-+ #if defined(_WIN32) || defined(_WIN64)
-+ #define __BFILE__ ((strrchr(__FILE__, '\\') ? : __FILE__ - 1) + 1)
-+@@ -44,27 +44,27 @@
-+ #define error(fmt, ...) tpm_log(TPM_LOG_ERROR, "%s:%d: Error: " fmt "\n", \
-+                                 __BFILE__, __LINE__, ## __VA_ARGS__)
-+ /* initialization */
-+-int (*tpm_extern_init)(void);
-+-void (*tpm_extern_release)(void);
-++extern int (*tpm_extern_init)(void);
-++extern void (*tpm_extern_release)(void);
-+ 
-+ /* memory allocation */
-+ 
-+-void* (*tpm_malloc)(size_t size);
-++extern void* (*tpm_malloc)(size_t size);
-+ 
-+-void (*tpm_free)(/*const*/ void *ptr);
-++extern void (*tpm_free)(/*const*/ void *ptr);
-+ 
-+ /* random numbers */
-+ 
-+-void (*tpm_get_extern_random_bytes)(void *buf, size_t nbytes);
-++extern void (*tpm_get_extern_random_bytes)(void *buf, size_t nbytes);
-+ 
-+ /* usec since last call */
-+ 
-+-uint64_t (*tpm_get_ticks)(void);
-++extern uint64_t (*tpm_get_ticks)(void);
-+ 
-+ /* file handling */
-+ 
-+-int (*tpm_write_to_storage)(uint8_t *data, size_t data_length);
-+-int (*tpm_read_from_storage)(uint8_t **data, size_t *data_length);
-++extern int (*tpm_write_to_storage)(uint8_t *data, size_t data_length);
-++extern int (*tpm_read_from_storage)(uint8_t **data, size_t *data_length);
-+ 
-+ #endif /* _TPM_EMULATOR_EXTERN_H_ */
-+ 
 --- xen-4.13.1/stubdom/vtpmmgr/vtpmmgr.h.orig	2020-06-07 18:20:43.261215712 +0200
 +++ xen-4.13.1/stubdom/vtpmmgr/vtpmmgr.h	2020-06-07 18:20:56.731170041 +0200
 @@ -50,11 +50,6 @@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xen.git/commitdiff/6069a9ad1665ccbff2492b5fae6f15d698a1855a



More information about the pld-cvs-commit mailing list