From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id DA28FD8019A for ; Thu, 25 Jan 2024 05:09:05 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=qQXkb3YnBhd5dwMEaUlEWLH2sQ9mBLtOLwHZ1TLdeko=; 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=v5CbtZNQcCjh5WRGCAwG6ZaltxMfY6jyjsSxNeSq6/sXFjwKwPGlQ+iiwRJyjlJcFRljgKo9 qqqv6IBz2dFyeMSSU/jTfhjxWt/fHfswu/g1JRHWRh+4g8PZ4AHXwwnD9Jr71cY9ZVLcBWU4zSO ZPvNj0jm+S1MzfUQBWcb4odE= X-Received: by 127.0.0.2 with SMTP id qv8KYY7687511xuAaHjXUzg7; 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: eE5MTj2PTFuxv76BaZTZmarKx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=v5CbtZNQ; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none) From: Gua Guo =0D Crypto in serveral case will use old version or latest version,=0D Platform may choose to only update Crypto drivers without updating=0D whole UPL, in this case the Crypto driver will provide by platform=0D payload outside the common UPL binary.=0D =0D Cc: Chasel Chiu =0D Cc: Guo Dong =0D Cc: Sean Rhodes =0D Cc: James Lu =0D Cc: Gua Guo =0D Signed-off-by: Gua Guo =0D ---=0D UefiPayloadPkg/UefiPayloadPkg.dsc | 10 +++++++++-=0D UefiPayloadPkg/UefiPayloadPkg.fdf | 2 ++=0D 2 files changed, 11 insertions(+), 1 deletion(-)=0D =0D diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayload= Pkg.dsc=0D index 4f195c1e52..2c4013bd9d 100644=0D --- a/UefiPayloadPkg/UefiPayloadPkg.dsc=0D +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc=0D @@ -37,12 +37,18 @@=0D DEFINE ATA_ENABLE =3D TRUE=0D DEFINE SD_ENABLE =3D TRUE=0D DEFINE PS2_MOUSE_ENABLE =3D TRUE=0D - DEFINE CRYPTO_PROTOCOL_SUPPORT =3D FALSE=0D DEFINE SD_MMC_TIMEOUT =3D 1000000=0D DEFINE USE_CBMEM_FOR_CONSOLE =3D FALSE=0D DEFINE BOOTSPLASH_IMAGE =3D FALSE=0D DEFINE NVME_ENABLE =3D TRUE=0D DEFINE CAPSULE_SUPPORT =3D FALSE=0D +=0D + #=0D + # Crypto Support=0D + #=0D + DEFINE CRYPTO_PROTOCOL_SUPPORT =3D FALSE=0D + DEFINE CRYPTO_DRIVER_EXTERNAL_SUPPORT =3D FALSE=0D +=0D #=0D # Setup Universal Payload=0D #=0D @@ -860,11 +866,13 @@=0D # Misc=0D #=0D !if $(CRYPTO_PROTOCOL_SUPPORT) =3D=3D TRUE=0D +!if $(CRYPTO_DRIVER_EXTERNAL_SUPPORT) =3D=3D FALSE=0D CryptoPkg/Driver/CryptoDxe.inf {=0D =0D BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf=0D TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf=0D }=0D +!endif=0D !endif=0D =0D #------------------------------=0D diff --git a/UefiPayloadPkg/UefiPayloadPkg.fdf b/UefiPayloadPkg/UefiPayload= Pkg.fdf=0D index 7d04a8cffd..c1b1e35f32 100644=0D --- a/UefiPayloadPkg/UefiPayloadPkg.fdf=0D +++ b/UefiPayloadPkg/UefiPayloadPkg.fdf=0D @@ -154,8 +154,10 @@ INF MdeModulePkg/Universal/ReportStatusCodeRouter/Runt= imeDxe/ReportStatusCodeRou=0D INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerR= untimeDxe.inf=0D =0D !if $(CRYPTO_PROTOCOL_SUPPORT) =3D=3D TRUE=0D +!if $(CRYPTO_DRIVER_EXTERNAL_SUPPORT) =3D=3D FALSE=0D INF CryptoPkg/Driver/CryptoDxe.inf=0D !endif=0D +!endif=0D !if $(SECURITY_STUB_ENABLE) =3D=3D TRUE=0D INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf=0D !endif=0D --=0D 2.39.2.windows.1=0D =0D -=-=-=-=-=-=-=-=-=-=-=- 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/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-