]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf
MdeModulePkg: Change use of EFI_D_* to DEBUG_*
[mirror_edk2.git] / MdeModulePkg / Universal / Variable / RuntimeDxe / VariableStandaloneMm.inf
CommitLineData
688b2cad
AB
1## @file\r
2# Provides SMM variable service.\r
3#\r
4# This module installs SMM variable protocol into SMM protocol database,\r
5# which can be used by SMM driver, and installs SMM variable protocol\r
6# into BS protocol database, which can be used to notify the SMM Runtime\r
7# Dxe driver that the SMM variable service is ready.\r
8# This module should be used with SMM Runtime DXE module together. The\r
9# SMM Runtime DXE module would install variable arch protocol and variable\r
10# write arch protocol based on SMM variable module.\r
11#\r
12# Caution: This module requires additional review when modified.\r
13# This driver will have external input - variable data and communicate buffer in SMM mode.\r
14# This external input must be validated carefully to avoid security issues such as\r
15# buffer overflow or integer overflow.\r
16# The whole SMM authentication variable design relies on the integrity of flash part and SMM.\r
17# which is assumed to be protected by platform. All variable code and metadata in flash/SMM Memory\r
18# may not be modified without authorization. If platform fails to protect these resources,\r
19# the authentication service provided in this driver will be broken, and the behavior is undefined.\r
20#\r
9084239f 21# Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>\r
688b2cad 22# Copyright (c) 2018, Linaro, Ltd. All rights reserved.<BR>\r
e176bafc 23# Copyright (c) Microsoft Corporation.\r
9d510e61 24# SPDX-License-Identifier: BSD-2-Clause-Patent\r
688b2cad
AB
25#\r
26##\r
27\r
28[Defines]\r
29 INF_VERSION = 0x0001001B\r
30 BASE_NAME = VariableStandaloneMm\r
31 FILE_GUID = 7ee2c0c1-c21a-4113-a53a-66824a95696f\r
32 MODULE_TYPE = MM_STANDALONE\r
33 VERSION_STRING = 1.0\r
34 PI_SPECIFICATION_VERSION = 0x00010032\r
35 ENTRY_POINT = VariableServiceInitialize\r
36\r
37#\r
38# The following information is for reference only and not required by the build tools.\r
39#\r
40# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64\r
41#\r
42\r
43\r
44[Sources]\r
45 Reclaim.c\r
46 Variable.c\r
47 VariableSmm.c\r
48 VariableStandaloneMm.c\r
6b0d7b01
MK
49 VariableNonVolatile.c\r
50 VariableNonVolatile.h\r
20a27a64
MK
51 VariableParsing.c\r
52 VariableParsing.h\r
aab3b9b9
MK
53 VariableRuntimeCache.c\r
54 VariableRuntimeCache.h\r
688b2cad
AB
55 VarCheck.c\r
56 Variable.h\r
57 PrivilegePolymorphic.h\r
58 VariableExLib.c\r
59 TcgMorLockSmm.c\r
60 SpeculationBarrierSmm.c\r
124b3f92 61 VariableLockRequestToLock.c\r
688b2cad
AB
62\r
63[Packages]\r
64 MdePkg/MdePkg.dec\r
65 MdeModulePkg/MdeModulePkg.dec\r
66 StandaloneMmPkg/StandaloneMmPkg.dec\r
67\r
68[LibraryClasses]\r
69 AuthVariableLib\r
70 BaseLib\r
71 BaseMemoryLib\r
72 DebugLib\r
73 HobLib\r
74 MemoryAllocationLib\r
75 MmServicesTableLib\r
76 StandaloneMmDriverEntryPoint\r
77 SynchronizationLib\r
78 VarCheckLib\r
e176bafc 79 VariablePolicyLib\r
98ee0c68 80 VariablePolicyHelperLib\r
688b2cad
AB
81\r
82[Protocols]\r
83 gEfiSmmFirmwareVolumeBlockProtocolGuid ## CONSUMES\r
84 ## CONSUMES\r
85 ## NOTIFY\r
86 gEfiSmmFaultTolerantWriteProtocolGuid\r
87 ## PRODUCES\r
88 ## UNDEFINED # SmiHandlerRegister\r
89 gEfiSmmVariableProtocolGuid\r
90 gEfiMmEndOfDxeProtocolGuid ## NOTIFY\r
91 gEdkiiSmmVarCheckProtocolGuid ## PRODUCES\r
92\r
93[Guids]\r
94 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header\r
95 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header\r
96 ## SOMETIMES_CONSUMES ## HOB\r
97 ## SOMETIMES_PRODUCES ## SystemTable\r
98 gEfiAuthenticatedVariableGuid\r
99\r
100 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header\r
101 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header\r
102 ## SOMETIMES_CONSUMES ## HOB\r
103 ## SOMETIMES_PRODUCES ## SystemTable\r
104 gEfiVariableGuid\r
105\r
106 ## SOMETIMES_CONSUMES ## Variable:L"PlatformLang"\r
107 ## SOMETIMES_PRODUCES ## Variable:L"PlatformLang"\r
108 ## SOMETIMES_CONSUMES ## Variable:L"Lang"\r
109 ## SOMETIMES_PRODUCES ## Variable:L"Lang"\r
110 gEfiGlobalVariableGuid\r
111\r
112 gEfiMemoryOverwriteControlDataGuid ## SOMETIMES_CONSUMES ## Variable:L"MemoryOverwriteRequestControl"\r
113 gEfiMemoryOverwriteRequestControlLockGuid ## SOMETIMES_PRODUCES ## Variable:L"MemoryOverwriteRequestControlLock"\r
114\r
115 gEfiSystemNvDataFvGuid ## CONSUMES ## GUID\r
116 gEdkiiFaultTolerantWriteGuid ## SOMETIMES_CONSUMES ## HOB\r
117\r
118 ## SOMETIMES_CONSUMES ## Variable:L"VarErrorFlag"\r
119 ## SOMETIMES_PRODUCES ## Variable:L"VarErrorFlag"\r
120 gEdkiiVarErrorFlagGuid\r
121\r
1262c026 122[Pcd]\r
688b2cad
AB
123 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase ## SOMETIMES_CONSUMES\r
124 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64 ## CONSUMES\r
1262c026 125 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize ## CONSUMES\r
688b2cad
AB
126 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize ## CONSUMES\r
127 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize ## CONSUMES\r
128 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize ## CONSUMES\r
129 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize ## CONSUMES\r
130 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize ## CONSUMES\r
131 gEfiMdeModulePkgTokenSpaceGuid.PcdHwErrStorageSize ## CONSUMES\r
132 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxUserNvVariableSpaceSize ## CONSUMES\r
133 gEfiMdeModulePkgTokenSpaceGuid.PcdBoottimeReservedNvVariableSpaceSize ## CONSUMES\r
134 gEfiMdeModulePkgTokenSpaceGuid.PcdReclaimVariableSpaceAtEndOfDxe ## CONSUMES\r
9084239f
SZ
135 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable ## SOMETIMES_CONSUMES\r
136 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved ## SOMETIMES_CONSUMES\r
688b2cad
AB
137\r
138[FeaturePcd]\r
139 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics ## CONSUMES # statistic the information of variable.\r
140 gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultLangDeprecate ## CONSUMES # Auto update PlatformLang/Lang\r
141\r
142[Depex]\r
143 TRUE\r