From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 16F771A1F0A for ; Wed, 21 Sep 2016 15:34:38 -0700 (PDT) Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 87379C05A2B5 for ; Wed, 21 Sep 2016 22:34:37 +0000 (UTC) Received: from trillian.internal.datastacks.com (ovpn-112-59.phx2.redhat.com [10.3.112.59]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u8LMYaPk009299; Wed, 21 Sep 2016 18:34:36 -0400 From: Peter Jones To: edk2-devel@ml01.01.org Cc: Peter Jones Date: Wed, 21 Sep 2016 18:34:26 -0400 Message-Id: <20160921223426.9796-1-pjones@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 21 Sep 2016 22:34:37 +0000 (UTC) Subject: [PATCH] Add Pkcs7VerifyPkg X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2016 22:34:38 -0000 This patch adds a Pkcs7VerifyPkg package, which builds the Pkcs7Verify DXE API as a standalone driver. This allows us to build a driver that can be loaded on UEFI 2.4 systems, so that UEFI applications can move to the newer APIs without breaking compatibility. Signed-off-by: Peter Jones --- Pkcs7VerifyPkg/Pkcs7VerifyPkg.dec | 25 +++++++++++++++++ Pkcs7VerifyPkg/Pkcs7VerifyPkg.dsc | 59 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 Pkcs7VerifyPkg/Pkcs7VerifyPkg.dec create mode 100644 Pkcs7VerifyPkg/Pkcs7VerifyPkg.dsc diff --git a/Pkcs7VerifyPkg/Pkcs7VerifyPkg.dec b/Pkcs7VerifyPkg/Pkcs7VerifyPkg.dec new file mode 100644 index 0000000..00d50c9 --- /dev/null +++ b/Pkcs7VerifyPkg/Pkcs7VerifyPkg.dec @@ -0,0 +1,25 @@ +## @file +# +# PKCS7 Verify Package +# +# PKCS7 Verify Driver +# +# This program and the accompanying materials are licensed and made available +# under the terms and conditions of the BSD License which accompanies this +# distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +## + +[Defines] + DEC_SPECIFICATION = 0x00010005 + PACKAGE_NAME = Pkcs7VerifyPkg + PACKAGE_UNI_FILE = Pkcs7VerifyPkg.uni + PACKAGE_GUID = 322d72de-efb5-4ef4-af15-294e31a562fd + PACKAGE_VERSION = 0.1 + +[Includes] + Include diff --git a/Pkcs7VerifyPkg/Pkcs7VerifyPkg.dsc b/Pkcs7VerifyPkg/Pkcs7VerifyPkg.dsc new file mode 100644 index 0000000..dff2ab2 --- /dev/null +++ b/Pkcs7VerifyPkg/Pkcs7VerifyPkg.dsc @@ -0,0 +1,59 @@ +## @file +# +# Build Binary Pkcs7Verify Driver Modules +# +# This program and the accompanying materials are licensed and made available +# under the terms and conditions of the BSD License which accompanies this +# distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +## + +[Defines] + PLATFORM_NAME = Pkcs7Verify + PLATFORM_GUID = 3346fed4-ba87-42f0-bbf2-ae2be12ad0f0 + PLATFORM_VERSION = 0.1 + DSC_SPECIFICATION = 0x00010005 + SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64 + OUTPUT_DIRECTORY = Build/Pkcs7VerifyPkg + BUILD_TARGETS = DEBUG|RELEASE|NOOPT + SKUID_IDENTIFIER = DEFAULT + +[BuildOptions] + GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG + INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG + MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG /ALIGN:256 + RVCT:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG /ALIGN:256 + +[LibraryClasses] + # + # Entry Point Libraries + # + UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf + # + # Common Libraries + # + UefiLib|MdePkg/Library/UefiLib/UefiLib.inf + UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf + UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf + BaseLib|MdePkg/Library/BaseLib/BaseLib.inf + BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf + MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf + DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf + OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf + IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf + PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf + PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf + DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf + +[LibraryClasses.common.DXE_DRIVER] + BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf + +[Components] + # + # PKCS7 Verification + # + SecurityPkg/Pkcs7Verify/Pkcs7VerifyDxe/Pkcs7VerifyDxe.inf -- 2.10.0