IntelFsp2WrapperPkg SecFspWrapperPlatformSecLibSample:Update code to pass build
authorLiming Gao <liming.gao@intel.com>
Mon, 11 Jul 2016 02:24:16 +0000 (10:24 +0800)
committerLiming Gao <liming.gao@intel.com>
Wed, 20 Jul 2016 05:11:30 +0000 (13:11 +0800)
1. Update its library class to PlatformSecLib
2. Update source code to refer to the matched header file

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Giri Mudusuru <giri.p.mudusuru@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com>
IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/FspWrapperPlatformSecLibSample.c
IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecFspWrapperPlatformSecLibSample.inf
IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecTempRamDone.c

index 19379c2..697381e 100644 (file)
@@ -18,6 +18,8 @@
 #include <Ppi/SecPerformance.h>\r
 \r
 #include <Library/LocalApicLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
 \r
 /**\r
   This interface conveys state information out of the Security (SEC) phase into PEI.\r
index bcb76b8..dfa5c15 100644 (file)
@@ -23,7 +23,7 @@
   FILE_GUID                      = 8F1AC44A-CE7E-4E29-95BB-92E321BB1573\r
   MODULE_TYPE                    = SEC\r
   VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = FspWrapperPlatformSecLib\r
+  LIBRARY_CLASS                  = PlatformSecLib\r
 \r
 #\r
 # The following information is for reference only and not required by the build tools.\r
@@ -68,6 +68,8 @@
 [LibraryClasses]\r
   LocalApicLib\r
   SerialPortLib\r
+  DebugLib\r
+  BaseMemoryLib\r
 \r
 [Ppis]\r
   gEfiSecPlatformInformationPpiGuid       ## CONSUMES\r
index 76d2f42..b7a6227 100644 (file)
 \r
 #include <PiPei.h>\r
 \r
-#include <Ppi/TemporaryRamDone.h>\r
-\r
-#include <Library/BaseMemoryLib.h>\r
 #include <Library/DebugLib.h>\r
 #include <Library/PcdLib.h>\r
-#include <Library/DebugAgentLib.h>\r
-#include <Library/FspPlatformInfoLib.h>\r
-#include <Library/FspApiLib.h>\r
+#include <Library/FspWrapperApiLib.h>\r
+#include <Library/FspWrapperPlatformLib.h>\r
+#include <Guid/FspHeaderFile.h>\r
 \r
 /**\r
 This interface disables temporary memory in SEC Phase.\r
@@ -43,8 +40,8 @@ SecPlatformDisableTemporaryMemory (
 \r
   DEBUG((DEBUG_INFO, "SecPlatformDisableTemporaryMemory enter\n"));\r
 \r
-  TempRamExitParam = GetTempRamExitParam ();\r
-  Status = CallTempRamExit (FspHeader, TempRamExitParam);\r
+  TempRamExitParam = UpdateTempRamExitParam ();\r
+  Status = CallTempRamExit (TempRamExitParam);\r
   DEBUG((DEBUG_INFO, "TempRamExit status: 0x%x\n", Status));\r
   ASSERT_EFI_ERROR(Status);\r
 \r