Files
edk2/MdeModulePkg/Include/Library
Sergii Dmytruk d5d52c1b41 DasharoPayloadPkg,MdeModulePkg: inform user via popup if in recovery boot
MdeModulePkg changes
--------------------

Allow reusing functions by other packages, specifically by
DasharoPayloadPkg.

 * Move GetStringWidth() to CustomizedDisplayLib.

 * Move CreateMultiStringPopUp() to CustomizedDisplayLib
   CreateSharedPopUp() is an implementation of it and is moved as well
   (not used for anything else).

DasharoPayloadPkg changes
----------------------

Parse coreboot information about recovery boot and display a dialog
using functions moved to CustomizedDisplayLib library of MdeModulePkg.

 * Add ParseVBootWorkbuf() function
   Extracts information about vboot recovery from coreboot table.
   Ignore minor version of cb_vboot_workbuf_v2 while parsing because it
   doesn't seem to affect data layout and therefore shouldn't be the
   reason for aborting parsing of the structure.

 * Inform user via popup if in recovery boot.
   The popup explains what happened along with possible reasons.
   It disappears automatically after a timeout of 30 seconds or
   when user presses Enter.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2025-03-10 01:25:43 +02:00
..