mirror of https://github.com/acidanthera/audk.git
OvmfPkg/PlatformPei: Fix issue with 'RELEASE' tag build
When building in release mode on OVMF, the ASSERT_EFI_ERROR macro is empty. So, to set the BootMode, in a release build, it must be outside of ASSERT_EFI_ERROR. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11413 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
9ed65b1005
commit
667bf1e48f
|
@ -221,8 +221,13 @@ VOID
|
||||||
BootModeInitialization (
|
BootModeInitialization (
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ASSERT_EFI_ERROR (PeiServicesSetBootMode (BOOT_WITH_FULL_CONFIGURATION));
|
EFI_STATUS Status;
|
||||||
ASSERT_EFI_ERROR (PeiServicesInstallPpi (mPpiBootMode));
|
|
||||||
|
Status = PeiServicesSetBootMode (BOOT_WITH_FULL_CONFIGURATION);
|
||||||
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
|
Status = PeiServicesInstallPpi (mPpiBootMode);
|
||||||
|
ASSERT_EFI_ERROR (Status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue