]> git.proxmox.com Git - mirror_edk2.git/commitdiff
IntelFsp2WrapperPkg: Rename PlatformMultiPhaseLibSample.
authorChasel Chiu <chasel.chiu@intel.com>
Thu, 1 Sep 2022 05:45:37 +0000 (22:45 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 1 Sep 2022 23:45:32 +0000 (23:45 +0000)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3916

Basing on offline feedbacks to rename
FspWrapperPlatformMultiPhaseLibSample to
FspWrapperPlatformMultiPhaseLibNull.

Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Signed-off-by: Chasel Chiu <chasel.chiu@intel.com>
Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dsc
IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformMultiPhaseLibNull/BaseFspWrapperPlatformMultiPhaseLibNull.inf [new file with mode: 0644]
IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformMultiPhaseLibNull/FspWrapperPlatformMultiPhaseLibNull.c [new file with mode: 0644]
IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformMultiPhaseLibSample/BaseFspWrapperPlatformMultiPhaseLibSample.inf [deleted file]
IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformMultiPhaseLibSample/FspWrapperPlatformMultiPhaseLibSample.c [deleted file]

index 79a5c7f13dc3705fc1c6b638e1c4b60d3856abc5..b1fc2291c85d672c77fad82607537c5705472859 100644 (file)
@@ -48,7 +48,7 @@
   FspWrapperApiLib|IntelFsp2WrapperPkg/Library/BaseFspWrapperApiLib/BaseFspWrapperApiLib.inf\r
   FspWrapperApiTestLib|IntelFsp2WrapperPkg/Library/BaseFspWrapperApiTestLibNull/BaseFspWrapperApiTestLibNull.inf\r
   FspMeasurementLib|IntelFsp2WrapperPkg/Library/BaseFspMeasurementLib/BaseFspMeasurementLib.inf\r
-  FspWrapperPlatformMultiPhaseLib|IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformMultiPhaseLibSample/BaseFspWrapperPlatformMultiPhaseLibSample.inf\r
+  FspWrapperPlatformMultiPhaseLib|IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformMultiPhaseLibNull/BaseFspWrapperPlatformMultiPhaseLibNull.inf\r
   FspWrapperMultiPhaseProcessLib|IntelFsp2WrapperPkg/Library/FspWrapperMultiPhaseProcessLib/FspWrapperMultiPhaseProcessLib.inf\r
 \r
   # FSP platform sample\r
@@ -93,7 +93,7 @@
   IntelFsp2WrapperPkg/Library/BaseFspWrapperApiLib/BaseFspWrapperApiLib.inf\r
   IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformLibSample/BaseFspWrapperPlatformLibSample.inf\r
   IntelFsp2WrapperPkg/FspWrapperNotifyDxe/FspWrapperNotifyDxe.inf\r
-  IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformMultiPhaseLibSample/BaseFspWrapperPlatformMultiPhaseLibSample.inf\r
+  IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformMultiPhaseLibNull/BaseFspWrapperPlatformMultiPhaseLibNull.inf\r
   IntelFsp2WrapperPkg/Library/FspWrapperMultiPhaseProcessLib/FspWrapperMultiPhaseProcessLib.inf\r
 \r
 [PcdsFixedAtBuild.common]\r
diff --git a/IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformMultiPhaseLibNull/BaseFspWrapperPlatformMultiPhaseLibNull.inf b/IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformMultiPhaseLibNull/BaseFspWrapperPlatformMultiPhaseLibNull.inf
new file mode 100644 (file)
index 0000000..4580e80
--- /dev/null
@@ -0,0 +1,37 @@
+## @file\r
+#  FSP Wrapper to handle platform specific actions for\r
+#  FSP MultiPhase (SeparatePhase) Initialization.\r
+#\r
+#  Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
+#\r
+#  SPDX-License-Identifier: BSD-2-Clause-Patent\r
+#\r
+##\r
+\r
+[Defines]\r
+  INF_VERSION                    = 0x00010005\r
+  BASE_NAME                      = BaseFspWrapperPlatformMultiPhaseLibNull\r
+  FILE_GUID                      = DB63E5AA-21C6-40BB-879A-CD1762C8427B\r
+  MODULE_TYPE                    = BASE\r
+  VERSION_STRING                 = 1.0\r
+  LIBRARY_CLASS                  = FspWrapperPlatformMultiPhaseLib\r
+\r
+#\r
+# The following information is for reference only and not required by the build tools.\r
+#\r
+#  VALID_ARCHITECTURES           = IA32 X64\r
+#\r
+\r
+[Sources]\r
+  FspWrapperPlatformMultiPhaseLibNull.c\r
+\r
+[Packages]\r
+  MdePkg/MdePkg.dec\r
+  IntelFsp2Pkg/IntelFsp2Pkg.dec\r
+  IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dec\r
+\r
+[LibraryClasses]\r
+  DebugLib\r
+  BaseLib\r
+  PcdLib\r
+  PeiServicesLib\r
diff --git a/IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformMultiPhaseLibNull/FspWrapperPlatformMultiPhaseLibNull.c b/IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformMultiPhaseLibNull/FspWrapperPlatformMultiPhaseLibNull.c
new file mode 100644 (file)
index 0000000..b4bc3d8
--- /dev/null
@@ -0,0 +1,50 @@
+/** @file\r
+  FSP Wrapper to handle platform specific actions for\r
+  FSP MultiPhase (SeparatePhase) Initialization.\r
+\r
+  Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+**/\r
+\r
+#include <Library/BaseLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/PcdLib.h>\r
+\r
+/**\r
+  FSP Wrapper Platform MultiPhase Handler\r
+\r
+  @param[in] FspHobListPtr        - Pointer to FSP HobList (valid after FSP-M completed)\r
+  @param[in] ComponentIndex       - FSP Component which executing MultiPhase initialization.\r
+  @param[in] PhaseIndex           - Indicates current execution phase of FSP MultiPhase initialization.\r
+\r
+  @retval EFI_STATUS        Always return EFI_SUCCESS\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+FspWrapperPlatformMultiPhaseHandler (\r
+  IN OUT VOID  **FspHobListPtr,\r
+  IN UINT8     ComponentIndex,\r
+  IN UINT32    PhaseIndex\r
+  )\r
+{\r
+  /* Example platform actions as below\r
+  switch (ComponentIndex) {\r
+  case FspMultiPhaseMemInitApiIndex:\r
+    switch (PhaseIndex) {\r
+      case 1:\r
+        PlatformAction1 ();\r
+      break;\r
+    }\r
+    break;\r
+  case FspMultiPhaseSiInitApiIndex:\r
+    switch (PhaseIndex) {\r
+      case 1:\r
+        PlatformAction2 ();\r
+      break;\r
+    }\r
+    break;\r
+  }\r
+  */\r
+}\r
diff --git a/IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformMultiPhaseLibSample/BaseFspWrapperPlatformMultiPhaseLibSample.inf b/IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformMultiPhaseLibSample/BaseFspWrapperPlatformMultiPhaseLibSample.inf
deleted file mode 100644 (file)
index 607ad41..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-## @file\r
-#  FSP Wrapper to handle platform specific actions for\r
-#  FSP MultiPhase (SeparatePhase) Initialization.\r
-#\r
-#  Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
-#\r
-#  SPDX-License-Identifier: BSD-2-Clause-Patent\r
-#\r
-##\r
-\r
-[Defines]\r
-  INF_VERSION                    = 0x00010005\r
-  BASE_NAME                      = BaseFspWrapperPlatformMultiPhaseLibSample\r
-  FILE_GUID                      = DB63E5AA-21C6-40BB-879A-CD1762C8427B\r
-  MODULE_TYPE                    = BASE\r
-  VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = FspWrapperPlatformMultiPhaseLib\r
-\r
-#\r
-# The following information is for reference only and not required by the build tools.\r
-#\r
-#  VALID_ARCHITECTURES           = IA32 X64\r
-#\r
-\r
-[Sources]\r
-  FspWrapperPlatformMultiPhaseLibSample.c\r
-\r
-[Packages]\r
-  MdePkg/MdePkg.dec\r
-  IntelFsp2Pkg/IntelFsp2Pkg.dec\r
-  IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dec\r
-\r
-[LibraryClasses]\r
-  DebugLib\r
-  BaseLib\r
-  PcdLib\r
-  PeiServicesLib\r
diff --git a/IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformMultiPhaseLibSample/FspWrapperPlatformMultiPhaseLibSample.c b/IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformMultiPhaseLibSample/FspWrapperPlatformMultiPhaseLibSample.c
deleted file mode 100644 (file)
index b4bc3d8..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/** @file\r
-  FSP Wrapper to handle platform specific actions for\r
-  FSP MultiPhase (SeparatePhase) Initialization.\r
-\r
-  Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
-  SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
-**/\r
-\r
-#include <Library/BaseLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/PcdLib.h>\r
-\r
-/**\r
-  FSP Wrapper Platform MultiPhase Handler\r
-\r
-  @param[in] FspHobListPtr        - Pointer to FSP HobList (valid after FSP-M completed)\r
-  @param[in] ComponentIndex       - FSP Component which executing MultiPhase initialization.\r
-  @param[in] PhaseIndex           - Indicates current execution phase of FSP MultiPhase initialization.\r
-\r
-  @retval EFI_STATUS        Always return EFI_SUCCESS\r
-\r
-**/\r
-VOID\r
-EFIAPI\r
-FspWrapperPlatformMultiPhaseHandler (\r
-  IN OUT VOID  **FspHobListPtr,\r
-  IN UINT8     ComponentIndex,\r
-  IN UINT32    PhaseIndex\r
-  )\r
-{\r
-  /* Example platform actions as below\r
-  switch (ComponentIndex) {\r
-  case FspMultiPhaseMemInitApiIndex:\r
-    switch (PhaseIndex) {\r
-      case 1:\r
-        PlatformAction1 ();\r
-      break;\r
-    }\r
-    break;\r
-  case FspMultiPhaseSiInitApiIndex:\r
-    switch (PhaseIndex) {\r
-      case 1:\r
-        PlatformAction2 ();\r
-      break;\r
-    }\r
-    break;\r
-  }\r
-  */\r
-}\r