From 0410694e4a4b2258129addeaba16e914ed105b32 Mon Sep 17 00:00:00 2001 From: kuqin Date: Mon, 24 Oct 2022 13:01:36 -0700 Subject: [PATCH 1/2] Updated the qemu to run one core --- Platforms/QemuQ35Pkg/PlatformBuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platforms/QemuQ35Pkg/PlatformBuild.py b/Platforms/QemuQ35Pkg/PlatformBuild.py index e951f517d0..413a756ba9 100644 --- a/Platforms/QemuQ35Pkg/PlatformBuild.py +++ b/Platforms/QemuQ35Pkg/PlatformBuild.py @@ -220,7 +220,7 @@ def SetPlatformEnv(self): # Default turn on build reporting. self.env.SetValue("BUILDREPORTING", "TRUE", "Enabling build report") self.env.SetValue("BUILDREPORT_TYPES", "PCD DEPEX FLASH BUILD_FLAGS LIBRARY FIXED_ADDRESS HASH", "Setting build report types") - self.env.SetValue("BLD_*_QEMU_CORE_NUM", "4", "Default") + self.env.SetValue("BLD_*_QEMU_CORE_NUM", "1", "Default") # Include the MFCI test cert by default, override on the commandline with "BLD_*_SHIP_MODE=TRUE" if you want the retail MFCI cert self.env.SetValue("BLD_*_SHIP_MODE", "FALSE", "Default") self.__SetEsrtGuidVars("CONF_POLICY_GUID", "6E08E434-8E04-47B5-9A77-78A3A24523EA", "Platform Hardcoded") From 46a1f2607b03712a4206992f771d86896d63b4f7 Mon Sep 17 00:00:00 2001 From: kuqin Date: Mon, 24 Oct 2022 14:03:41 -0700 Subject: [PATCH 2/2] changing to 2 cores, so that we can still at least test the MP --- Platforms/QemuQ35Pkg/PlatformBuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platforms/QemuQ35Pkg/PlatformBuild.py b/Platforms/QemuQ35Pkg/PlatformBuild.py index 413a756ba9..9a13d0a31c 100644 --- a/Platforms/QemuQ35Pkg/PlatformBuild.py +++ b/Platforms/QemuQ35Pkg/PlatformBuild.py @@ -220,7 +220,7 @@ def SetPlatformEnv(self): # Default turn on build reporting. self.env.SetValue("BUILDREPORTING", "TRUE", "Enabling build report") self.env.SetValue("BUILDREPORT_TYPES", "PCD DEPEX FLASH BUILD_FLAGS LIBRARY FIXED_ADDRESS HASH", "Setting build report types") - self.env.SetValue("BLD_*_QEMU_CORE_NUM", "1", "Default") + self.env.SetValue("BLD_*_QEMU_CORE_NUM", "2", "Default") # Include the MFCI test cert by default, override on the commandline with "BLD_*_SHIP_MODE=TRUE" if you want the retail MFCI cert self.env.SetValue("BLD_*_SHIP_MODE", "FALSE", "Default") self.__SetEsrtGuidVars("CONF_POLICY_GUID", "6E08E434-8E04-47B5-9A77-78A3A24523EA", "Platform Hardcoded")