]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/CryptoPkg.dsc
CryptoPkg/BaseHashApiLib: Implement Unified Hash Calculation API
[mirror_edk2.git] / CryptoPkg / CryptoPkg.dsc
1 ## @file
2 # Cryptographic Library Package for UEFI Security Implementation.
3 #
4 # Copyright (c) 2009 - 2020, Intel Corporation. All rights reserved.<BR>
5 # SPDX-License-Identifier: BSD-2-Clause-Patent
6 #
7 ##
8
9 ################################################################################
10 #
11 # Defines Section - statements that will be processed to create a Makefile.
12 #
13 ################################################################################
14 [Defines]
15 PLATFORM_NAME = CryptoPkg
16 PLATFORM_GUID = E1063286-6C8C-4c25-AEF0-67A9A5B6E6B6
17 PLATFORM_VERSION = 0.98
18 DSC_SPECIFICATION = 0x00010005
19 OUTPUT_DIRECTORY = Build/CryptoPkg
20 SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64
21 BUILD_TARGETS = DEBUG|RELEASE|NOOPT
22 SKUID_IDENTIFIER = DEFAULT
23
24 ################################################################################
25 #
26 # Library Class section - list of all Library Classes needed by this Platform.
27 #
28 ################################################################################
29 [LibraryClasses]
30 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
31 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
32 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
33 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
34 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
35 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
36 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
37 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
38 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
39 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
40 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
41 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
42 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
43 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
44
45 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
46 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
47 HashApiLib|CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.inf
48
49 [LibraryClasses.ARM, LibraryClasses.AARCH64]
50 #
51 # It is not possible to prevent the ARM compiler for generic intrinsic functions.
52 # This library provides the instrinsic functions generate by a given compiler.
53 # [LibraryClasses.ARM, LibraryClasses.AARCH64] and NULL mean link this library
54 # into all ARM and AARCH64 images.
55 #
56 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
57
58 # Add support for stack protector
59 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
60
61 [LibraryClasses.ARM]
62 ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
63
64 [LibraryClasses.common.PEIM]
65 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
66
67 [LibraryClasses.common.DXE_DRIVER]
68 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
69
70 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
71 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
72
73 [LibraryClasses.common.DXE_SMM_DRIVER]
74 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
75
76 [LibraryClasses.common.UEFI_DRIVER]
77 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
78
79 [LibraryClasses.common.UEFI_APPLICATION]
80 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
81
82 ################################################################################
83 #
84 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
85 #
86 ################################################################################
87 [PcdsFeatureFlag]
88 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|TRUE
89 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE
90
91 [PcdsFixedAtBuild]
92 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
93 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
94 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06
95
96 ###################################################################################################
97 #
98 # Components Section - list of the modules and components that will be processed by compilation
99 # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
100 #
101 # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
102 # into firmware volume images. This section is just a list of modules to compile from
103 # source into UEFI-compliant binaries.
104 # It is the FDF file that contains information on combining binary files into firmware
105 # volume images, whose concept is beyond UEFI and is described in PI specification.
106 # Binary modules do not need to be listed in this section, as they should be
107 # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
108 # Logo (Logo.bmp), and etc.
109 # There may also be modules listed in this section that are not required in the FDF file,
110 # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
111 # generated for it, but the binary will not be put into any firmware volume.
112 #
113 ###################################################################################################
114 [Components]
115 CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
116 CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
117 CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
118 CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
119 CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
120 CryptoPkg/Library/TlsLib/TlsLib.inf
121 CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
122 CryptoPkg/Library/OpensslLib/OpensslLib.inf
123 CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
124 CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.inf
125
126 [Components.IA32, Components.X64]
127 CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
128
129 [BuildOptions]
130 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES