]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf
MdeModulePkg: Change TCG MOR variables to use VariablePolicy
[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
61\r
62[Packages]\r
63 MdePkg/MdePkg.dec\r
64 MdeModulePkg/MdeModulePkg.dec\r
65 StandaloneMmPkg/StandaloneMmPkg.dec\r
66\r
67[LibraryClasses]\r
68 AuthVariableLib\r
69 BaseLib\r
70 BaseMemoryLib\r
71 DebugLib\r
72 HobLib\r
73 MemoryAllocationLib\r
74 MmServicesTableLib\r
75 StandaloneMmDriverEntryPoint\r
76 SynchronizationLib\r
77 VarCheckLib\r
e176bafc 78 VariablePolicyLib\r
98ee0c68 79 VariablePolicyHelperLib\r
688b2cad
AB
80\r
81[Protocols]\r
82 gEfiSmmFirmwareVolumeBlockProtocolGuid ## CONSUMES\r
83 ## CONSUMES\r
84 ## NOTIFY\r
85 gEfiSmmFaultTolerantWriteProtocolGuid\r
86 ## PRODUCES\r
87 ## UNDEFINED # SmiHandlerRegister\r
88 gEfiSmmVariableProtocolGuid\r
89 gEfiMmEndOfDxeProtocolGuid ## NOTIFY\r
90 gEdkiiSmmVarCheckProtocolGuid ## PRODUCES\r
91\r
92[Guids]\r
93 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header\r
94 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header\r
95 ## SOMETIMES_CONSUMES ## HOB\r
96 ## SOMETIMES_PRODUCES ## SystemTable\r
97 gEfiAuthenticatedVariableGuid\r
98\r
99 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header\r
100 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header\r
101 ## SOMETIMES_CONSUMES ## HOB\r
102 ## SOMETIMES_PRODUCES ## SystemTable\r
103 gEfiVariableGuid\r
104\r
105 ## SOMETIMES_CONSUMES ## Variable:L"PlatformLang"\r
106 ## SOMETIMES_PRODUCES ## Variable:L"PlatformLang"\r
107 ## SOMETIMES_CONSUMES ## Variable:L"Lang"\r
108 ## SOMETIMES_PRODUCES ## Variable:L"Lang"\r
109 gEfiGlobalVariableGuid\r
110\r
111 gEfiMemoryOverwriteControlDataGuid ## SOMETIMES_CONSUMES ## Variable:L"MemoryOverwriteRequestControl"\r
112 gEfiMemoryOverwriteRequestControlLockGuid ## SOMETIMES_PRODUCES ## Variable:L"MemoryOverwriteRequestControlLock"\r
113\r
114 gEfiSystemNvDataFvGuid ## CONSUMES ## GUID\r
115 gEdkiiFaultTolerantWriteGuid ## SOMETIMES_CONSUMES ## HOB\r
116\r
117 ## SOMETIMES_CONSUMES ## Variable:L"VarErrorFlag"\r
118 ## SOMETIMES_PRODUCES ## Variable:L"VarErrorFlag"\r
119 gEdkiiVarErrorFlagGuid\r
120\r
121[FixedPcd]\r
122 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize ## CONSUMES\r
123 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase ## SOMETIMES_CONSUMES\r
124 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64 ## CONSUMES\r
125 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize ## CONSUMES\r
126 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize ## CONSUMES\r
127 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize ## CONSUMES\r
128 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize ## CONSUMES\r
129 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize ## CONSUMES\r
130 gEfiMdeModulePkgTokenSpaceGuid.PcdHwErrStorageSize ## CONSUMES\r
131 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxUserNvVariableSpaceSize ## CONSUMES\r
132 gEfiMdeModulePkgTokenSpaceGuid.PcdBoottimeReservedNvVariableSpaceSize ## CONSUMES\r
133 gEfiMdeModulePkgTokenSpaceGuid.PcdReclaimVariableSpaceAtEndOfDxe ## CONSUMES\r
9084239f
SZ
134 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable ## SOMETIMES_CONSUMES\r
135 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved ## SOMETIMES_CONSUMES\r
688b2cad
AB
136\r
137[FeaturePcd]\r
138 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics ## CONSUMES # statistic the information of variable.\r
139 gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultLangDeprecate ## CONSUMES # Auto update PlatformLang/Lang\r
140\r
141[Depex]\r
142 TRUE\r