SecureBootConfig: Modify UI

Rewrite the UI based on feedback from enabling the module.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2023-01-27 13:32:00 -07:00
committed by Jeremy Soller
parent 4de32568fa
commit 30f6b2f3c7
6 changed files with 97 additions and 572 deletions

View File

@ -247,7 +247,8 @@ UpdateFrontPageForm (
HiiFreeOpCodeHandle (EndOpCodeHandle);
}
void UpdateFirmwareInfoForm(void)
// FIXME: Copied from Device Manager; clean up
void ShowSecureBootConfig(void)
{
void *StartHandle;
void *EndHandle;
@ -283,8 +284,6 @@ void UpdateFirmwareInfoForm(void)
EndLabel->ExtendOpCode = EFI_IFR_EXTEND_OP_LABEL;
EndLabel->Number = LABEL_END;
// FIXME: Copied from Device Manager; clean up
// Get SecureBootConfig handle
HiiHandles = HiiGetHiiHandles(&SecureBootConfigGuid);
ASSERT(HiiHandles != NULL);
@ -357,7 +356,7 @@ void UpdateFirmwareInfoForm(void)
HiiUpdateForm(
HiiHandle,
&mFrontPageGuid,
FIRMWARE_INFO_FORM_ID,
FRONT_PAGE_FORM_ID,
StartHandle,
EndHandle
);
@ -424,7 +423,7 @@ InitializeFrontPage (
//
UpdateFrontPageForm();
UpdateFirmwareInfoForm();
ShowSecureBootConfig();
return Status;
}