audk/OvmfPkg/Library/PlatformBootManagerLib
Laszlo Ersek 2eb3589860 OvmfPkg/PlatformBootManagerLib: remove stale FvFile boot options
Removes any boot options that point to binaries built into the firmware
and have become stale due to any of the following:
- DXEFV's base address or size changed (historical),
- DXEFV's FvNameGuid changed,
- the FILE_GUID of the pointed-to binary changed,
- the referenced binary is no longer built into the firmware.

For example, multiple such "EFI Internal Shell" boot options can coexist.
They technically differ from each other, but may not describe any built-in
shell binary exactly. Such options can accumulate in a varstore over time,
and while they remain generally bootable (thanks to the efforts of
BmGetFileBufferByFvFilePath()), they look bad.

Filter out any stale options.

This functionality is not added to QemuBootOrderLib, because it is
independent from QEMU and fw_cfg.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Gary Lin <glin@suse.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2016-07-13 01:04:37 +02:00
..
BdsPlatform.c OvmfPkg/PlatformBootManagerLib: remove stale FvFile boot options 2016-07-13 01:04:37 +02:00
BdsPlatform.h OvmfPkg/PlatformBootManagerLib: rebase boot logo display to BootLogoLib 2016-05-27 11:28:01 +02:00
PlatformBootManagerLib.inf OvmfPkg/PlatformBootManagerLib: remove stale FvFile boot options 2016-07-13 01:04:37 +02:00
PlatformData.c OvmfPkg/PlatformBootManagerLib: Remove unused vars and func prototypes 2016-05-04 08:47:43 +08:00
QemuKernel.c OvmfPkg: Duplicate PlatformBdsLib to PlatformBootManagerLib 2016-05-04 08:47:36 +08:00