Add MM_STANDALONE to the list of module types that are permitted to
link to this library. Also, since the constructor prototype is
different between MM_STANDALONE and DXE_DRIVER type libraries,
convert the library into BASE type.
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: Jiewen Yao <jiewen.yao@intel.com>
\r
**/\r
\r
+#include <Uefi/UefiBaseType.h>\r
+\r
BOOLEAN mUserPhysicalPresence = FALSE;\r
\r
/**\r
/**\r
Save user physical presence state from a PCD to mUserPhysicalPresence.\r
\r
- @param ImageHandle ImageHandle of the loaded driver.\r
- @param SystemTable Pointer to the EFI System Table.\r
-\r
@retval EFI_SUCCESS PcdUserPhysicalPresence is got successfully.\r
\r
**/\r
-EFI_STATUS\r
+RETURN_STATUS\r
EFIAPI\r
PlatformSecureLibNullConstructor (\r
- IN EFI_HANDLE ImageHandle,\r
- IN EFI_SYSTEM_TABLE *SystemTable\r
+ VOID\r
)\r
{\r
\r
mUserPhysicalPresence = PcdGetBool(PcdUserPhysicalPresence);\r
\r
- return EFI_SUCCESS;\r
+ return RETURN_SUCCESS;\r
}\r
BASE_NAME = PlatformSecureLibNull\r
MODULE_UNI_FILE = PlatformSecureLibNull.uni\r
FILE_GUID = 7FA68D82-10A4-4e71-9524-D3D9500D3CDF\r
- MODULE_TYPE = DXE_DRIVER\r
+ MODULE_TYPE = BASE\r
VERSION_STRING = 1.0\r
- LIBRARY_CLASS = PlatformSecureLib|DXE_RUNTIME_DRIVER DXE_SMM_DRIVER DXE_DRIVER\r
+ LIBRARY_CLASS = PlatformSecureLib|DXE_RUNTIME_DRIVER DXE_SMM_DRIVER DXE_DRIVER MM_STANDALONE\r
CONSTRUCTOR = PlatformSecureLibNullConstructor\r
\r
#\r