[PATCH] UefiPayloadPkg: Use SECURITY_STUB_ENABLE to control the SecurityStubDxe


Zhiguang Liu
 

The SecurityStubDxe driver may be provided by platform payload.
In UefiPayloadPkg\UefiPayloadPkg.fdf file, SecurityStubDxe should only
be included if SECURITY_STUB_ENABLE is TRUE

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

Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
---
UefiPayloadPkg/UefiPayloadPkg.fdf | 2 ++
1 file changed, 2 insertions(+)

diff --git a/UefiPayloadPkg/UefiPayloadPkg.fdf b/UefiPayloadPkg/UefiPayload=
Pkg.fdf
index 6b48bfc869..72e4c70467 100644
--- a/UefiPayloadPkg/UefiPayloadPkg.fdf
+++ b/UefiPayloadPkg/UefiPayloadPkg.fdf
@@ -97,7 +97,9 @@ INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusC=
odeRouterRuntimeDxe.inf=0D
INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerR=
untimeDxe.inf=0D
=0D
+!if $(SECURITY_STUB_ENABLE) =3D=3D TRUE=0D
INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf=0D
+!endif=0D
INF UefiCpuPkg/CpuDxe/CpuDxe.inf=0D
INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf=0D
INF MdeModulePkg/Application/UiApp/UiApp.inf=0D
--=20
2.32.0.windows.2

Join devel@edk2.groups.io to automatically receive all group messages.