From b23462d47c644bfea63400f8fa34378ed8e0ca23 Mon Sep 17 00:00:00 2001 From: Callum Farmer Date: Sun, 4 Aug 2024 19:13:32 +0100 Subject: [PATCH] Add single option to revert to old ABI Signed-off-by: Callum Farmer --- apps/old_ABI.c | 3 +-- inc/legacy.h | 10 ++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/old_ABI.c b/apps/old_ABI.c index 096982f..3604e58 100644 --- a/apps/old_ABI.c +++ b/apps/old_ABI.c @@ -1,5 +1,4 @@ -#define GNU_EFI_USE_REALLOCATEPOOL_ABI 0 -#define GNU_EFI_USE_COPYMEM_ABI 0 +#define GNU_EFI_3_0_COMPAT #include #include diff --git a/inc/legacy.h b/inc/legacy.h index a3a6efc..e21341e 100644 --- a/inc/legacy.h +++ b/inc/legacy.h @@ -7,6 +7,16 @@ Default ABI will be highest number 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 */ #ifndef GNU_EFI_USE_REALLOCATEPOOL_ABI #define GNU_EFI_USE_REALLOCATEPOOL_ABI 1