]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
MdeModulePkg: Skip registering BootManagerMenu if absent
authorSunny Wang <sunnywang@hpe.com>
Fri, 1 Jul 2016 02:38:24 +0000 (10:38 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Tue, 5 Jul 2016 09:33:05 +0000 (17:33 +0800)
commite58f1ae5c9689200865cf4fdd7d6e8a9d28e3cf3
tree4e117ccf13ce8454e65cc22893e9e2f0fc49fbf6
parentd84577e573234cbd1f3de2b7bd6d6f00512e764f
MdeModulePkg: Skip registering BootManagerMenu if absent

This is a enhancement to support the case when platform firmware
doesn't support Boot Manager Menu. For now, if BootManagerMenu FFS
can not be retrieved from FV, BDS core code will still register a
boot option for it. Then, this non-functional boot option will
still be booted by user's request (like HotKey or Exit from shell)
to cause additional boot time and error status code reported.
Therefore, it would be good to skip BootManagerMenu boot option
registration and then return error status and Invalid BootOption
data for this case so that the BootManagerBoot() or other consumers
can directly return without doing anything.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Sunny Wang <sunnywang@hpe.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
MdeModulePkg/Include/Library/UefiBootManagerLib.h
MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
MdeModulePkg/Universal/BdsDxe/BdsEntry.c