mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-24 22:24:37 +02:00
MdeModulePkg/DxeCapsuleLibFmp: Fix compilation error
The commit "MdeModulePkg/DxeCapsuleLibFmp: Fix crash if no ESRT is found" leads to a compilation error in MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf. The issue occurs because the variable mDxeCapsuleLibReadyToBootEvent which is declared as extern does not exist, while it is defined in DxeCapsuleRuntime.c, a file not included in DxeCapsuleLib.inf. This patch is to fix this by moving the variable defintion to DxeCapsuleLib.c and declare it as extern in DxeCapsuleRuntime.c. Reported-by: Gua Guo <gua.guo@intel.com> Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
This commit is contained in:
parent
c1d1910be6
commit
26a30abdd0
@ -49,7 +49,7 @@ EFI_EVENT mDxeCapsuleLibEndOfDxeEvent = NULL;
|
||||
|
||||
EDKII_FIRMWARE_MANAGEMENT_PROGRESS_PROTOCOL *mFmpProgress = NULL;
|
||||
|
||||
extern BOOLEAN mDxeCapsuleLibReadyToBootEvent;
|
||||
BOOLEAN mDxeCapsuleLibReadyToBootEvent = FALSE;
|
||||
|
||||
/**
|
||||
Initialize capsule related variables.
|
||||
|
@ -24,7 +24,7 @@
|
||||
extern EFI_SYSTEM_RESOURCE_TABLE *mEsrtTable;
|
||||
EFI_EVENT mDxeRuntimeCapsuleLibVirtualAddressChangeEvent = NULL;
|
||||
EFI_EVENT mDxeRuntimeCapsuleLibReadyToBootEvent = NULL;
|
||||
BOOLEAN mDxeCapsuleLibReadyToBootEvent = FALSE;
|
||||
extern BOOLEAN mDxeCapsuleLibReadyToBootEvent;
|
||||
|
||||
/**
|
||||
Convert EsrtTable physical address to virtual address.
|
||||
|
Loading…
x
Reference in New Issue
Block a user