From nobody Thu Dec 26 22:09:05 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+114365+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+114365+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1706159344; cv=none; d=zohomail.com; s=zohoarc; b=Ct9Nm4GMjns64pYEq/IqqWi9GvvAoHEIjKUf11+hrkBbHWGllSTMU+k6DJjX8icrCs104AvVaB0rz/vWIIVGo1EZiFivCTvv331EIk28lGNFxhwjaagqXVVzvsvF1caq4S1Kg/1JizdfS4LMl5KZvirw2R1tis8+v5IArBZZX3w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1706159344; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:Sender:Subject:Subject:To:To:Message-Id; bh=w6cIIGQAD3we+IwrramHKYQ03vP6Jgz5VzY+Grwl5Us=; b=dRXfTHc6HzuF46evHitSoNWNCdVIPWyN2XWCoIu/jCmrLjpjxE9VImSAWmaKH0jGc35ajUt3ycvE0CjU14gL3MKbttakgeKBBJlloYxNqKxSUI/KGANC1y9FwPdiBjoElAP5u/1NAn0pTrJz1O1td4Y2p8cZ5xSzb5EjsAcl2hk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+114365+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1706159344925184.9525911743873; Wed, 24 Jan 2024 21:09:04 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=5OSg3CzDv6IGzAHIFzAPmDBBpfT/Cuu7r2c1V+YFn90=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1706159344; v=1; b=JewYVqXm/AUW8OFMIb0UkVP/Denh0ScapoadGc9si0FI3LSXvMgcefw52rTmwnsTFbzoHQc1 JoJPnTtWE6cThqNowYgL7QHodvMbcLy843fT/I9jJn6Tu5X90d9tcPQCn0AZDxbNuQKGN8lqs1W qV6/CWwC/QKbuAMsT9c1a+io= X-Received: by 127.0.0.2 with SMTP id cBNEYY1788612xthOIfos424; Wed, 24 Jan 2024 21:09:04 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by mx.groups.io with SMTP id smtpd.web10.9947.1706159344016717444 for ; Wed, 24 Jan 2024 21:09:04 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10962"; a="9440280" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="9440280" X-Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2024 21:09:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="28365982" X-Received: from gguo-desk.gar.corp.intel.com ([10.225.76.26]) by orviesa002.jf.intel.com with ESMTP; 24 Jan 2024 21:09:02 -0800 From: "Guo, Gua" To: devel@edk2.groups.io Cc: gua.guo@intel.com, Chasel Chiu , Guo Dong , Sean Rhodes , James Lu Subject: [edk2-devel] [PATCH v2] UefiPayloadPkg/Crypto: Support external Crypto drivers. Date: Thu, 25 Jan 2024 13:08:57 +0800 Message-Id: <20240125050857.561-1-gua.guo@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,gua.guo@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: GDR4ZFNc0RlZ1nJGyND3ai6Cx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1706159347003100003 Content-Type: text/plain; charset="utf-8" From: Gua Guo Crypto in serveral case will use old version or latest version, Platform may choose to only update Crypto drivers without updating whole UPL, in this case the Crypto driver will provide by platform payload outside the common UPL binary. Cc: Chasel Chiu Cc: Guo Dong Cc: Sean Rhodes Cc: James Lu Cc: Gua Guo Signed-off-by: Gua Guo Reviewed-by: Chasel Chiu Reviewed-by: James Lu --- UefiPayloadPkg/UefiPayloadPkg.dsc | 10 +++++++++- UefiPayloadPkg/UefiPayloadPkg.fdf | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayload= Pkg.dsc index 4f195c1e52..2c4013bd9d 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dsc +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc @@ -37,12 +37,18 @@ DEFINE ATA_ENABLE =3D TRUE DEFINE SD_ENABLE =3D TRUE DEFINE PS2_MOUSE_ENABLE =3D TRUE - DEFINE CRYPTO_PROTOCOL_SUPPORT =3D FALSE DEFINE SD_MMC_TIMEOUT =3D 1000000 DEFINE USE_CBMEM_FOR_CONSOLE =3D FALSE DEFINE BOOTSPLASH_IMAGE =3D FALSE DEFINE NVME_ENABLE =3D TRUE DEFINE CAPSULE_SUPPORT =3D FALSE + + # + # Crypto Support + # + DEFINE CRYPTO_PROTOCOL_SUPPORT =3D FALSE + DEFINE CRYPTO_DRIVER_EXTERNAL_SUPPORT =3D FALSE + # # Setup Universal Payload # @@ -860,11 +866,13 @@ # Misc # !if $(CRYPTO_PROTOCOL_SUPPORT) =3D=3D TRUE +!if $(CRYPTO_DRIVER_EXTERNAL_SUPPORT) =3D=3D FALSE CryptoPkg/Driver/CryptoDxe.inf { BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf } +!endif !endif #------------------------------ diff --git a/UefiPayloadPkg/UefiPayloadPkg.fdf b/UefiPayloadPkg/UefiPayload= Pkg.fdf index 7d04a8cffd..c1b1e35f32 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.fdf +++ b/UefiPayloadPkg/UefiPayloadPkg.fdf @@ -154,8 +154,10 @@ INF MdeModulePkg/Universal/ReportStatusCodeRouter/Runt= imeDxe/ReportStatusCodeRou INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerR= untimeDxe.inf !if $(CRYPTO_PROTOCOL_SUPPORT) =3D=3D TRUE +!if $(CRYPTO_DRIVER_EXTERNAL_SUPPORT) =3D=3D FALSE INF CryptoPkg/Driver/CryptoDxe.inf !endif +!endif !if $(SECURITY_STUB_ENABLE) =3D=3D TRUE INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf !endif -- 2.39.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114365): https://edk2.groups.io/g/devel/message/114365 Mute This Topic: https://groups.io/mt/103948651/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-