DasharoPayloadPkg,MdeModulePkg: guard capsule report by a PCD

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
This commit is contained in:
Sergii Dmytruk
2026-01-15 20:44:37 +02:00
parent 1333380865
commit ebd3473374
4 changed files with 14 additions and 0 deletions
+5
View File
@@ -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) {