2 # Cryptographic Library Package for UEFI Security Implementation.
4 # Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
5 # This program and the accompanying materials
6 # are licensed and made available under the terms and conditions of the BSD License
7 # which accompanies this distribution. The full text of the license may be found at
8 # http://opensource.org/licenses/bsd-license.php
10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 ################################################################################
17 # Defines Section - statements that will be processed to create a Makefile.
19 ################################################################################
21 PLATFORM_NAME = CryptoPkg
22 PLATFORM_GUID = E1063286-6C8C-4c25-AEF0-67A9A5B6E6B6
23 PLATFORM_VERSION = 0.93
24 DSC_SPECIFICATION = 0x00010005
25 OUTPUT_DIRECTORY = Build/CryptoPkg
26 SUPPORTED_ARCHITECTURES = IA32|X64|IPF|ARM
27 BUILD_TARGETS = DEBUG|RELEASE
28 SKUID_IDENTIFIER = DEFAULT
30 ################################################################################
32 # Library Class section - list of all Library Classes needed by this Platform.
34 ################################################################################
36 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
37 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
38 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
39 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
40 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
41 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
42 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
43 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
44 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
45 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
46 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
47 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
48 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
49 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
51 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
52 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
56 # It is not possible to prevent the ARM compiler for generic intrinsic functions.
57 # This library provides the instrinsic functions generate by a given compiler.
58 # [LibraryClasses.ARM] and NULL mean link this library into all ARM images.
60 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
62 # Add support for stack protector
63 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
65 [LibraryClasses.common.PEIM]
66 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
68 [LibraryClasses.common.DXE_DRIVER]
69 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
71 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
72 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
74 [LibraryClasses.common.DXE_SMM_DRIVER]
75 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
77 [LibraryClasses.common.DXE_SAL_DRIVER]
78 BaseCryptLib|CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.inf
80 [LibraryClasses.common.UEFI_DRIVER]
81 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
83 [LibraryClasses.common.UEFI_APPLICATION]
84 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
86 ###############################################################################
88 # BuildOptions Section - Define the module specific tool chain flags that
89 # should be used as the default flags for a module.
90 # These flags are appended to any standard flags that
91 # are defined by the build process.
93 # -JCryptoPkg/Include : To disable the use of the system includes provided by
95 # --diag_remark=1 : To make the warning "#1-D: last line of file ends
96 # without a newline" just a remark such that the
97 # build doesn't stop as warnings are considered as
100 ################################################################################
102 RVCT:*_*_ARM_CC_FLAGS = -JCryptoPkg/Include --diag_remark=1
104 ################################################################################
106 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
108 ################################################################################
110 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|TRUE
111 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE
114 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
115 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
116 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06
118 ###################################################################################################
120 # Components Section - list of the modules and components that will be processed by compilation
121 # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
123 # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
124 # into firmware volume images. This section is just a list of modules to compile from
125 # source into UEFI-compliant binaries.
126 # It is the FDF file that contains information on combining binary files into firmware
127 # volume images, whose concept is beyond UEFI and is described in PI specification.
128 # Binary modules do not need to be listed in this section, as they should be
129 # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
130 # Logo (Logo.bmp), and etc.
131 # There may also be modules listed in this section that are not required in the FDF file,
132 # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
133 # generated for it, but the binary will not be put into any firmware volume.
135 ###################################################################################################
137 CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
138 CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
139 CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
141 CryptoPkg/Application/Cryptest/Cryptest.inf
143 CryptoPkg/CryptRuntimeDxe/CryptRuntimeDxe.inf
145 [Components.IA32, Components.X64]
146 CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
149 CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.inf