From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web11.38802.1650287010766851398 for ; Mon, 18 Apr 2022 06:03:38 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=eEJdsfyk; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: yi1.li@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650287018; x=1681823018; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CIGAtxV60K6R5UltzvrYrQB+cHDlijddTcrcyxW2SCI=; b=eEJdsfykCdEaD5DJ+AMFLAA2syUaEhJx5m+8YYw6bQFIAg77v4+vEghw HWZfpj3EcReBd4NjZDlkvBwosU3ByAc8pkqXls33VfI0IwjA9xVQ1YCjv aKXthmKFybWq464DYBgdMoIps3ecowSwVgvZF5DbH1iTSYlX9B1qJRtmd cQtj4fsAtfot7F0xa9wa8JC++35adfcXUkYzMfB2MITnFZqRFhafmAgOy vTEiUzCttnq1+RGqXzMdv6/t/gcPwplNVNUBP7l2HTDZ77M/yqBtrifTd hswAJ8V3ZwHAWNL9BjvFybmEILhPpijdEnsw7psospnU0djwecM94KWUl g==; X-IronPort-AV: E=McAfee;i="6400,9594,10320"; a="349961038" X-IronPort-AV: E=Sophos;i="5.90,269,1643702400"; d="scan'208";a="349961038" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2022 06:03:38 -0700 X-IronPort-AV: E=Sophos;i="5.90,269,1643702400"; d="scan'208";a="575562840" Received: from shwdejointd178.ccr.corp.intel.com ([10.239.153.103]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2022 06:03:37 -0700 From: "yi1 li" To: devel@edk2.groups.io Cc: yi1 li Subject: [PATCH 4/4] CryptoPkg: Add PcdEcEnabled to Base/Pei/SmmCryptLib.inf Date: Mon, 18 Apr 2022 21:03:23 +0800 Message-Id: X-Mailer: git-send-email 2.33.0.windows.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3679 REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3828 Base/Pei/SmmCryptLib.inf will use openssllib, and the header file opensslconf.h in openssllib will use PCD, but it is not declared in the inf file, which will cause warnings in some compilers Signed-off-by: yi1 li --- CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf | 3 +++ CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf | 3 +++ CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf | 3 +++ CryptoPkg/Library/OpensslLib/OpensslLib.inf | 3 +-- CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf | 2 +- 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf b/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf index 15cf3dab105c..5bbdb387d6ba 100644 --- a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf +++ b/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf @@ -88,6 +88,9 @@ IntrinsicLib PrintLib +[FixedPcd] + gEfiCryptoPkgTokenSpaceGuid.PcdEcEnabled + # # Remove these [BuildOptions] after this library is cleaned up # diff --git a/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf b/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf index bf1563b06407..fd500e61ec99 100644 --- a/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf +++ b/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf @@ -77,6 +77,9 @@ OpensslLib IntrinsicLib +[FixedPcd] + gEfiCryptoPkgTokenSpaceGuid.PcdEcEnabled + # # Remove these [BuildOptions] after this library is cleaned up # diff --git a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf b/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf index 8f39517f78b7..ae75bc87b5e5 100644 --- a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf +++ b/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf @@ -92,6 +92,9 @@ MmServicesTableLib SynchronizationLib +[FixedPcd] + gEfiCryptoPkgTokenSpaceGuid.PcdEcEnabled + # # Remove these [BuildOptions] after this library is cleaned up # diff --git a/CryptoPkg/Library/OpensslLib/OpensslLib.inf b/CryptoPkg/Library/OpensslLib/OpensslLib.inf index 459ac4864a4e..0d087cbef790 100644 --- a/CryptoPkg/Library/OpensslLib/OpensslLib.inf +++ b/CryptoPkg/Library/OpensslLib/OpensslLib.inf @@ -632,8 +632,7 @@ [LibraryClasses.ARM] ArmSoftFloatLib - -[Pcd] +[FixedPcd] gEfiCryptoPkgTokenSpaceGuid.PcdEcEnabled ## CONSUMES [BuildOptions] diff --git a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf index c9d69a368e3c..490b83602be9 100644 --- a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf +++ b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf @@ -582,7 +582,7 @@ [LibraryClasses.ARM] ArmSoftFloatLib -[Pcd] +[FixedPcd] gEfiCryptoPkgTokenSpaceGuid.PcdEcEnabled ## CONSUMES [BuildOptions] -- 2.33.0.windows.2