mirror of
https://github.com/Dasharo/edk2.git
synced 2026-06-13 10:16:24 -07:00
DasharoPayloadPkg,MdeModulePkg: guard capsule report by a PCD
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
This commit is contained in:
@@ -100,3 +100,8 @@ gDasharoPayloadPkgTokenSpaceGuid.PcdSetupMenuKey|0x0017|UINT16|0x00000008
|
||||
|
||||
gDasharoPayloadPkgTokenSpaceGuid.PcdPrintSolStrings|FALSE|BOOLEAN|0x0000000A
|
||||
gDasharoPayloadPkgTokenSpaceGuid.PcdSerialOnSuperIo|FALSE|BOOLEAN|0x0000000B
|
||||
|
||||
## Enables feedback about the outcome of a firmware update in a form of a dialog
|
||||
## stating results and also diagnostic information on failure. When FALSE, the
|
||||
## system just reboots without saying anything.
|
||||
gDasharoPayloadPkgTokenSpaceGuid.PcdShowCapsuleReport|FALSE|BOOLEAN|0x0000000C
|
||||
|
||||
@@ -74,6 +74,8 @@
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdCoDRelocationFileName ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdCapsuleEmbeddedDriverSupport ## CONSUMES
|
||||
|
||||
gDasharoPayloadPkgTokenSpaceGuid.PcdShowCapsuleReport ## SOMETIMES_CONSUMES
|
||||
|
||||
[FeaturePcd]
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleReset ## CONSUMES
|
||||
|
||||
|
||||
@@ -54,6 +54,9 @@
|
||||
BmpSupportLib
|
||||
PopUpLib
|
||||
|
||||
[Pcd]
|
||||
gDasharoPayloadPkgTokenSpaceGuid.PcdShowCapsuleReport ## SOMETIMES_CONSUMES
|
||||
|
||||
[Protocols]
|
||||
gEsrtManagementProtocolGuid ## CONSUMES
|
||||
gEfiFirmwareManagementProtocolGuid ## CONSUMES
|
||||
|
||||
@@ -280,6 +280,10 @@ ReportDisplay (
|
||||
PopUpData PopUp;
|
||||
BOOLEAN Success;
|
||||
|
||||
if (!FixedPcdGetBool (PcdShowCapsuleReport)) {
|
||||
return;
|
||||
}
|
||||
|
||||
PopUpInit (&PopUp, /*Width=*/78);
|
||||
|
||||
if (Report->CapsuleCount == 0) {
|
||||
|
||||
Reference in New Issue
Block a user