Add single option to revert to old ABI

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
Callum Farmer 2024-08-04 19:13:32 +01:00
parent 81321deb03
commit b23462d47c
No known key found for this signature in database
GPG Key ID: 9A5B19E18CD0013C
2 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,4 @@
#define GNU_EFI_USE_REALLOCATEPOOL_ABI 0 #define GNU_EFI_3_0_COMPAT
#define GNU_EFI_USE_COPYMEM_ABI 0
#include <efi.h> #include <efi.h>
#include <efilib.h> #include <efilib.h>

View File

@ -7,6 +7,16 @@ Default ABI will be highest number
Older versions can be selected via compiler defines Older versions can be selected via compiler defines
*/ */
/* Option to set all compat to GNU-EFI 3.0
To keep existing apps working without change
Default to current ABI
*/
#ifdef GNU_EFI_3_0_COMPAT
#define GNU_EFI_USE_REALLOCATEPOOL_ABI 0
#define GNU_EFI_USE_COPYMEM_ABI 0
#define GNU_EFI_USE_COMPAREGUID_ABI 0
#endif
/* ReallocatePool */ /* ReallocatePool */
#ifndef GNU_EFI_USE_REALLOCATEPOOL_ABI #ifndef GNU_EFI_USE_REALLOCATEPOOL_ABI
#define GNU_EFI_USE_REALLOCATEPOOL_ABI 1 #define GNU_EFI_USE_REALLOCATEPOOL_ABI 1