[edk2-devel] [PATCH] UefiPayloadPkg: Add a macro to enable or disable the SecurityStubDxe driver.

Ni, Ray ray.ni at intel.com
Thu Sep 30 07:16:48 UTC 2021


Reviewed-by: Ray Ni <ray.ni at intel.com>

-----Original Message-----
From: Liu, Zhiguang <zhiguang.liu at intel.com> 
Sent: Monday, September 27, 2021 10:00 AM
To: devel at edk2.groups.io
Cc: Dong, Guo <guo.dong at intel.com>; Ni, Ray <ray.ni at intel.com>; Ma, Maurice <maurice.ma at intel.com>; You, Benjamin <benjamin.you at intel.com>
Subject: [PATCH] UefiPayloadPkg: Add a macro to enable or disable the SecurityStubDxe driver.

The SecurityStubDxe driver may be provided by platform payload.

Cc: Guo Dong <guo.dong at intel.com>
Cc: Ray Ni <ray.ni at intel.com>
Cc: Maurice Ma <maurice.ma at intel.com>
Cc: Benjamin You <benjamin.you at intel.com>

Signed-off-by: Zhiguang Liu <zhiguang.liu at intel.com>
---
 UefiPayloadPkg/UefiPayloadPkg.dsc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayloadPkg.dsc
index fb805dc772..4dcbd8e741 100644
--- a/UefiPayloadPkg/UefiPayloadPkg.dsc
+++ b/UefiPayloadPkg/UefiPayloadPkg.dsc
@@ -31,7 +31,7 @@
   DEFINE RAM_DISK_ENABLE              = FALSE

   DEFINE SIO_BUS_ENABLE               = FALSE

   DEFINE UNIVERSAL_PAYLOAD            = FALSE

-

+  DEFINE SECURITY_STUB_ENABLE         = TRUE

   #

   # SBL:      UEFI payload for Slim Bootloader

   # COREBOOT: UEFI payload for coreboot

@@ -461,7 +461,9 @@
   #

   # Components that produce the architectural protocols

   #

+!if $(SECURITY_STUB_ENABLE) == TRUE

   MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf

+!endif

   UefiCpuPkg/CpuDxe/CpuDxe.inf

   MdeModulePkg/Universal/BdsDxe/BdsDxe.inf

   MdeModulePkg/Application/UiApp/UiApp.inf {

-- 
2.32.0.windows.2



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#81317): https://edk2.groups.io/g/devel/message/81317
Mute This Topic: https://groups.io/mt/85891811/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list