Add single option to revert to old ABI
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
parent
81321deb03
commit
b23462d47c
@ -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 <efi.h>
|
||||
#include <efilib.h>
|
||||
|
10
inc/legacy.h
10
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
|
||||
|
Loading…
Reference in New Issue
Block a user