The variable runtime cache for SMM enabled implementations of the
variable runtime DXE driver was introduced after the standalone
MM based implementation was merged for the DeveloperBox platform.

This means the combined binary image of ARM Trusted Firmware and
the standalone MM runtime we carry in edk2-non-osi predates this
feature, so we need to disable it when building the non-secure side
when incorporating the prebuilt binary.

Whether it makes sense to enable the runtime cache for this platform
is a different question, so let's keep it enabled entirely until
someone identifies a need for it.

Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org>
---
 Platform/Socionext/DeveloperBox/DeveloperBox.dsc.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Platform/Socionext/DeveloperBox/DeveloperBox.dsc.inc 
b/Platform/Socionext/DeveloperBox/DeveloperBox.dsc.inc
index a10e48ca07ea..084b4c994b97 100644
--- a/Platform/Socionext/DeveloperBox/DeveloperBox.dsc.inc
+++ b/Platform/Socionext/DeveloperBox/DeveloperBox.dsc.inc
@@ -130,6 +130,8 @@ [PcdsFeatureFlag]
   # needed for NFIT tables installed by RamDiskDxe
   gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
 
+  gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
+
 [PcdsFixedAtBuild.common]
 !ifdef $(FIRMWARE_VENDOR)
   gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor|L"$(FIRMWARE_VENDOR)"
-- 
2.20.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#51466): https://edk2.groups.io/g/devel/message/51466
Mute This Topic: https://groups.io/mt/64139094/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to