From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web09.25836.1632708009967673669 for ; Sun, 26 Sep 2021 19:00:10 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: zhiguang.liu@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10119"; a="285399726" X-IronPort-AV: E=Sophos;i="5.85,325,1624345200"; d="scan'208";a="285399726" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2021 19:00:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,325,1624345200"; d="scan'208";a="518311228" Received: from shwdesfp01.ccr.corp.intel.com ([10.239.158.158]) by fmsmga008.fm.intel.com with ESMTP; 26 Sep 2021 19:00:06 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Guo Dong , Ray Ni , Maurice Ma , Benjamin You Subject: [PATCH] UefiPayloadPkg: Add a macro to enable or disable the SecurityStubDxe driver. Date: Mon, 27 Sep 2021 09:59:59 +0800 Message-Id: <20210927015959.1123-1-zhiguang.liu@intel.com> X-Mailer: git-send-email 2.32.0.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable The SecurityStubDxe driver may be provided by platform payload. Cc: Guo Dong Cc: Ray Ni Cc: Maurice Ma Cc: Benjamin You Signed-off-by: Zhiguang Liu --- UefiPayloadPkg/UefiPayloadPkg.dsc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayload= Pkg.dsc index fb805dc772..4dcbd8e741 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dsc +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc @@ -31,7 +31,7 @@ DEFINE RAM_DISK_ENABLE =3D FALSE=0D DEFINE SIO_BUS_ENABLE =3D FALSE=0D DEFINE UNIVERSAL_PAYLOAD =3D FALSE=0D -=0D + DEFINE SECURITY_STUB_ENABLE =3D TRUE=0D #=0D # SBL: UEFI payload for Slim Bootloader=0D # COREBOOT: UEFI payload for coreboot=0D @@ -461,7 +461,9 @@ #=0D # Components that produce the architectural protocols=0D #=0D +!if $(SECURITY_STUB_ENABLE) =3D=3D TRUE=0D MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf=0D +!endif=0D UefiCpuPkg/CpuDxe/CpuDxe.inf=0D MdeModulePkg/Universal/BdsDxe/BdsDxe.inf=0D MdeModulePkg/Application/UiApp/UiApp.inf {=0D --=20 2.32.0.windows.2