Commit graph

2 commits

Author SHA1 Message Date
Luigi Leonardi
d147d384ac OvmfPkg/PlatformBootManagerCommonLib: Introduce OvmfFindLoadOption
OvmfFindLoadOption behaves like EfiBootManagerFindLoadOption, it searches for
an entry in the array: an entry is found if the two paths are equal.

This removes possible duplicates in the boot entries: two entries with
the same path and different attributes are not detected as equal by
EfiBootManagerFindLoadOption.
In this case, the old entry is deleted and replaced by the new one.

Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
2025-03-05 19:43:06 +00:00
Luigi Leonardi
a255b52fbc OvmfPkg: Introduce PlatformBootManagerCommonLib
Many function present in PlatformBootManagerLib and
PlatformBootManagerLibLight have the same implementation. The idea of
this new Library is to collect them to enable code reuse.

Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
2025-02-28 14:07:34 +00:00