]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiPayloadPkg: Add a macro to select the SecurityStubDxe driver.
authorLiu, Zhiguang <Zhiguang.Liu@intel.com>
Mon, 27 Sep 2021 01:59:59 +0000 (09:59 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 11 Oct 2021 05:54:11 +0000 (05:54 +0000)
The SecurityStubDxe driver may be provided by platform payload.

Cc: Guo Dong <guo.dong@intel.com>
Reviewed-by: 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.dsc

index 9319422efe4b993fe1c757debb912b5e681edbd0..5aaae94eeccbe3d02d0d3cb4499e0af8072fb73f 100644 (file)
@@ -31,7 +31,7 @@
   DEFINE RAM_DISK_ENABLE              = FALSE\r
   DEFINE SIO_BUS_ENABLE               = FALSE\r
   DEFINE UNIVERSAL_PAYLOAD            = FALSE\r
-\r
+  DEFINE SECURITY_STUB_ENABLE         = TRUE\r
   #\r
   # SBL:      UEFI payload for Slim Bootloader\r
   # COREBOOT: UEFI payload for coreboot\r
   #\r
   # Components that produce the architectural protocols\r
   #\r
+!if $(SECURITY_STUB_ENABLE) == TRUE\r
   MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
+!endif\r
   UefiCpuPkg/CpuDxe/CpuDxe.inf\r
   MdeModulePkg/Universal/BdsDxe/BdsDxe.inf\r
   MdeModulePkg/Application/UiApp/UiApp.inf {\r