]> git.proxmox.com Git - mirror_edk2.git/blame - CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
CryptoPkg: Add extra build option to disable VS build warning
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / BaseCryptLib.inf
CommitLineData
97f98500
HT
1## @file\r
2# Cryptographic Library Instance for DXE_DRIVER.\r
3#\r
dc204d5a
JY
4# Caution: This module requires additional review when modified.\r
5# This library will have external input - signature.\r
2ac68e8b 6# This external input must be validated carefully to avoid security issues such as\r
dda856b3 7# buffer overflow or integer overflow.\r
dc204d5a 8#\r
ec7ad9e1 9# Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
97f98500
HT
10# This program and the accompanying materials\r
11# are licensed and made available under the terms and conditions of the BSD License\r
12# which accompanies this distribution. The full text of the license may be found at\r
13# http://opensource.org/licenses/bsd-license.php\r
2ac68e8b 14#\r
97f98500
HT
15# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
16# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
2ac68e8b 17#\r
97f98500
HT
18##\r
19\r
20[Defines]\r
21 INF_VERSION = 0x00010005\r
22 BASE_NAME = BaseCryptLib\r
dda856b3 23 MODULE_UNI_FILE = BaseCryptLib.uni\r
97f98500 24 FILE_GUID = be3bb803-91b6-4da0-bd91-a8b21c18ca5d\r
532616bb 25 MODULE_TYPE = DXE_DRIVER\r
97f98500 26 VERSION_STRING = 1.0\r
532616bb 27 LIBRARY_CLASS = BaseCryptLib|DXE_DRIVER DXE_CORE UEFI_APPLICATION UEFI_DRIVER\r
97f98500
HT
28\r
29#\r
30# The following information is for reference only and not required by the build tools.\r
31#\r
d1984abc 32# VALID_ARCHITECTURES = IA32 X64 IPF ARM AARCH64\r
97f98500
HT
33#\r
34\r
35[Sources]\r
a8c44645 36 InternalCryptLib.h\r
4a567c96 37 Hash/CryptMd4.c\r
97f98500
HT
38 Hash/CryptMd5.c\r
39 Hash/CryptSha1.c\r
40 Hash/CryptSha256.c\r
2ac68e8b 41 Hash/CryptSha512.c\r
a8c44645 42 Hmac/CryptHmacMd5.c\r
43 Hmac/CryptHmacSha1.c\r
72009c62 44 Hmac/CryptHmacSha256.c\r
a8c44645 45 Cipher/CryptAes.c\r
46 Cipher/CryptTdes.c\r
47 Cipher/CryptArc4.c\r
532616bb 48 Pk/CryptRsaBasic.c\r
49 Pk/CryptRsaExt.c\r
a8f37449 50 Pk/CryptPkcs5Pbkdf2.c\r
532616bb 51 Pk/CryptPkcs7Sign.c\r
52 Pk/CryptPkcs7Verify.c\r
a8c44645 53 Pk/CryptDh.c\r
4a567c96 54 Pk/CryptX509.c\r
b7d320f8 55 Pk/CryptAuthenticode.c\r
2ac68e8b 56 Pk/CryptTs.c\r
4a567c96 57 Pem/CryptPem.c\r
97f98500
HT
58\r
59 SysCall/CrtWrapper.c\r
60 SysCall/TimerWrapper.c\r
61 SysCall/BaseMemAllocation.c\r
62\r
63[Sources.Ia32]\r
7ce960e7 64 Rand/CryptRandTsc.c\r
65\r
66[Sources.X64]\r
67 Rand/CryptRandTsc.c\r
68\r
69[Sources.IPF]\r
70 Rand/CryptRandItc.c\r
71\r
72[Sources.ARM]\r
73 Rand/CryptRand.c\r
74\r
d1984abc
RC
75[Sources.AARCH64]\r
76 Rand/CryptRand.c\r
77\r
97f98500
HT
78[Packages]\r
79 MdePkg/MdePkg.dec\r
80 CryptoPkg/CryptoPkg.dec\r
81\r
82[LibraryClasses]\r
83 BaseLib\r
84 BaseMemoryLib\r
85 MemoryAllocationLib\r
dda39f3a 86 UefiRuntimeServicesTableLib\r
97f98500
HT
87 DebugLib\r
88 OpensslLib\r
89 IntrinsicLib\r
7ce960e7 90 PrintLib\r
97f98500
HT
91\r
92#\r
93# Remove these [BuildOptions] after this library is cleaned up\r
94#\r
95[BuildOptions]\r
ec7ad9e1 96 #\r
2ac68e8b 97 # suppress the following warnings so we do not break the build with warnings-as-errors:\r
ec7ad9e1
QL
98 # C4090: 'function' : different 'const' qualifiers\r
99 #\r
100 MSFT:*_*_*_CC_FLAGS = /wd4090\r
101\r
97f98500 102 GCC:*_GCC44_IA32_CC_FLAGS = "-D__cdecl=__attribute__((cdecl))" "-D__declspec(t)=__attribute__((t))"\r
5fa05671
AB
103\r
104 # -JCryptoPkg/Include : To disable the use of the system includes provided by RVCT\r
105 # --diag_remark=1 : Reduce severity of "#1-D: last line of file ends without a newline"\r
106 RVCT:*_*_ARM_CC_FLAGS = -JCryptoPkg/Include --diag_remark=1\r