]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtPkg/ArmVirtKvmTool: wire up configurable timeout
authorArd Biesheuvel <ardb@kernel.org>
Tue, 1 Feb 2022 18:00:47 +0000 (19:00 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 25 Feb 2022 15:57:11 +0000 (15:57 +0000)
Use the correct PCD type for PcdPlatformBootTimeOut so it gets wired up
to the Timeout EFI variable automatically, which is how the boot manager
stores the timeout preference.

Note that this changes the default to 5 seconds, which appears to be
common across platforms.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
ArmVirtPkg/ArmVirtKvmTool.dsc

index a1bf4b9be87bfcf7573ceefe550eac3d12aedd73..3bd3ebd6e0b3e751ac400571715e456df6fbf182 100644 (file)
 \r
   gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x0\r
 \r
-[PcdsDynamicDefault.common]\r
-  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3\r
+[PcdsDynamicHii]\r
+  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5\r
 \r
+[PcdsDynamicDefault.common]\r
   gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0\r
   gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0\r
   gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0\r