From: jljusten Date: Tue, 22 Mar 2011 04:54:18 +0000 (+0000) Subject: OvmfPkg/PlatformPei: Fix issue with 'RELEASE' tag build X-Git-Tag: edk2-stable201903~15065 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=667bf1e48f1af4e9bba3d6d2805ec2fbb1b145c6;ds=sidebyside 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 --- diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c index aa64aa381c..5479b76f4a 100644 --- a/OvmfPkg/PlatformPei/Platform.c +++ b/OvmfPkg/PlatformPei/Platform.c @@ -221,8 +221,13 @@ VOID BootModeInitialization ( ) { - ASSERT_EFI_ERROR (PeiServicesSetBootMode (BOOT_WITH_FULL_CONFIGURATION)); - ASSERT_EFI_ERROR (PeiServicesInstallPpi (mPpiBootMode)); + EFI_STATUS Status; + + Status = PeiServicesSetBootMode (BOOT_WITH_FULL_CONFIGURATION); + ASSERT_EFI_ERROR (Status); + + Status = PeiServicesInstallPpi (mPpiBootMode); + ASSERT_EFI_ERROR (Status); }