Permit CheckUefiLib to be used by MM_STANDALONE modules. Since this
library has a constructor, change the library's module type into
BASE so its constructor prototype is compatible with MM_STANDALONE
as well.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
BASE_NAME = VarCheckUefiLib\r
MODULE_UNI_FILE = VarCheckUefiLib.uni\r
FILE_GUID = AC24A4C7-F845-4665-90E5-6431D6E28DC0\r
BASE_NAME = VarCheckUefiLib\r
MODULE_UNI_FILE = VarCheckUefiLib.uni\r
FILE_GUID = AC24A4C7-F845-4665-90E5-6431D6E28DC0\r
- MODULE_TYPE = DXE_RUNTIME_DRIVER\r
- LIBRARY_CLASS = NULL|DXE_RUNTIME_DRIVER DXE_SMM_DRIVER\r
+ LIBRARY_CLASS = NULL|DXE_RUNTIME_DRIVER DXE_SMM_DRIVER MM_STANDALONE\r
CONSTRUCTOR = VarCheckUefiLibNullClassConstructor\r
\r
#\r
CONSTRUCTOR = VarCheckUefiLibNullClassConstructor\r
\r
#\r
+#include <Uefi/UefiBaseType.h>\r
+\r
#include <Library/VarCheckLib.h>\r
#include <Library/BaseLib.h>\r
#include <Library/BaseMemoryLib.h>\r
#include <Library/VarCheckLib.h>\r
#include <Library/BaseLib.h>\r
#include <Library/BaseMemoryLib.h>\r
Constructor function of VarCheckUefiLib to set property and\r
register SetVariable check handler for UEFI defined variables.\r
\r
Constructor function of VarCheckUefiLib to set property and\r
register SetVariable check handler for UEFI defined variables.\r
\r
- @param[in] ImageHandle The firmware allocated handle for the EFI image.\r
- @param[in] SystemTable A pointer to the EFI System Table.\r
-\r
@retval EFI_SUCCESS The constructor executed correctly.\r
\r
**/\r
@retval EFI_SUCCESS The constructor executed correctly.\r
\r
**/\r
EFIAPI\r
VarCheckUefiLibNullClassConstructor (\r
EFIAPI\r
VarCheckUefiLibNullClassConstructor (\r
- IN EFI_HANDLE ImageHandle,\r
- IN EFI_SYSTEM_TABLE *SystemTable\r
)\r
{\r
VariablePropertySetUefiDefined ();\r
VarCheckLibRegisterSetVariableCheckHandler (SetVariableCheckHandlerUefiDefined);\r
\r
)\r
{\r
VariablePropertySetUefiDefined ();\r
VarCheckLibRegisterSetVariableCheckHandler (SetVariableCheckHandlerUefiDefined);\r
\r
+ return RETURN_SUCCESS;\r