edk2/MdeModulePkg
Zhichao Gao 0889500ce1 MdeModulePkg/BdsDxe: Use a pcd to control PlatformRecovery
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1678

Use the PcdPlatformRecoverySupport to control the function
of platform recovery in BDS.
First, set the variable's ("OsIndicationsSupported")
EFI_OS_INDICATIONS_START_PLATFORM_RECOVERY bit base on the pcd.
It would affect the variable "OsIndications".
While the platform does not support the platform recovery,
it is inappropriate to set a PlatformRecovery#### variable. So
skip setting the variable. But it should remain the behavior of
booting from a default file path (such as \EFI\BOOT\BOOTX64.EFI)
to be compatible with the previous version UEFI spec.

Add memory check before build platform default boot option. If
fail to allocate memory for the defualt boot file path, put the
system into dead loop to indicate it is unable to boot.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Michael Turner <Michael.Turner@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Signed-off-by: Zhichao Gao <zhichao.gao@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
2019-07-01 14:59:20 +08:00
..
Application MdeModulePkg/CapsuleApp: Enhance Capsule-On-Disk related functions. 2019-06-26 15:08:18 +08:00
Bus MdeModulePkg/SdMmcHcDxe: Implement revision 3 of SdMmcOverrideProtocol 2019-07-01 09:19:36 +08:00
Core MdeModulePkg/DxeIpl: Support Capsule On Disk. 2019-06-26 15:10:41 +08:00
Include MdeModulePkg/SdMmcOverride: Add GetOperatingParam notify phase 2019-07-01 09:19:26 +08:00
Library MdeModulePkg/DxeCapsuleLibFmp: Add missing NULL pointer check. 2019-06-28 12:31:48 +08:00
Logo MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
Universal MdeModulePkg/BdsDxe: Use a pcd to control PlatformRecovery 2019-07-01 14:59:20 +08:00
MdeModulePkg.dec MdeModulePkg: Add a pcd to set the OS indications bit 2019-07-01 14:59:20 +08:00
MdeModulePkg.dsc MdeModulePkg: Add CapsuleOnDiskLoadPei PEIM. 2019-06-26 15:10:42 +08:00
MdeModulePkg.uni MdeModulePkg: Add a pcd to set the OS indications bit 2019-07-01 14:59:20 +08:00
MdeModulePkgExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00