]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: indicate enablement of flash variables with a dedicated PCD
authorLaszlo Ersek <lersek@redhat.com>
Tue, 12 Nov 2013 18:35:23 +0000 (18:35 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 12 Nov 2013 18:35:23 +0000 (18:35 +0000)
PcdFlashNvStorageVariableBase64 is used to arbitrate between
QemuFlashFvbServicesRuntimeDxe and EmuVariableFvbRuntimeDxe, but even the
latter driver sets it if we fall back to it.

Allow code running later than the startup of these drivers to know about
the availability of flash variables, through a dedicated PCD.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14843 6f19259b-4bc3-4df7-8a09-765794883524

OvmfPkg/OvmfPkg.dec
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c

index 01fe46943d1e6da534d716c4a56829e25e27ca4a..7bfd5c31ae60170111907a26faf4ecc9cc54b803 100644 (file)
@@ -80,6 +80,7 @@
 \r
 [PcdsDynamic, PcdsDynamicEx]\r
   gUefiOvmfPkgTokenSpaceGuid.PcdEmuVariableEvent|0|UINT64|2\r
+  gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashVariablesEnable|FALSE|BOOLEAN|0x10\r
 \r
 [PcdsFeatureFlag]\r
   gUefiOvmfPkgTokenSpaceGuid.PcdSecureBootEnable|FALSE|BOOLEAN|3\r
index 81981f5941b350ef67cf6a015ce03eb4eedb8b86..e3e7176a41f97372499cb81e72495928c0bd4afe 100644 (file)
@@ -77,6 +77,7 @@
   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase\r
   gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogBase\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64\r
+  gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashVariablesEnable\r
 \r
 \r
 [Depex]\r
index 2ae667875128261c7a9e7bc36518fd6f496e6e3a..7d26c41ccc7bde7c7e4320b73e8762a66ab95897 100644 (file)
@@ -1222,5 +1222,6 @@ Returns:
                   );\r
   ASSERT_EFI_ERROR (Status);\r
 \r
+  PcdSetBool (PcdOvmfFlashVariablesEnable, TRUE);\r
   return EFI_SUCCESS;\r
 }\r