public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [Patch V2 1/3] Vlv2TbltDevicePkg: ECP Cleanup.
@ 2019-03-19  8:33 Zailiang Sun
  2019-03-19  8:59 ` Qian, Yi
  0 siblings, 1 reply; 2+ messages in thread
From: Zailiang Sun @ 2019-03-19  8:33 UTC (permalink / raw)
  To: edk2-devel; +Cc: Yi Qian, David Wei

In V2: no new changes

Remove modules of EdkCompatibilityPkg from DSC/FDF of Vlv2TbltDevicePkg to make
this platform ECP free.

Test: Boot to 64-bit Windows 10.

Cc: Zailiang Sun <zailiang.sun@intel.com>
Cc: Yi Qian <yi.qian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: David Wei <david.wei@intel.com>
---
 Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c               |  8 ++++----
 Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.inf             |  4 ++--
 Vlv2TbltDevicePkg/PciPlatform/PciPlatform.c                 |  8 ++++----
 Vlv2TbltDevicePkg/PciPlatform/PciPlatform.inf               |  4 ++--
 Vlv2TbltDevicePkg/PlatformPei/BootMode.c                    | 56 ++------------------------------------------------------
 Vlv2TbltDevicePkg/PlatformPei/PlatformPei.inf               |  4 +---
 Vlv2TbltDevicePkg/PlatformPkg.fdf                           | 11 +----------
 Vlv2TbltDevicePkg/PlatformPkgGcc.fdf                        | 10 ----------
 Vlv2TbltDevicePkg/PlatformPkgGccX64.dsc                     | 87 ---------------------------------------------------------------------------------------
 Vlv2TbltDevicePkg/PlatformPkgIA32.dsc                       | 91 +++----------------------------------------------------------------------------------------
 Vlv2TbltDevicePkg/PlatformPkgX64.dsc                        | 87 ---------------------------------------------------------------------------------------
 Vlv2TbltDevicePkg/PlatformSmm/PlatformSmm.inf               |  6 +++---
 Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c          | 10 +++++-----
 Vlv2TbltDevicePkg/VlvPlatformInitDxe/VlvPlatformInitDxe.inf |  6 +++---
 14 files changed, 30 insertions(+), 362 deletions(-)

diff --git a/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c b/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c
index 4a913eb723..d575533319 100644
--- a/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c
+++ b/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c
@@ -1,6 +1,6 @@
 /** @file
 
-  Copyright (c) 2004  - 2016, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2004  - 2018, Intel Corporation. All rights reserved.<BR>
 
 
   This program and the accompanying materials are licensed and made available under
@@ -35,7 +35,7 @@ Abstract:
 
 #include <PiDxe.h>
 #include <Protocol/TcgService.h>
-#include <Protocol/FirmwareVolume.h>
+#include <Protocol/FirmwareVolume2.h>
 #include "AcpiPlatform.h"
 #include "AcpiPlatformHooks.h"
 #include "AcpiPlatformHooksLib.h"
@@ -785,7 +785,7 @@ AcpiPlatformEntryPoint (
   EFI_STATUS                    Status;
   EFI_STATUS                    AcpiStatus;
   EFI_ACPI_SUPPORT_PROTOCOL     *AcpiSupport;
-  EFI_FIRMWARE_VOLUME_PROTOCOL  *FwVol;
+  EFI_FIRMWARE_VOLUME2_PROTOCOL  *FwVol;
   INTN                          Instance;
   EFI_ACPI_COMMON_HEADER        *CurrentTable;
   UINTN                         TableHandle;
@@ -856,7 +856,7 @@ AcpiPlatformEntryPoint (
   //
   // Locate the firmware volume protocol.
   //
-  Status = LocateSupportProtocol (&gEfiFirmwareVolumeProtocolGuid, (VOID **) &FwVol, 1);
+  Status = LocateSupportProtocol (&gEfiFirmwareVolume2ProtocolGuid, (VOID **) &FwVol, 1);
   ASSERT_EFI_ERROR (Status);
 
   //
diff --git a/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.inf b/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.inf
index 24fa913b33..74a531369d 100644
--- a/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.inf
+++ b/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.inf
@@ -1,6 +1,6 @@
 #
 #
-# Copyright (c)  1999  - 2014, Intel Corporation. All rights reserved
+# Copyright (c)  1999  - 2018, Intel Corporation. All rights reserved
 #                                                                                  

 # This program and the accompanying materials are licensed and made available under

 # the terms and conditions of the BSD License that accompanies this distribution.  

@@ -77,7 +77,7 @@
   gEfiMpServiceProtocolGuid
   gEfiGlobalNvsAreaProtocolGuid
   gEfiTcgProtocolGuid
-  gEfiFirmwareVolumeProtocolGuid
+  gEfiFirmwareVolume2ProtocolGuid
   gIgdOpRegionProtocolGuid
 
 [Pcd]
diff --git a/Vlv2TbltDevicePkg/PciPlatform/PciPlatform.c b/Vlv2TbltDevicePkg/PciPlatform/PciPlatform.c
index 08f5df2a25..27ae9de7a0 100644
--- a/Vlv2TbltDevicePkg/PciPlatform/PciPlatform.c
+++ b/Vlv2TbltDevicePkg/PciPlatform/PciPlatform.c
@@ -36,7 +36,7 @@ Abstract:
 #include <Library/UefiBootServicesTableLib.h>
 #include <Library/UefiRuntimeServicesTableLib.h>
 #include <Library/DebugLib.h>
-#include <Protocol/FirmwareVolume.h>
+#include <Protocol/FirmwareVolume2.h>
 #include <Library/HobLib.h>
 #include <IndustryStandard/Pci22.h>
 
@@ -66,12 +66,12 @@ GetRawImage (
   EFI_HANDLE                    *HandleBuffer;
   UINTN                         HandleCount;
   UINTN                         Index;
-  EFI_FIRMWARE_VOLUME_PROTOCOL  *Fv;
+  EFI_FIRMWARE_VOLUME2_PROTOCOL  *Fv;
   UINT32                        AuthenticationStatus;
 
   Status = gBS->LocateHandleBuffer (
                   ByProtocol,
-                  &gEfiFirmwareVolumeProtocolGuid,
+                  &gEfiFirmwareVolume2ProtocolGuid,
                   NULL,
                   &HandleCount,
                   &HandleBuffer
@@ -86,7 +86,7 @@ GetRawImage (
   for (Index = 0; Index < HandleCount; Index++) {
     Status = gBS->HandleProtocol(
                     HandleBuffer[Index],
-                    &gEfiFirmwareVolumeProtocolGuid,
+                    &gEfiFirmwareVolume2ProtocolGuid,
                     (VOID **) &Fv
                     );
 
diff --git a/Vlv2TbltDevicePkg/PciPlatform/PciPlatform.inf b/Vlv2TbltDevicePkg/PciPlatform/PciPlatform.inf
index a296c24b75..ce3140f830 100644
--- a/Vlv2TbltDevicePkg/PciPlatform/PciPlatform.inf
+++ b/Vlv2TbltDevicePkg/PciPlatform/PciPlatform.inf
@@ -1,6 +1,6 @@
 #/*++
 #
-# Copyright (c)  2003  - 2014, Intel Corporation. All rights reserved
+# Copyright (c)  2003  - 2018, Intel Corporation. All rights reserved
 #                                                                                  

 # This program and the accompanying materials are licensed and made available under

 # the terms and conditions of the BSD License that accompanies this distribution.  

@@ -42,7 +42,7 @@
 [Protocols]
   gEfiPciPlatformProtocolGuid
   gEfiCpuIoProtocolGuid
-  gEfiFirmwareVolumeProtocolGuid
+  gEfiFirmwareVolume2ProtocolGuid
   gEfiPciRootBridgeIoProtocolGuid
   gEfiPciIoProtocolGuid
 
diff --git a/Vlv2TbltDevicePkg/PlatformPei/BootMode.c b/Vlv2TbltDevicePkg/PlatformPei/BootMode.c
index 95be1c0f28..66a6680e9c 100644
--- a/Vlv2TbltDevicePkg/PlatformPei/BootMode.c
+++ b/Vlv2TbltDevicePkg/PlatformPei/BootMode.c
@@ -1,6 +1,6 @@
 /** @file
 
-  Copyright (c) 2004  - 2014, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2004  - 2018, Intel Corporation. All rights reserved.<BR>
                                                                                    

   This program and the accompanying materials are licensed and made available under

   the terms and conditions of the BSD License that accompanies this distribution.  

@@ -29,8 +29,6 @@ Abstract:
 #include "PlatformBootMode.h"
 #include <Guid/SetupVariable.h>
 
-#include <Guid/BootState.h>
-
 //
 // Priority of our boot modes, highest priority first
 //
@@ -100,56 +98,6 @@ CapsulePpiNotifyCallback (
   return Status;
 }
 
-/**
-  Check CMOS register bit to determine if previous boot was successful
-
-  @param PeiServices    pointer to the PEI Service Table
-
-  @retval TRUE          - Previous Boot was success
-  @retval FALSE         - Previous Boot wasn't success
-
-**/
-BOOLEAN
-IsPreviousBootSuccessful(
-  IN CONST EFI_PEI_SERVICES   **PeiServices
-
-  )
-{
-  EFI_STATUS                      Status;
-  BOOLEAN                         BootState;
-  UINTN                           DataSize;
-  CHAR16                          VarName[] = BOOT_STATE_VARIABLE_NAME;
-  EFI_PEI_READ_ONLY_VARIABLE2_PPI *PeiVar;
-
-  Status = (**PeiServices).LocatePpi (
-                             PeiServices,
-                             &gEfiPeiReadOnlyVariable2PpiGuid,
-                             0,
-                             NULL,
-                                (void **)&PeiVar
-                             );
-  ASSERT_EFI_ERROR (Status);
-
-  //
-  // Get last Boot State Variable to confirm that it is not a first boot .
-  //
-
-  DataSize = sizeof (BOOLEAN);
-  Status = PeiVar->GetVariable (
-                     PeiVar,
-                     VarName,
-                     &gEfiBootStateGuid,
-                     NULL,
-                     &DataSize,
-                     &BootState
-                     );
-  if (EFI_ERROR (Status) || (BootState == TRUE)) {
-    return FALSE;
-  }
-
-  DEBUG ((EFI_D_INFO, "Previous boot cycle successfully completed handover to OS\n"));
-  return TRUE;
-}
 #ifdef NOCS_S3_SUPPORT
 EFI_STATUS
 UpdateBootMode (
@@ -190,7 +138,7 @@ UpdateBootMode (
     } // switch (SleepType)
   }
 
-  if (IsFastBootEnabled (PeiServices) && IsPreviousBootSuccessful (PeiServices)) {
+  if (IsFastBootEnabled (PeiServices)) {
     DEBUG ((EFI_D_INFO, "Prioritizing Boot mode to BOOT_WITH_MINIMAL_CONFIGURATION\n"));
     PrioritizeBootMode (&BootMode, BOOT_WITH_MINIMAL_CONFIGURATION);
   }
diff --git a/Vlv2TbltDevicePkg/PlatformPei/PlatformPei.inf b/Vlv2TbltDevicePkg/PlatformPei/PlatformPei.inf
index 9c1cd08db5..2ecb347d18 100644
--- a/Vlv2TbltDevicePkg/PlatformPei/PlatformPei.inf
+++ b/Vlv2TbltDevicePkg/PlatformPei/PlatformPei.inf
@@ -1,6 +1,6 @@
 #
 #
-# Copyright (c)  1999  - 2014, Intel Corporation. All rights reserved
+# Copyright (c)  1999  - 2018, Intel Corporation. All rights reserved
 #                                                                                  

 # This program and the accompanying materials are licensed and made available under

 # the terms and conditions of the BSD License that accompanies this distribution.  

@@ -74,7 +74,6 @@
   IA32FamilyCpuPkg/IA32FamilyCpuPkg.dec
   UefiCpuPkg/UefiCpuPkg.dec
   CryptoPkg/CryptoPkg.dec
-  EdkCompatibilityPkg/EdkCompatibilityPkg.dec
 
 [LibraryClasses]
   PeimEntryPoint
@@ -121,7 +120,6 @@
   gRecoveryOnDataCdGuid
   gMfgModeVariableGuid
   gEfiNormalSetupGuid
-  gEfiBootStateGuid
   gEfiVlv2VariableGuid
 
 [Pcd.common]
diff --git a/Vlv2TbltDevicePkg/PlatformPkg.fdf b/Vlv2TbltDevicePkg/PlatformPkg.fdf
index 0d13ad9f56..ff0b32e635 100644
--- a/Vlv2TbltDevicePkg/PlatformPkg.fdf
+++ b/Vlv2TbltDevicePkg/PlatformPkg.fdf
@@ -316,7 +316,6 @@ INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET
 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/PeiSmmControl.inf
 INF UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/MpS3.inf
-INF EdkCompatibilityPkg/Compatibility/AcpiVariableHobOnSmramReserveHobThunk/AcpiVariableHobOnSmramReserveHobThunk.inf
 !endif
 
 # INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/PiSmmCommunicationPei.inf
@@ -679,15 +678,7 @@ INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
 INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
 !endif
 
-  #
-  #  ECP
-  #
-INF EdkCompatibilityPkg/Compatibility/LegacyRegion2OnLegacyRegionThunk/LegacyRegion2OnLegacyRegionThunk.inf
-INF EdkCompatibilityPkg/Compatibility/SmmBaseOnSmmBase2Thunk/SmmBaseOnSmmBase2Thunk.inf
-INF EdkCompatibilityPkg/Compatibility/SmmBaseHelper/SmmBaseHelper.inf
-INF EdkCompatibilityPkg/Compatibility/SmmAccess2OnSmmAccessThunk/SmmAccess2OnSmmAccessThunk.inf
-INF EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/SmmControl2OnSmmControlThunk.inf
-INF EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk/FvOnFv2Thunk.inf
+
   #
   # SMBIOS
   #
diff --git a/Vlv2TbltDevicePkg/PlatformPkgGcc.fdf b/Vlv2TbltDevicePkg/PlatformPkgGcc.fdf
index 847286328a..eeecf9e45b 100644
--- a/Vlv2TbltDevicePkg/PlatformPkgGcc.fdf
+++ b/Vlv2TbltDevicePkg/PlatformPkgGcc.fdf
@@ -272,7 +272,6 @@ INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET
 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/PeiSmmControl.inf
 INF UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/MpS3.inf
-INF EdkCompatibilityPkg/Compatibility/AcpiVariableHobOnSmramReserveHobThunk/AcpiVariableHobOnSmramReserveHobThunk.inf
 !endif
 
 # INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/PiSmmCommunicationPei.inf
@@ -635,15 +634,6 @@ INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
 INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
 !endif
 
-  #
-  #  ECP
-  #
-INF EdkCompatibilityPkg/Compatibility/LegacyRegion2OnLegacyRegionThunk/LegacyRegion2OnLegacyRegionThunk.inf
-INF EdkCompatibilityPkg/Compatibility/SmmBaseOnSmmBase2Thunk/SmmBaseOnSmmBase2Thunk.inf
-INF EdkCompatibilityPkg/Compatibility/SmmBaseHelper/SmmBaseHelper.inf
-INF EdkCompatibilityPkg/Compatibility/SmmAccess2OnSmmAccessThunk/SmmAccess2OnSmmAccessThunk.inf
-INF EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/SmmControl2OnSmmControlThunk.inf
-INF EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk/FvOnFv2Thunk.inf
   #
   # SMBIOS
   #
diff --git a/Vlv2TbltDevicePkg/PlatformPkgGccX64.dsc b/Vlv2TbltDevicePkg/PlatformPkgGccX64.dsc
index eb7c205a10..ac401c4826 100644
--- a/Vlv2TbltDevicePkg/PlatformPkgGccX64.dsc
+++ b/Vlv2TbltDevicePkg/PlatformPkgGccX64.dsc
@@ -195,7 +195,6 @@
   PlatformFlashAccessLib|Vlv2TbltDevicePkg/Feature/Capsule/Library/PlatformFlashAccessLib/PlatformFlashAccessLib.inf
   MicrocodeFlashAccessLib|Vlv2TbltDevicePkg/Feature/Capsule/Library/PlatformFlashAccessLib/PlatformFlashAccessLib.inf
   DisplayUpdateProgressLib|MdeModulePkg/Library/DisplayUpdateProgressLibGraphics/DisplayUpdateProgressLibGraphics.inf
-  LanguageLib|EdkCompatibilityPkg/Compatibility/Library/UefiLanguageLib/UefiLanguageLib.inf
   SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
   SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
   IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
@@ -475,79 +474,6 @@
   DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
 !endif
 
-
-################################################################################
-#
-# Library Section - list of all EDK/Framework libraries
-#
-################################################################################
-[Libraries.common]
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/BaseLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseMemoryLib/BaseMemoryLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePrintLib/BasePrintLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseDebugLibNull/BaseDebugLibNull.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciCf8Lib/BasePciCf8Lib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciExpressLib/BasePciExpressLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciLibCf8/BasePciLibCf8.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/BasePeCoffLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/SmmRuntimeDxeReportStatusCodeLib/SmmRuntimeDxeReportStatusCodeLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiHobLib/PeiHobLib.inf
-  EdkCompatibilityPkg/Foundation/Ppi/EdkPpiLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.inf
-  EdkCompatibilityPkg/Compatibility/Library/UefiLanguageLib/UefiLanguageLib.inf
-  EdkCompatibilityPkg/Foundation/Guid/EdkGuidLib.inf
-  EdkCompatibilityPkg/Foundation/Efi/Protocol/EfiProtocolLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/EfiDriverLib.inf
-  EdkCompatibilityPkg/Foundation/Protocol/EdkProtocolLib.inf
-  EdkCompatibilityPkg/Foundation/Framework/Protocol/EdkFrameworkProtocolLib.inf
-[Libraries.IA32]
-  EdkCompatibilityPkg/Foundation/Efi/Guid/EfiGuidLib.inf
-  EdkCompatibilityPkg/Foundation/Framework/Guid/EdkFrameworkGuidLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiCommonLib.inf
-  EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/CpuIA32Lib.inf
-  EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf
-  EdkCompatibilityPkg/Foundation/Framework/Ppi/EdkFrameworkPpiLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Pei/Hob/PeiHobLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiServicesTablePointerLibMm7/PeiServicesTablePointerLibMm7.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiServicesLib/PeiServicesLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
-  EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/ArchProtocolLib.inf
-
-  $(PLATFORM_PACKAGE)/Library/MultiPlatformLib/MultiPlatformLib.inf
-[Libraries.X64]
-
-  EdkCompatibilityPkg/Foundation/Efi/Guid/EfiGuidLib.inf
-  EdkCompatibilityPkg/Foundation/Framework/Guid/EdkFrameworkGuidLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiCommonLib.inf
-  EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/CpuIA32Lib.inf
-  EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf
-  EdkCompatibilityPkg/Foundation/Framework/Ppi/EdkFrameworkPpiLib.inf
-  EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/ArchProtocolLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/Hob/HobLib.inf
-  EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/EfiRuntimeLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiIfrSupportLib/EfiIfrSupportLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/Print/PrintLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiScriptLib/EfiScriptLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/PrintLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/GraphicsLite/Graphics.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeMemoryAllocationLib/DxeMemoryAllocationLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiLib/UefiLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeHobLib/DxeHobLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/HiiLib/HiiLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiDevicePathLib/UefiDevicePathLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiDriverModelLib/UefiDriverModelLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeServicesTableLib/DxeServicesTableLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/EdkDxeRuntimeDriverLib/EdkDxeRuntimeDriverLib.inf
-
-
 ################################################################################
 #
 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
@@ -865,7 +791,6 @@
 [PcdsDynamicHii.common.DEFAULT]
   gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5 # Variable: L"Timeout"
   gEfiMdePkgTokenSpaceGuid.PcdHardwareErrorRecordLevel|L"HwErrRecSupport"|gEfiGlobalVariableGuid|0x0|1 # Variable: L"HwErrRecSupport"
-  gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdBootState|L"BootState"|gEfiBootStateGuid|0x0|TRUE
 
 [PcdsDynamicDefault.common.DEFAULT]
   gEfiMdeModulePkgTokenSpaceGuid.PcdS3BootScriptTablePrivateDataPtr|0x0
@@ -1048,7 +973,6 @@ $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/fTPMInitPeim.inf
   UefiCpuPkg/CpuIoPei/CpuIoPei.inf
   UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
   $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/MpS3.inf
-  EdkCompatibilityPkg/Compatibility/AcpiVariableHobOnSmramReserveHobThunk/AcpiVariableHobOnSmramReserveHobThunk.inf
 #  $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/PiSmmCommunicationPei.inf
 
 !if $(RECOVERY_ENABLE)
@@ -1496,17 +1420,6 @@ $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/fTPMInitPeim.inf
 
 !endif
 
-  #
-  #  ECP
-  #
-  EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/FrameworkHiiOnUefiHiiThunk.inf
-  EdkCompatibilityPkg/Compatibility/LegacyRegion2OnLegacyRegionThunk/LegacyRegion2OnLegacyRegionThunk.inf
-  EdkCompatibilityPkg/Compatibility/SmmBaseOnSmmBase2Thunk/SmmBaseOnSmmBase2Thunk.inf
-  EdkCompatibilityPkg/Compatibility/SmmBaseHelper/SmmBaseHelper.inf
-  EdkCompatibilityPkg/Compatibility/SmmAccess2OnSmmAccessThunk/SmmAccess2OnSmmAccessThunk.inf
-  EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/SmmControl2OnSmmControlThunk.inf
-  EdkCompatibilityPkg/Compatibility/FrameworkSmmStatusCodeOnPiSmmStatusCodeThunk/FrameworkSmmStatusCodeOnPiSmmStatusCodeThunk.inf
-  EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk/FvOnFv2Thunk.inf
   #
   # SMBIOS
   #
diff --git a/Vlv2TbltDevicePkg/PlatformPkgIA32.dsc b/Vlv2TbltDevicePkg/PlatformPkgIA32.dsc
index b2f0d73f6d..7235ac1027 100644
--- a/Vlv2TbltDevicePkg/PlatformPkgIA32.dsc
+++ b/Vlv2TbltDevicePkg/PlatformPkgIA32.dsc
@@ -195,7 +195,6 @@
   PlatformFlashAccessLib|Vlv2TbltDevicePkg/Feature/Capsule/Library/PlatformFlashAccessLib/PlatformFlashAccessLib.inf
   MicrocodeFlashAccessLib|Vlv2TbltDevicePkg/Feature/Capsule/Library/PlatformFlashAccessLib/PlatformFlashAccessLib.inf
   DisplayUpdateProgressLib|MdeModulePkg/Library/DisplayUpdateProgressLibGraphics/DisplayUpdateProgressLibGraphics.inf
-  LanguageLib|EdkCompatibilityPkg/Compatibility/Library/UefiLanguageLib/UefiLanguageLib.inf
   SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
   SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
   IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
@@ -283,6 +282,8 @@
 !endif
   ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
   ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
+  ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
+  HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
   FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
   SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
 !if $(FTPM_ENABLE) == TRUE || $(NETWORK_ISCSI_ENABLE) == TRUE
@@ -475,79 +476,6 @@
   DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
 !endif
 
-
-################################################################################
-#
-# Library Section - list of all EDK/Framework libraries
-#
-################################################################################
-[Libraries.common]
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/BaseLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseMemoryLib/BaseMemoryLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePrintLib/BasePrintLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseDebugLibNull/BaseDebugLibNull.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciCf8Lib/BasePciCf8Lib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciExpressLib/BasePciExpressLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciLibCf8/BasePciLibCf8.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/BasePeCoffLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/SmmRuntimeDxeReportStatusCodeLib/SmmRuntimeDxeReportStatusCodeLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiHobLib/PeiHobLib.inf
-  EdkCompatibilityPkg/Foundation/Ppi/EdkPpiLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.inf
-  EdkCompatibilityPkg/Compatibility/Library/UefiLanguageLib/UefiLanguageLib.inf
-  EdkCompatibilityPkg/Foundation/Guid/EdkGuidLib.inf
-  EdkCompatibilityPkg/Foundation/Efi/Protocol/EfiProtocolLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/EfiDriverLib.inf
-  EdkCompatibilityPkg/Foundation/Protocol/EdkProtocolLib.inf
-  EdkCompatibilityPkg/Foundation/Framework/Protocol/EdkFrameworkProtocolLib.inf
-[Libraries.IA32]
-  EdkCompatibilityPkg/Foundation/Efi/Guid/EfiGuidLib.inf
-  EdkCompatibilityPkg/Foundation/Framework/Guid/EdkFrameworkGuidLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiCommonLib.inf
-  EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/CpuIA32Lib.inf
-  EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf
-  EdkCompatibilityPkg/Foundation/Framework/Ppi/EdkFrameworkPpiLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Pei/Hob/PeiHobLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiServicesTablePointerLibMm7/PeiServicesTablePointerLibMm7.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiServicesLib/PeiServicesLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
-  EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/ArchProtocolLib.inf
-
-  $(PLATFORM_PACKAGE)/Library/MultiPlatformLib/MultiPlatformLib.inf
-[Libraries.IA32]
-
-  EdkCompatibilityPkg/Foundation/Efi/Guid/EfiGuidLib.inf
-  EdkCompatibilityPkg/Foundation/Framework/Guid/EdkFrameworkGuidLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiCommonLib.inf
-  EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/CpuIA32Lib.inf
-  EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf
-  EdkCompatibilityPkg/Foundation/Framework/Ppi/EdkFrameworkPpiLib.inf
-  EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/ArchProtocolLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/Hob/HobLib.inf
-  EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/EfiRuntimeLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiIfrSupportLib/EfiIfrSupportLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/Print/PrintLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiScriptLib/EfiScriptLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/PrintLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/GraphicsLite/Graphics.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeMemoryAllocationLib/DxeMemoryAllocationLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiLib/UefiLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeHobLib/DxeHobLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/HiiLib/HiiLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiDevicePathLib/UefiDevicePathLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiDriverModelLib/UefiDriverModelLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeServicesTableLib/DxeServicesTableLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/EdkDxeRuntimeDriverLib/EdkDxeRuntimeDriverLib.inf
-
-
 ################################################################################
 #
 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
@@ -865,7 +793,6 @@
 [PcdsDynamicHii.common.DEFAULT]
   gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5 # Variable: L"Timeout"
   gEfiMdePkgTokenSpaceGuid.PcdHardwareErrorRecordLevel|L"HwErrRecSupport"|gEfiGlobalVariableGuid|0x0|1 # Variable: L"HwErrRecSupport"
-  gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdBootState|L"BootState"|gEfiBootStateGuid|0x0|TRUE
 
 [PcdsDynamicDefault.common.DEFAULT]
   gEfiMdeModulePkgTokenSpaceGuid.PcdS3BootScriptTablePrivateDataPtr|0x0
@@ -1048,7 +975,6 @@ $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/fTPMInitPeim.inf
   UefiCpuPkg/CpuIoPei/CpuIoPei.inf
   UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
   $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/MpS3.inf
-  EdkCompatibilityPkg/Compatibility/AcpiVariableHobOnSmramReserveHobThunk/AcpiVariableHobOnSmramReserveHobThunk.inf
 #  $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/PiSmmCommunicationPei.inf
 
 !if $(RECOVERY_ENABLE)
@@ -1484,17 +1410,6 @@ $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/fTPMInitPeim.inf
 
 !endif
 
-  #
-  #  ECP
-  #
-  EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/FrameworkHiiOnUefiHiiThunk.inf
-  EdkCompatibilityPkg/Compatibility/LegacyRegion2OnLegacyRegionThunk/LegacyRegion2OnLegacyRegionThunk.inf
-  EdkCompatibilityPkg/Compatibility/SmmBaseOnSmmBase2Thunk/SmmBaseOnSmmBase2Thunk.inf
-  EdkCompatibilityPkg/Compatibility/SmmBaseHelper/SmmBaseHelper.inf
-  EdkCompatibilityPkg/Compatibility/SmmAccess2OnSmmAccessThunk/SmmAccess2OnSmmAccessThunk.inf
-  EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/SmmControl2OnSmmControlThunk.inf
-  EdkCompatibilityPkg/Compatibility/FrameworkSmmStatusCodeOnPiSmmStatusCodeThunk/FrameworkSmmStatusCodeOnPiSmmStatusCodeThunk.inf
-  EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk/FvOnFv2Thunk.inf
   #
   # SMBIOS
   #
@@ -1538,9 +1453,9 @@ $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/fTPMInitPeim.inf
     MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
     MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
     MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
-    MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
     NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
     NetworkPkg/TcpDxe/TcpDxe.inf
+    MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
     !if $(NETWORK_IP6_ENABLE) == TRUE
       NetworkPkg/Ip6Dxe/Ip6Dxe.inf
       NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.inf
diff --git a/Vlv2TbltDevicePkg/PlatformPkgX64.dsc b/Vlv2TbltDevicePkg/PlatformPkgX64.dsc
index aa62c07f17..c60e4c70ea 100644
--- a/Vlv2TbltDevicePkg/PlatformPkgX64.dsc
+++ b/Vlv2TbltDevicePkg/PlatformPkgX64.dsc
@@ -195,7 +195,6 @@
   PlatformFlashAccessLib|Vlv2TbltDevicePkg/Feature/Capsule/Library/PlatformFlashAccessLib/PlatformFlashAccessLib.inf
   MicrocodeFlashAccessLib|Vlv2TbltDevicePkg/Feature/Capsule/Library/PlatformFlashAccessLib/PlatformFlashAccessLib.inf
   DisplayUpdateProgressLib|MdeModulePkg/Library/DisplayUpdateProgressLibGraphics/DisplayUpdateProgressLibGraphics.inf
-  LanguageLib|EdkCompatibilityPkg/Compatibility/Library/UefiLanguageLib/UefiLanguageLib.inf
   SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
   SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
   IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
@@ -477,79 +476,6 @@
   DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
 !endif
 
-
-################################################################################
-#
-# Library Section - list of all EDK/Framework libraries
-#
-################################################################################
-[Libraries.common]
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/BaseLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseMemoryLib/BaseMemoryLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePrintLib/BasePrintLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseDebugLibNull/BaseDebugLibNull.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciCf8Lib/BasePciCf8Lib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciExpressLib/BasePciExpressLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciLibCf8/BasePciLibCf8.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/BasePeCoffLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/SmmRuntimeDxeReportStatusCodeLib/SmmRuntimeDxeReportStatusCodeLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiHobLib/PeiHobLib.inf
-  EdkCompatibilityPkg/Foundation/Ppi/EdkPpiLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.inf
-  EdkCompatibilityPkg/Compatibility/Library/UefiLanguageLib/UefiLanguageLib.inf
-  EdkCompatibilityPkg/Foundation/Guid/EdkGuidLib.inf
-  EdkCompatibilityPkg/Foundation/Efi/Protocol/EfiProtocolLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/EfiDriverLib.inf
-  EdkCompatibilityPkg/Foundation/Protocol/EdkProtocolLib.inf
-  EdkCompatibilityPkg/Foundation/Framework/Protocol/EdkFrameworkProtocolLib.inf
-[Libraries.IA32]
-  EdkCompatibilityPkg/Foundation/Efi/Guid/EfiGuidLib.inf
-  EdkCompatibilityPkg/Foundation/Framework/Guid/EdkFrameworkGuidLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiCommonLib.inf
-  EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/CpuIA32Lib.inf
-  EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf
-  EdkCompatibilityPkg/Foundation/Framework/Ppi/EdkFrameworkPpiLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Pei/Hob/PeiHobLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiServicesTablePointerLibMm7/PeiServicesTablePointerLibMm7.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiServicesLib/PeiServicesLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
-  EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/ArchProtocolLib.inf
-
-  $(PLATFORM_PACKAGE)/Library/MultiPlatformLib/MultiPlatformLib.inf
-[Libraries.X64]
-
-  EdkCompatibilityPkg/Foundation/Efi/Guid/EfiGuidLib.inf
-  EdkCompatibilityPkg/Foundation/Framework/Guid/EdkFrameworkGuidLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiCommonLib.inf
-  EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/CpuIA32Lib.inf
-  EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf
-  EdkCompatibilityPkg/Foundation/Framework/Ppi/EdkFrameworkPpiLib.inf
-  EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/ArchProtocolLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/Hob/HobLib.inf
-  EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/EfiRuntimeLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiIfrSupportLib/EfiIfrSupportLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/Print/PrintLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiScriptLib/EfiScriptLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/PrintLib.inf
-  EdkCompatibilityPkg/Foundation/Library/Dxe/GraphicsLite/Graphics.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeMemoryAllocationLib/DxeMemoryAllocationLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiLib/UefiLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeHobLib/DxeHobLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/HiiLib/HiiLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiDevicePathLib/UefiDevicePathLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiDriverModelLib/UefiDriverModelLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeServicesTableLib/DxeServicesTableLib.inf
-  EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/EdkDxeRuntimeDriverLib/EdkDxeRuntimeDriverLib.inf
-
-
 ################################################################################
 #
 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
@@ -867,7 +793,6 @@
 [PcdsDynamicHii.common.DEFAULT]
   gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5 # Variable: L"Timeout"
   gEfiMdePkgTokenSpaceGuid.PcdHardwareErrorRecordLevel|L"HwErrRecSupport"|gEfiGlobalVariableGuid|0x0|1 # Variable: L"HwErrRecSupport"
-  gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdBootState|L"BootState"|gEfiBootStateGuid|0x0|TRUE
 
 [PcdsDynamicDefault.common.DEFAULT]
   gEfiMdeModulePkgTokenSpaceGuid.PcdS3BootScriptTablePrivateDataPtr|0x0
@@ -1050,7 +975,6 @@ $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/fTPMInitPeim.inf
   UefiCpuPkg/CpuIoPei/CpuIoPei.inf
   UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
   $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/MpS3.inf
-  EdkCompatibilityPkg/Compatibility/AcpiVariableHobOnSmramReserveHobThunk/AcpiVariableHobOnSmramReserveHobThunk.inf
 #  $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/PiSmmCommunicationPei.inf
 
 !if $(RECOVERY_ENABLE)
@@ -1498,17 +1422,6 @@ $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/fTPMInitPeim.inf
 
 !endif
 
-  #
-  #  ECP
-  #
-  EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/FrameworkHiiOnUefiHiiThunk.inf
-  EdkCompatibilityPkg/Compatibility/LegacyRegion2OnLegacyRegionThunk/LegacyRegion2OnLegacyRegionThunk.inf
-  EdkCompatibilityPkg/Compatibility/SmmBaseOnSmmBase2Thunk/SmmBaseOnSmmBase2Thunk.inf
-  EdkCompatibilityPkg/Compatibility/SmmBaseHelper/SmmBaseHelper.inf
-  EdkCompatibilityPkg/Compatibility/SmmAccess2OnSmmAccessThunk/SmmAccess2OnSmmAccessThunk.inf
-  EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/SmmControl2OnSmmControlThunk.inf
-  EdkCompatibilityPkg/Compatibility/FrameworkSmmStatusCodeOnPiSmmStatusCodeThunk/FrameworkSmmStatusCodeOnPiSmmStatusCodeThunk.inf
-  EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk/FvOnFv2Thunk.inf
   #
   # SMBIOS
   #
diff --git a/Vlv2TbltDevicePkg/PlatformSmm/PlatformSmm.inf b/Vlv2TbltDevicePkg/PlatformSmm/PlatformSmm.inf
index 69e0a5d990..342661abd6 100644
--- a/Vlv2TbltDevicePkg/PlatformSmm/PlatformSmm.inf
+++ b/Vlv2TbltDevicePkg/PlatformSmm/PlatformSmm.inf
@@ -1,6 +1,6 @@
 #
 #
-# Copyright (c)  1999  - 2014, Intel Corporation. All rights reserved
+# Copyright (c)  1999  - 2018, Intel Corporation. All rights reserved
 #                                                                                  

 # This program and the accompanying materials are licensed and made available under

 # the terms and conditions of the BSD License that accompanies this distribution.  

@@ -65,7 +65,7 @@
   gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode
 
 [Protocols]
-  gEfiSmmBaseProtocolGuid
+  gEfiSmmBase2ProtocolGuid
   gEfiSmmIchnDispatchProtocolGuid
   gEfiGlobalNvsAreaProtocolGuid
   gEfiSmmSwDispatchProtocolGuid
@@ -86,7 +86,7 @@
   gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress
 
 [Depex]
-  gEfiSmmBaseProtocolGuid                 AND
+  gEfiSmmBase2ProtocolGuid                 AND
   gEfiSmmAccess2ProtocolGuid               AND
   gEfiSmmPowerButtonDispatchProtocolGuid  AND
   gEfiSmmSxDispatchProtocolGuid           AND
diff --git a/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c b/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c
index f8dc3f14f3..6460b58b4e 100644
--- a/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c
+++ b/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c
@@ -1,7 +1,7 @@
 
 /*++
 
-Copyright (c)  2011  - 2014, Intel Corporation. All rights reserved
+Copyright (c)  2011  - 2018, Intel Corporation. All rights reserved
                                                                                    

   This program and the accompanying materials are licensed and made available under

   the terms and conditions of the BSD License that accompanies this distribution.  

@@ -48,7 +48,7 @@ Abstract:
 
 #include <Protocol/IgdOpRegion.h>
 #include <Protocol/FrameworkHii.h>
-#include <Protocol/FirmwareVolume.h>
+#include <Protocol/FirmwareVolume2.h>
 #include <Protocol/PlatformGopPolicy.h>
 #include <Protocol/PciIo.h>
 #include <Protocol/CpuIo.h>
@@ -135,7 +135,7 @@ GetIntegratedIntelVbtPtr (
   EFI_PHYSICAL_ADDRESS          VbtAddress = 0;
   UINTN                         FvProtocolCount;
   EFI_HANDLE                    *FvHandles;
-  EFI_FIRMWARE_VOLUME_PROTOCOL  *Fv;
+  EFI_FIRMWARE_VOLUME2_PROTOCOL  *Fv;
   UINTN                         Index;
   UINT32                        AuthenticationStatus;
 
@@ -147,7 +147,7 @@ GetIntegratedIntelVbtPtr (
   *VbtFileBuffer = NULL;
   Status = gBS->LocateHandleBuffer (
                   ByProtocol,
-                  &gEfiFirmwareVolumeProtocolGuid,
+                  &gEfiFirmwareVolume2ProtocolGuid,
                   NULL,
                   &FvProtocolCount,
                   &FvHandles
@@ -157,7 +157,7 @@ GetIntegratedIntelVbtPtr (
     for (Index = 0; Index < FvProtocolCount; Index++) {
       Status = gBS->HandleProtocol (
                       FvHandles[Index],
-                      &gEfiFirmwareVolumeProtocolGuid,
+                      &gEfiFirmwareVolume2ProtocolGuid,
                       (VOID **) &Fv
                       );
       VbtBufferSize = 0;
diff --git a/Vlv2TbltDevicePkg/VlvPlatformInitDxe/VlvPlatformInitDxe.inf b/Vlv2TbltDevicePkg/VlvPlatformInitDxe/VlvPlatformInitDxe.inf
index cea185fba8..990ac0fd18 100644
--- a/Vlv2TbltDevicePkg/VlvPlatformInitDxe/VlvPlatformInitDxe.inf
+++ b/Vlv2TbltDevicePkg/VlvPlatformInitDxe/VlvPlatformInitDxe.inf
@@ -2,7 +2,7 @@
 #
 #/*++
 #
-#  Copyright (c)  1999  - 2014, Intel Corporation. All rights reserved
+#  Copyright (c)  1999  - 2018, Intel Corporation. All rights reserved
 #                                                                                  

 # This program and the accompanying materials are licensed and made available under

 # the terms and conditions of the BSD License that accompanies this distribution.  

@@ -65,7 +65,7 @@
   gIgdOpRegionProtocolGuid
   gEfiGlobalNvsAreaProtocolGuid
   gEfiPciIoProtocolGuid
-  gEfiFirmwareVolumeProtocolGuid
+  gEfiFirmwareVolume2ProtocolGuid
   gEfiCpuIoProtocolGuid
 
 [Depex]
@@ -74,6 +74,6 @@
   gEfiCpuIoProtocolGuid                      AND
   gEfiDataHubProtocolGuid                 AND
   gEfiGlobalNvsAreaProtocolGuid       AND
-  gEfiFirmwareVolumeProtocolGuid   AND
+  gEfiFirmwareVolume2ProtocolGuid   AND
   gEfiHiiDatabaseProtocolGuid
 
-- 
2.19.1.windows.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Patch V2 1/3] Vlv2TbltDevicePkg: ECP Cleanup.
  2019-03-19  8:33 [Patch V2 1/3] Vlv2TbltDevicePkg: ECP Cleanup Zailiang Sun
@ 2019-03-19  8:59 ` Qian, Yi
  0 siblings, 0 replies; 2+ messages in thread
From: Qian, Yi @ 2019-03-19  8:59 UTC (permalink / raw)
  To: Sun, Zailiang, edk2-devel@lists.01.org; +Cc: Wei, David

Reviewed by Qian, Yi <yi.qian@intel.com>

Thanks
Qian Yi

> -----Original Message-----
> From: Sun, Zailiang
> Sent: Tuesday, March 19, 2019 4:33 PM
> To: edk2-devel@lists.01.org
> Cc: Qian, Yi <yi.qian@intel.com>; Wei, David <david.wei@intel.com>
> Subject: [Patch V2 1/3] Vlv2TbltDevicePkg: ECP Cleanup.
> 
> In V2: no new changes
> 
> Remove modules of EdkCompatibilityPkg from DSC/FDF of Vlv2TbltDevicePkg
> to make this platform ECP free.
> 
> Test: Boot to 64-bit Windows 10.
> 
> Cc: Zailiang Sun <zailiang.sun@intel.com>
> Cc: Yi Qian <yi.qian@intel.com>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: David Wei <david.wei@intel.com>
> ---
>  Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c               |  8 ++++----
>  Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.inf             |  4 ++--
>  Vlv2TbltDevicePkg/PciPlatform/PciPlatform.c                 |  8 ++++----
>  Vlv2TbltDevicePkg/PciPlatform/PciPlatform.inf               |  4 ++--
>  Vlv2TbltDevicePkg/PlatformPei/BootMode.c                    | 56 ++------------------
> ------------------------------------
>  Vlv2TbltDevicePkg/PlatformPei/PlatformPei.inf               |  4 +---
>  Vlv2TbltDevicePkg/PlatformPkg.fdf                           | 11 +----------
>  Vlv2TbltDevicePkg/PlatformPkgGcc.fdf                        | 10 ----------
>  Vlv2TbltDevicePkg/PlatformPkgGccX64.dsc                     | 87 -----------------------
> ----------------------------------------------------------------
>  Vlv2TbltDevicePkg/PlatformPkgIA32.dsc                       | 91 +++--------------------
> --------------------------------------------------------------------
>  Vlv2TbltDevicePkg/PlatformPkgX64.dsc                        | 87 -------------------------
> --------------------------------------------------------------
>  Vlv2TbltDevicePkg/PlatformSmm/PlatformSmm.inf               |  6 +++---
>  Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c          | 10 +++++-----
>  Vlv2TbltDevicePkg/VlvPlatformInitDxe/VlvPlatformInitDxe.inf |  6 +++---
>  14 files changed, 30 insertions(+), 362 deletions(-)
> 
> diff --git a/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c
> b/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c
> index 4a913eb723..d575533319 100644
> --- a/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c
> +++ b/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c
> @@ -1,6 +1,6 @@
>  /** @file
> 
> -  Copyright (c) 2004  - 2016, Intel Corporation. All rights reserved.<BR>
> +  Copyright (c) 2004  - 2018, Intel Corporation. All rights
> + reserved.<BR>
> 
> 
>    This program and the accompanying materials are licensed and made
> available under @@ -35,7 +35,7 @@ Abstract:
> 
>  #include <PiDxe.h>
>  #include <Protocol/TcgService.h>
> -#include <Protocol/FirmwareVolume.h>
> +#include <Protocol/FirmwareVolume2.h>
>  #include "AcpiPlatform.h"
>  #include "AcpiPlatformHooks.h"
>  #include "AcpiPlatformHooksLib.h"
> @@ -785,7 +785,7 @@ AcpiPlatformEntryPoint (
>    EFI_STATUS                    Status;
>    EFI_STATUS                    AcpiStatus;
>    EFI_ACPI_SUPPORT_PROTOCOL     *AcpiSupport;
> -  EFI_FIRMWARE_VOLUME_PROTOCOL  *FwVol;
> +  EFI_FIRMWARE_VOLUME2_PROTOCOL  *FwVol;
>    INTN                          Instance;
>    EFI_ACPI_COMMON_HEADER        *CurrentTable;
>    UINTN                         TableHandle;
> @@ -856,7 +856,7 @@ AcpiPlatformEntryPoint (
>    //
>    // Locate the firmware volume protocol.
>    //
> -  Status = LocateSupportProtocol (&gEfiFirmwareVolumeProtocolGuid,
> (VOID **) &FwVol, 1);
> +  Status = LocateSupportProtocol (&gEfiFirmwareVolume2ProtocolGuid,
> + (VOID **) &FwVol, 1);
>    ASSERT_EFI_ERROR (Status);
> 
>    //
> diff --git a/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.inf
> b/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.inf
> index 24fa913b33..74a531369d 100644
> --- a/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.inf
> +++ b/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.inf
> @@ -1,6 +1,6 @@
>  #
>  #
> -# Copyright (c)  1999  - 2014, Intel Corporation. All rights reserved
> +# Copyright (c)  1999  - 2018, Intel Corporation. All rights reserved
>  #
> 
>  # This program and the accompanying materials are licensed and made
> available under
> 
>  # the terms and conditions of the BSD License that accompanies this
> distribution.
> 
> @@ -77,7 +77,7 @@
>    gEfiMpServiceProtocolGuid
>    gEfiGlobalNvsAreaProtocolGuid
>    gEfiTcgProtocolGuid
> -  gEfiFirmwareVolumeProtocolGuid
> +  gEfiFirmwareVolume2ProtocolGuid
>    gIgdOpRegionProtocolGuid
> 
>  [Pcd]
> diff --git a/Vlv2TbltDevicePkg/PciPlatform/PciPlatform.c
> b/Vlv2TbltDevicePkg/PciPlatform/PciPlatform.c
> index 08f5df2a25..27ae9de7a0 100644
> --- a/Vlv2TbltDevicePkg/PciPlatform/PciPlatform.c
> +++ b/Vlv2TbltDevicePkg/PciPlatform/PciPlatform.c
> @@ -36,7 +36,7 @@ Abstract:
>  #include <Library/UefiBootServicesTableLib.h>
>  #include <Library/UefiRuntimeServicesTableLib.h>
>  #include <Library/DebugLib.h>
> -#include <Protocol/FirmwareVolume.h>
> +#include <Protocol/FirmwareVolume2.h>
>  #include <Library/HobLib.h>
>  #include <IndustryStandard/Pci22.h>
> 
> @@ -66,12 +66,12 @@ GetRawImage (
>    EFI_HANDLE                    *HandleBuffer;
>    UINTN                         HandleCount;
>    UINTN                         Index;
> -  EFI_FIRMWARE_VOLUME_PROTOCOL  *Fv;
> +  EFI_FIRMWARE_VOLUME2_PROTOCOL  *Fv;
>    UINT32                        AuthenticationStatus;
> 
>    Status = gBS->LocateHandleBuffer (
>                    ByProtocol,
> -                  &gEfiFirmwareVolumeProtocolGuid,
> +                  &gEfiFirmwareVolume2ProtocolGuid,
>                    NULL,
>                    &HandleCount,
>                    &HandleBuffer
> @@ -86,7 +86,7 @@ GetRawImage (
>    for (Index = 0; Index < HandleCount; Index++) {
>      Status = gBS->HandleProtocol(
>                      HandleBuffer[Index],
> -                    &gEfiFirmwareVolumeProtocolGuid,
> +                    &gEfiFirmwareVolume2ProtocolGuid,
>                      (VOID **) &Fv
>                      );
> 
> diff --git a/Vlv2TbltDevicePkg/PciPlatform/PciPlatform.inf
> b/Vlv2TbltDevicePkg/PciPlatform/PciPlatform.inf
> index a296c24b75..ce3140f830 100644
> --- a/Vlv2TbltDevicePkg/PciPlatform/PciPlatform.inf
> +++ b/Vlv2TbltDevicePkg/PciPlatform/PciPlatform.inf
> @@ -1,6 +1,6 @@
>  #/*++
>  #
> -# Copyright (c)  2003  - 2014, Intel Corporation. All rights reserved
> +# Copyright (c)  2003  - 2018, Intel Corporation. All rights reserved
>  #
> 
>  # This program and the accompanying materials are licensed and made
> available under
> 
>  # the terms and conditions of the BSD License that accompanies this
> distribution.
> 
> @@ -42,7 +42,7 @@
>  [Protocols]
>    gEfiPciPlatformProtocolGuid
>    gEfiCpuIoProtocolGuid
> -  gEfiFirmwareVolumeProtocolGuid
> +  gEfiFirmwareVolume2ProtocolGuid
>    gEfiPciRootBridgeIoProtocolGuid
>    gEfiPciIoProtocolGuid
> 
> diff --git a/Vlv2TbltDevicePkg/PlatformPei/BootMode.c
> b/Vlv2TbltDevicePkg/PlatformPei/BootMode.c
> index 95be1c0f28..66a6680e9c 100644
> --- a/Vlv2TbltDevicePkg/PlatformPei/BootMode.c
> +++ b/Vlv2TbltDevicePkg/PlatformPei/BootMode.c
> @@ -1,6 +1,6 @@
>  /** @file
> 
> -  Copyright (c) 2004  - 2014, Intel Corporation. All rights reserved.<BR>
> +  Copyright (c) 2004  - 2018, Intel Corporation. All rights
> + reserved.<BR>
> 
> 
>    This program and the accompanying materials are licensed and made
> available under
> 
>    the terms and conditions of the BSD License that accompanies this
> distribution.
> 
> @@ -29,8 +29,6 @@ Abstract:
>  #include "PlatformBootMode.h"
>  #include <Guid/SetupVariable.h>
> 
> -#include <Guid/BootState.h>
> -
>  //
>  // Priority of our boot modes, highest priority first  // @@ -100,56 +98,6 @@
> CapsulePpiNotifyCallback (
>    return Status;
>  }
> 
> -/**
> -  Check CMOS register bit to determine if previous boot was successful
> -
> -  @param PeiServices    pointer to the PEI Service Table
> -
> -  @retval TRUE          - Previous Boot was success
> -  @retval FALSE         - Previous Boot wasn't success
> -
> -**/
> -BOOLEAN
> -IsPreviousBootSuccessful(
> -  IN CONST EFI_PEI_SERVICES   **PeiServices
> -
> -  )
> -{
> -  EFI_STATUS                      Status;
> -  BOOLEAN                         BootState;
> -  UINTN                           DataSize;
> -  CHAR16                          VarName[] = BOOT_STATE_VARIABLE_NAME;
> -  EFI_PEI_READ_ONLY_VARIABLE2_PPI *PeiVar;
> -
> -  Status = (**PeiServices).LocatePpi (
> -                             PeiServices,
> -                             &gEfiPeiReadOnlyVariable2PpiGuid,
> -                             0,
> -                             NULL,
> -                                (void **)&PeiVar
> -                             );
> -  ASSERT_EFI_ERROR (Status);
> -
> -  //
> -  // Get last Boot State Variable to confirm that it is not a first boot .
> -  //
> -
> -  DataSize = sizeof (BOOLEAN);
> -  Status = PeiVar->GetVariable (
> -                     PeiVar,
> -                     VarName,
> -                     &gEfiBootStateGuid,
> -                     NULL,
> -                     &DataSize,
> -                     &BootState
> -                     );
> -  if (EFI_ERROR (Status) || (BootState == TRUE)) {
> -    return FALSE;
> -  }
> -
> -  DEBUG ((EFI_D_INFO, "Previous boot cycle successfully completed
> handover to OS\n"));
> -  return TRUE;
> -}
>  #ifdef NOCS_S3_SUPPORT
>  EFI_STATUS
>  UpdateBootMode (
> @@ -190,7 +138,7 @@ UpdateBootMode (
>      } // switch (SleepType)
>    }
> 
> -  if (IsFastBootEnabled (PeiServices) && IsPreviousBootSuccessful
> (PeiServices)) {
> +  if (IsFastBootEnabled (PeiServices)) {
>      DEBUG ((EFI_D_INFO, "Prioritizing Boot mode to
> BOOT_WITH_MINIMAL_CONFIGURATION\n"));
>      PrioritizeBootMode (&BootMode,
> BOOT_WITH_MINIMAL_CONFIGURATION);
>    }
> diff --git a/Vlv2TbltDevicePkg/PlatformPei/PlatformPei.inf
> b/Vlv2TbltDevicePkg/PlatformPei/PlatformPei.inf
> index 9c1cd08db5..2ecb347d18 100644
> --- a/Vlv2TbltDevicePkg/PlatformPei/PlatformPei.inf
> +++ b/Vlv2TbltDevicePkg/PlatformPei/PlatformPei.inf
> @@ -1,6 +1,6 @@
>  #
>  #
> -# Copyright (c)  1999  - 2014, Intel Corporation. All rights reserved
> +# Copyright (c)  1999  - 2018, Intel Corporation. All rights reserved
>  #
> 
>  # This program and the accompanying materials are licensed and made
> available under
> 
>  # the terms and conditions of the BSD License that accompanies this
> distribution.
> 
> @@ -74,7 +74,6 @@
>    IA32FamilyCpuPkg/IA32FamilyCpuPkg.dec
>    UefiCpuPkg/UefiCpuPkg.dec
>    CryptoPkg/CryptoPkg.dec
> -  EdkCompatibilityPkg/EdkCompatibilityPkg.dec
> 
>  [LibraryClasses]
>    PeimEntryPoint
> @@ -121,7 +120,6 @@
>    gRecoveryOnDataCdGuid
>    gMfgModeVariableGuid
>    gEfiNormalSetupGuid
> -  gEfiBootStateGuid
>    gEfiVlv2VariableGuid
> 
>  [Pcd.common]
> diff --git a/Vlv2TbltDevicePkg/PlatformPkg.fdf
> b/Vlv2TbltDevicePkg/PlatformPkg.fdf
> index 0d13ad9f56..ff0b32e635 100644
> --- a/Vlv2TbltDevicePkg/PlatformPkg.fdf
> +++ b/Vlv2TbltDevicePkg/PlatformPkg.fdf
> @@ -316,7 +316,6 @@ INF RuleOverride = BINARY
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET
>  INF RuleOverride = BINARY
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/P
> eiSmmControl.inf
>  INF UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
>  INF RuleOverride = BINARY
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/M
> pS3.inf
> -INF
> EdkCompatibilityPkg/Compatibility/AcpiVariableHobOnSmramReserveHobTh
> unk/AcpiVariableHobOnSmramReserveHobThunk.inf
>  !endif
> 
>  # INF RuleOverride = BINARY
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/Pi
> SmmCommunicationPei.inf
> @@ -679,15 +678,7 @@ INF
> MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
>  INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
>  !endif
> 
> -  #
> -  #  ECP
> -  #
> -INF
> EdkCompatibilityPkg/Compatibility/LegacyRegion2OnLegacyRegionThunk/Le
> gacyRegion2OnLegacyRegionThunk.inf
> -INF
> EdkCompatibilityPkg/Compatibility/SmmBaseOnSmmBase2Thunk/SmmBase
> OnSmmBase2Thunk.inf
> -INF
> EdkCompatibilityPkg/Compatibility/SmmBaseHelper/SmmBaseHelper.inf
> -INF
> EdkCompatibilityPkg/Compatibility/SmmAccess2OnSmmAccessThunk/SmmA
> ccess2OnSmmAccessThunk.inf
> -INF
> EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/Smm
> Control2OnSmmControlThunk.inf
> -INF EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk/FvOnFv2Thunk.inf
> +
>    #
>    # SMBIOS
>    #
> diff --git a/Vlv2TbltDevicePkg/PlatformPkgGcc.fdf
> b/Vlv2TbltDevicePkg/PlatformPkgGcc.fdf
> index 847286328a..eeecf9e45b 100644
> --- a/Vlv2TbltDevicePkg/PlatformPkgGcc.fdf
> +++ b/Vlv2TbltDevicePkg/PlatformPkgGcc.fdf
> @@ -272,7 +272,6 @@ INF RuleOverride = BINARY
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET
>  INF RuleOverride = BINARY
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/P
> eiSmmControl.inf
>  INF UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
>  INF RuleOverride = BINARY
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/M
> pS3.inf
> -INF
> EdkCompatibilityPkg/Compatibility/AcpiVariableHobOnSmramReserveHobTh
> unk/AcpiVariableHobOnSmramReserveHobThunk.inf
>  !endif
> 
>  # INF RuleOverride = BINARY
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/Pi
> SmmCommunicationPei.inf
> @@ -635,15 +634,6 @@ INF
> MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
>  INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
>  !endif
> 
> -  #
> -  #  ECP
> -  #
> -INF
> EdkCompatibilityPkg/Compatibility/LegacyRegion2OnLegacyRegionThunk/Le
> gacyRegion2OnLegacyRegionThunk.inf
> -INF
> EdkCompatibilityPkg/Compatibility/SmmBaseOnSmmBase2Thunk/SmmBase
> OnSmmBase2Thunk.inf
> -INF
> EdkCompatibilityPkg/Compatibility/SmmBaseHelper/SmmBaseHelper.inf
> -INF
> EdkCompatibilityPkg/Compatibility/SmmAccess2OnSmmAccessThunk/SmmA
> ccess2OnSmmAccessThunk.inf
> -INF
> EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/Smm
> Control2OnSmmControlThunk.inf
> -INF EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk/FvOnFv2Thunk.inf
>    #
>    # SMBIOS
>    #
> diff --git a/Vlv2TbltDevicePkg/PlatformPkgGccX64.dsc
> b/Vlv2TbltDevicePkg/PlatformPkgGccX64.dsc
> index eb7c205a10..ac401c4826 100644
> --- a/Vlv2TbltDevicePkg/PlatformPkgGccX64.dsc
> +++ b/Vlv2TbltDevicePkg/PlatformPkgGccX64.dsc
> @@ -195,7 +195,6 @@
> 
> PlatformFlashAccessLib|Vlv2TbltDevicePkg/Feature/Capsule/Library/Platfor
> mFlashAccessLib/PlatformFlashAccessLib.inf
> 
> MicrocodeFlashAccessLib|Vlv2TbltDevicePkg/Feature/Capsule/Library/Platfo
> rmFlashAccessLib/PlatformFlashAccessLib.inf
> 
> DisplayUpdateProgressLib|MdeModulePkg/Library/DisplayUpdateProgressLi
> bGraphics/DisplayUpdateProgressLibGraphics.inf
> -
> LanguageLib|EdkCompatibilityPkg/Compatibility/Library/UefiLanguageLib/Ue
> fiLanguageLib.inf
> 
> SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchroniz
> ationLib.inf
> 
> SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementL
> ib/DxeSecurityManagementLib.inf
>    IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
> @@ -475,79 +474,6 @@
> 
> DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgen
> tLib.inf
>  !endif
> 
> -
> -
> ##########################################################
> ######################
> -#
> -# Library Section - list of all EDK/Framework libraries -# -
> ##########################################################
> ######################
> -[Libraries.common]
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/BaseL
> ib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseMemoryL
> ib/BaseMemoryLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePrintLib/
> BasePrintLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseDebugLib
> Null/BaseDebugLibNull.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseIoLibIntri
> nsic/BaseIoLibIntrinsic.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseCacheMa
> intenanceLib/BaseCacheMaintenanceLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciCf8Lib
> /BasePciCf8Lib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciExpres
> sLib/BasePciExpressLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciLibCf8
> /BasePciLibCf8.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciLibPciE
> xpress/BasePciLibPciExpress.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffG
> etEntryPointLib/BasePeCoffGetEntryPointLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib
> /BasePeCoffLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/SmmRuntime
> DxeReportStatusCodeLib/SmmRuntimeDxeReportStatusCodeLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiHobLib/Pei
> HobLib.inf
> -  EdkCompatibilityPkg/Foundation/Ppi/EdkPpiLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.inf
> -
> EdkCompatibilityPkg/Compatibility/Library/UefiLanguageLib/UefiLanguageLi
> b.inf
> -  EdkCompatibilityPkg/Foundation/Guid/EdkGuidLib.inf
> -  EdkCompatibilityPkg/Foundation/Efi/Protocol/EfiProtocolLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/EfiDriverLib.inf
> -  EdkCompatibilityPkg/Foundation/Protocol/EdkProtocolLib.inf
> -
> EdkCompatibilityPkg/Foundation/Framework/Protocol/EdkFrameworkProto
> colLib.inf
> -[Libraries.IA32]
> -  EdkCompatibilityPkg/Foundation/Efi/Guid/EfiGuidLib.inf
> -
> EdkCompatibilityPkg/Foundation/Framework/Guid/EdkFrameworkGuidLib.in
> f
> -  EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiCommonLib.inf
> -  EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/CpuIA32Lib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf
> -  EdkCompatibilityPkg/Foundation/Framework/Ppi/EdkFrameworkPpiLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Pei/Hob/PeiHobLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiServicesTa
> blePointerLibMm7/PeiServicesTablePointerLibMm7.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiMemoryAll
> ocationLib/PeiMemoryAllocationLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiServicesLib
> /PeiServicesLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiReportStat
> usCodeLib/PeiReportStatusCodeLib.inf
> -
> EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/ArchProtocolLib.in
> f
> -
> -  $(PLATFORM_PACKAGE)/Library/MultiPlatformLib/MultiPlatformLib.inf
> -[Libraries.X64]
> -
> -  EdkCompatibilityPkg/Foundation/Efi/Guid/EfiGuidLib.inf
> -
> EdkCompatibilityPkg/Foundation/Framework/Guid/EdkFrameworkGuidLib.in
> f
> -  EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiCommonLib.inf
> -  EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/CpuIA32Lib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf
> -  EdkCompatibilityPkg/Foundation/Framework/Ppi/EdkFrameworkPpiLib.inf
> -
> EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/ArchProtocolLib.in
> f
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/Hob/HobLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/EfiRunt
> imeLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/Dxe/EfiIfrSupportLib/EfiIfrSupportL
> ib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/Print/PrintLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiScriptLib/EfiScriptLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/PrintLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/GraphicsLite/Graphics.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiBootServi
> cesTableLib/UefiBootServicesTableLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeMemoryA
> llocationLib/DxeMemoryAllocationLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiLib/UefiLi
> b.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeHobLib/Dx
> eHobLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiRuntimeS
> ervicesTableLib/UefiRuntimeServicesTableLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeReportSta
> tusCodeLib/DxeReportStatusCodeLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/HiiLib/HiiLib.in
> f
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiDevicePat
> hLib/UefiDevicePathLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiDriverMo
> delLib/UefiDriverModelLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeServicesTa
> bleLib/DxeServicesTableLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/EdkDxeRunti
> meDriverLib/EdkDxeRuntimeDriverLib.inf
> -
> -
> 
> ##########################################################
> ######################
>  #
>  # Pcd Section - list of all EDK II PCD Entries defined by this Platform @@ -
> 865,7 +791,6 @@  [PcdsDynamicHii.common.DEFAULT]
> 
> gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlo
> balVariableGuid|0x0|5 # Variable: L"Timeout"
> 
> gEfiMdePkgTokenSpaceGuid.PcdHardwareErrorRecordLevel|L"HwErrRecSup
> port"|gEfiGlobalVariableGuid|0x0|1 # Variable: L"HwErrRecSupport"
> -
> gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdBootState|L"BootState"
> |gEfiBootStateGuid|0x0|TRUE
> 
>  [PcdsDynamicDefault.common.DEFAULT]
> 
> gEfiMdeModulePkgTokenSpaceGuid.PcdS3BootScriptTablePrivateDataPtr|0x
> 0
> @@ -1048,7 +973,6 @@
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/fT
> PMInitPeim.inf
>    UefiCpuPkg/CpuIoPei/CpuIoPei.inf
>    UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
> 
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/M
> pS3.inf
> -
> EdkCompatibilityPkg/Compatibility/AcpiVariableHobOnSmramReserveHobTh
> unk/AcpiVariableHobOnSmramReserveHobThunk.inf
>  #
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/Pi
> SmmCommunicationPei.inf
> 
>  !if $(RECOVERY_ENABLE)
> @@ -1496,17 +1420,6 @@
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/fT
> PMInitPeim.inf
> 
>  !endif
> 
> -  #
> -  #  ECP
> -  #
> -
> EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/Framewor
> kHiiOnUefiHiiThunk.inf
> -
> EdkCompatibilityPkg/Compatibility/LegacyRegion2OnLegacyRegionThunk/Le
> gacyRegion2OnLegacyRegionThunk.inf
> -
> EdkCompatibilityPkg/Compatibility/SmmBaseOnSmmBase2Thunk/SmmBase
> OnSmmBase2Thunk.inf
> -  EdkCompatibilityPkg/Compatibility/SmmBaseHelper/SmmBaseHelper.inf
> -
> EdkCompatibilityPkg/Compatibility/SmmAccess2OnSmmAccessThunk/SmmA
> ccess2OnSmmAccessThunk.inf
> -
> EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/Smm
> Control2OnSmmControlThunk.inf
> -
> EdkCompatibilityPkg/Compatibility/FrameworkSmmStatusCodeOnPiSmmSta
> tusCodeThunk/FrameworkSmmStatusCodeOnPiSmmStatusCodeThunk.inf
> -  EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk/FvOnFv2Thunk.inf
>    #
>    # SMBIOS
>    #
> diff --git a/Vlv2TbltDevicePkg/PlatformPkgIA32.dsc
> b/Vlv2TbltDevicePkg/PlatformPkgIA32.dsc
> index b2f0d73f6d..7235ac1027 100644
> --- a/Vlv2TbltDevicePkg/PlatformPkgIA32.dsc
> +++ b/Vlv2TbltDevicePkg/PlatformPkgIA32.dsc
> @@ -195,7 +195,6 @@
> 
> PlatformFlashAccessLib|Vlv2TbltDevicePkg/Feature/Capsule/Library/Platfor
> mFlashAccessLib/PlatformFlashAccessLib.inf
> 
> MicrocodeFlashAccessLib|Vlv2TbltDevicePkg/Feature/Capsule/Library/Platfo
> rmFlashAccessLib/PlatformFlashAccessLib.inf
> 
> DisplayUpdateProgressLib|MdeModulePkg/Library/DisplayUpdateProgressLi
> bGraphics/DisplayUpdateProgressLibGraphics.inf
> -
> LanguageLib|EdkCompatibilityPkg/Compatibility/Library/UefiLanguageLib/Ue
> fiLanguageLib.inf
> 
> SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchroniz
> ationLib.inf
> 
> SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementL
> ib/DxeSecurityManagementLib.inf
>    IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
> @@ -283,6 +282,8 @@
>  !endif
>    ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
>    ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
> +
> +
> ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellComma
> ndL
> + ib.inf
> + HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsi
> + ngLib.inf
>    FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
>    SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
>  !if $(FTPM_ENABLE) == TRUE || $(NETWORK_ISCSI_ENABLE) == TRUE @@ -
> 475,79 +476,6 @@
> 
> DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgen
> tLib.inf
>  !endif
> 
> -
> -
> ##########################################################
> ######################
> -#
> -# Library Section - list of all EDK/Framework libraries -# -
> ##########################################################
> ######################
> -[Libraries.common]
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/BaseL
> ib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseMemoryL
> ib/BaseMemoryLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePrintLib/
> BasePrintLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseDebugLib
> Null/BaseDebugLibNull.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseIoLibIntri
> nsic/BaseIoLibIntrinsic.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseCacheMa
> intenanceLib/BaseCacheMaintenanceLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciCf8Lib
> /BasePciCf8Lib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciExpres
> sLib/BasePciExpressLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciLibCf8
> /BasePciLibCf8.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciLibPciE
> xpress/BasePciLibPciExpress.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffG
> etEntryPointLib/BasePeCoffGetEntryPointLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib
> /BasePeCoffLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/SmmRuntime
> DxeReportStatusCodeLib/SmmRuntimeDxeReportStatusCodeLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiHobLib/Pei
> HobLib.inf
> -  EdkCompatibilityPkg/Foundation/Ppi/EdkPpiLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.inf
> -
> EdkCompatibilityPkg/Compatibility/Library/UefiLanguageLib/UefiLanguageLi
> b.inf
> -  EdkCompatibilityPkg/Foundation/Guid/EdkGuidLib.inf
> -  EdkCompatibilityPkg/Foundation/Efi/Protocol/EfiProtocolLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/EfiDriverLib.inf
> -  EdkCompatibilityPkg/Foundation/Protocol/EdkProtocolLib.inf
> -
> EdkCompatibilityPkg/Foundation/Framework/Protocol/EdkFrameworkProto
> colLib.inf
> -[Libraries.IA32]
> -  EdkCompatibilityPkg/Foundation/Efi/Guid/EfiGuidLib.inf
> -
> EdkCompatibilityPkg/Foundation/Framework/Guid/EdkFrameworkGuidLib.in
> f
> -  EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiCommonLib.inf
> -  EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/CpuIA32Lib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf
> -  EdkCompatibilityPkg/Foundation/Framework/Ppi/EdkFrameworkPpiLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Pei/Hob/PeiHobLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiServicesTa
> blePointerLibMm7/PeiServicesTablePointerLibMm7.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiMemoryAll
> ocationLib/PeiMemoryAllocationLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiServicesLib
> /PeiServicesLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiReportStat
> usCodeLib/PeiReportStatusCodeLib.inf
> -
> EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/ArchProtocolLib.in
> f
> -
> -  $(PLATFORM_PACKAGE)/Library/MultiPlatformLib/MultiPlatformLib.inf
> -[Libraries.IA32]
> -
> -  EdkCompatibilityPkg/Foundation/Efi/Guid/EfiGuidLib.inf
> -
> EdkCompatibilityPkg/Foundation/Framework/Guid/EdkFrameworkGuidLib.in
> f
> -  EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiCommonLib.inf
> -  EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/CpuIA32Lib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf
> -  EdkCompatibilityPkg/Foundation/Framework/Ppi/EdkFrameworkPpiLib.inf
> -
> EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/ArchProtocolLib.in
> f
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/Hob/HobLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/EfiRunt
> imeLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/Dxe/EfiIfrSupportLib/EfiIfrSupportL
> ib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/Print/PrintLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiScriptLib/EfiScriptLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/PrintLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/GraphicsLite/Graphics.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiBootServi
> cesTableLib/UefiBootServicesTableLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeMemoryA
> llocationLib/DxeMemoryAllocationLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiLib/UefiLi
> b.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeHobLib/Dx
> eHobLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiRuntimeS
> ervicesTableLib/UefiRuntimeServicesTableLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeReportSta
> tusCodeLib/DxeReportStatusCodeLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/HiiLib/HiiLib.in
> f
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiDevicePat
> hLib/UefiDevicePathLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiDriverMo
> delLib/UefiDriverModelLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeServicesTa
> bleLib/DxeServicesTableLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/EdkDxeRunti
> meDriverLib/EdkDxeRuntimeDriverLib.inf
> -
> -
> 
> ##########################################################
> ######################
>  #
>  # Pcd Section - list of all EDK II PCD Entries defined by this Platform @@ -
> 865,7 +793,6 @@  [PcdsDynamicHii.common.DEFAULT]
> 
> gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlo
> balVariableGuid|0x0|5 # Variable: L"Timeout"
> 
> gEfiMdePkgTokenSpaceGuid.PcdHardwareErrorRecordLevel|L"HwErrRecSup
> port"|gEfiGlobalVariableGuid|0x0|1 # Variable: L"HwErrRecSupport"
> -
> gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdBootState|L"BootState"
> |gEfiBootStateGuid|0x0|TRUE
> 
>  [PcdsDynamicDefault.common.DEFAULT]
> 
> gEfiMdeModulePkgTokenSpaceGuid.PcdS3BootScriptTablePrivateDataPtr|0x
> 0
> @@ -1048,7 +975,6 @@
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/fT
> PMInitPeim.inf
>    UefiCpuPkg/CpuIoPei/CpuIoPei.inf
>    UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
> 
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/M
> pS3.inf
> -
> EdkCompatibilityPkg/Compatibility/AcpiVariableHobOnSmramReserveHobTh
> unk/AcpiVariableHobOnSmramReserveHobThunk.inf
>  #
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/Pi
> SmmCommunicationPei.inf
> 
>  !if $(RECOVERY_ENABLE)
> @@ -1484,17 +1410,6 @@
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/fT
> PMInitPeim.inf
> 
>  !endif
> 
> -  #
> -  #  ECP
> -  #
> -
> EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/Framewor
> kHiiOnUefiHiiThunk.inf
> -
> EdkCompatibilityPkg/Compatibility/LegacyRegion2OnLegacyRegionThunk/Le
> gacyRegion2OnLegacyRegionThunk.inf
> -
> EdkCompatibilityPkg/Compatibility/SmmBaseOnSmmBase2Thunk/SmmBase
> OnSmmBase2Thunk.inf
> -  EdkCompatibilityPkg/Compatibility/SmmBaseHelper/SmmBaseHelper.inf
> -
> EdkCompatibilityPkg/Compatibility/SmmAccess2OnSmmAccessThunk/SmmA
> ccess2OnSmmAccessThunk.inf
> -
> EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/Smm
> Control2OnSmmControlThunk.inf
> -
> EdkCompatibilityPkg/Compatibility/FrameworkSmmStatusCodeOnPiSmmSta
> tusCodeThunk/FrameworkSmmStatusCodeOnPiSmmStatusCodeThunk.inf
> -  EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk/FvOnFv2Thunk.inf
>    #
>    # SMBIOS
>    #
> @@ -1538,9 +1453,9 @@
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/fT
> PMInitPeim.inf
>      MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
>      MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
>      MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
> -    MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
>      NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
>      NetworkPkg/TcpDxe/TcpDxe.inf
> +    MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
>      !if $(NETWORK_IP6_ENABLE) == TRUE
>        NetworkPkg/Ip6Dxe/Ip6Dxe.inf
>        NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.inf
> diff --git a/Vlv2TbltDevicePkg/PlatformPkgX64.dsc
> b/Vlv2TbltDevicePkg/PlatformPkgX64.dsc
> index aa62c07f17..c60e4c70ea 100644
> --- a/Vlv2TbltDevicePkg/PlatformPkgX64.dsc
> +++ b/Vlv2TbltDevicePkg/PlatformPkgX64.dsc
> @@ -195,7 +195,6 @@
> 
> PlatformFlashAccessLib|Vlv2TbltDevicePkg/Feature/Capsule/Library/Platfor
> mFlashAccessLib/PlatformFlashAccessLib.inf
> 
> MicrocodeFlashAccessLib|Vlv2TbltDevicePkg/Feature/Capsule/Library/Platfo
> rmFlashAccessLib/PlatformFlashAccessLib.inf
> 
> DisplayUpdateProgressLib|MdeModulePkg/Library/DisplayUpdateProgressLi
> bGraphics/DisplayUpdateProgressLibGraphics.inf
> -
> LanguageLib|EdkCompatibilityPkg/Compatibility/Library/UefiLanguageLib/Ue
> fiLanguageLib.inf
> 
> SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchroniz
> ationLib.inf
> 
> SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementL
> ib/DxeSecurityManagementLib.inf
>    IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
> @@ -477,79 +476,6 @@
> 
> DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgen
> tLib.inf
>  !endif
> 
> -
> -
> ##########################################################
> ######################
> -#
> -# Library Section - list of all EDK/Framework libraries -# -
> ##########################################################
> ######################
> -[Libraries.common]
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/BaseL
> ib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseMemoryL
> ib/BaseMemoryLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePrintLib/
> BasePrintLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseDebugLib
> Null/BaseDebugLibNull.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseIoLibIntri
> nsic/BaseIoLibIntrinsic.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseCacheMa
> intenanceLib/BaseCacheMaintenanceLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciCf8Lib
> /BasePciCf8Lib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciExpres
> sLib/BasePciExpressLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciLibCf8
> /BasePciLibCf8.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePciLibPciE
> xpress/BasePciLibPciExpress.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffG
> etEntryPointLib/BasePeCoffGetEntryPointLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib
> /BasePeCoffLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/SmmRuntime
> DxeReportStatusCodeLib/SmmRuntimeDxeReportStatusCodeLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiHobLib/Pei
> HobLib.inf
> -  EdkCompatibilityPkg/Foundation/Ppi/EdkPpiLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.inf
> -
> EdkCompatibilityPkg/Compatibility/Library/UefiLanguageLib/UefiLanguageLi
> b.inf
> -  EdkCompatibilityPkg/Foundation/Guid/EdkGuidLib.inf
> -  EdkCompatibilityPkg/Foundation/Efi/Protocol/EfiProtocolLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/EfiDriverLib.inf
> -  EdkCompatibilityPkg/Foundation/Protocol/EdkProtocolLib.inf
> -
> EdkCompatibilityPkg/Foundation/Framework/Protocol/EdkFrameworkProto
> colLib.inf
> -[Libraries.IA32]
> -  EdkCompatibilityPkg/Foundation/Efi/Guid/EfiGuidLib.inf
> -
> EdkCompatibilityPkg/Foundation/Framework/Guid/EdkFrameworkGuidLib.in
> f
> -  EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiCommonLib.inf
> -  EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/CpuIA32Lib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf
> -  EdkCompatibilityPkg/Foundation/Framework/Ppi/EdkFrameworkPpiLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Pei/Hob/PeiHobLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiServicesTa
> blePointerLibMm7/PeiServicesTablePointerLibMm7.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiMemoryAll
> ocationLib/PeiMemoryAllocationLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiServicesLib
> /PeiServicesLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiReportStat
> usCodeLib/PeiReportStatusCodeLib.inf
> -
> EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/ArchProtocolLib.in
> f
> -
> -  $(PLATFORM_PACKAGE)/Library/MultiPlatformLib/MultiPlatformLib.inf
> -[Libraries.X64]
> -
> -  EdkCompatibilityPkg/Foundation/Efi/Guid/EfiGuidLib.inf
> -
> EdkCompatibilityPkg/Foundation/Framework/Guid/EdkFrameworkGuidLib.in
> f
> -  EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiCommonLib.inf
> -  EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/CpuIA32Lib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf
> -  EdkCompatibilityPkg/Foundation/Framework/Ppi/EdkFrameworkPpiLib.inf
> -
> EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/ArchProtocolLib.in
> f
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/Hob/HobLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/EfiRunt
> imeLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/Dxe/EfiIfrSupportLib/EfiIfrSupportL
> ib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/Print/PrintLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/EfiScriptLib/EfiScriptLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/PrintLib.inf
> -  EdkCompatibilityPkg/Foundation/Library/Dxe/GraphicsLite/Graphics.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiBootServi
> cesTableLib/UefiBootServicesTableLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeMemoryA
> llocationLib/DxeMemoryAllocationLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiLib/UefiLi
> b.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeHobLib/Dx
> eHobLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiRuntimeS
> ervicesTableLib/UefiRuntimeServicesTableLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeReportSta
> tusCodeLib/DxeReportStatusCodeLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/HiiLib/HiiLib.in
> f
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiDevicePat
> hLib/UefiDevicePathLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiDriverMo
> delLib/UefiDriverModelLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeServicesTa
> bleLib/DxeServicesTableLib.inf
> -
> EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/EdkDxeRunti
> meDriverLib/EdkDxeRuntimeDriverLib.inf
> -
> -
> 
> ##########################################################
> ######################
>  #
>  # Pcd Section - list of all EDK II PCD Entries defined by this Platform @@ -
> 867,7 +793,6 @@  [PcdsDynamicHii.common.DEFAULT]
> 
> gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlo
> balVariableGuid|0x0|5 # Variable: L"Timeout"
> 
> gEfiMdePkgTokenSpaceGuid.PcdHardwareErrorRecordLevel|L"HwErrRecSup
> port"|gEfiGlobalVariableGuid|0x0|1 # Variable: L"HwErrRecSupport"
> -
> gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdBootState|L"BootState"
> |gEfiBootStateGuid|0x0|TRUE
> 
>  [PcdsDynamicDefault.common.DEFAULT]
> 
> gEfiMdeModulePkgTokenSpaceGuid.PcdS3BootScriptTablePrivateDataPtr|0x
> 0
> @@ -1050,7 +975,6 @@
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/fT
> PMInitPeim.inf
>    UefiCpuPkg/CpuIoPei/CpuIoPei.inf
>    UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
> 
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/M
> pS3.inf
> -
> EdkCompatibilityPkg/Compatibility/AcpiVariableHobOnSmramReserveHobTh
> unk/AcpiVariableHobOnSmramReserveHobThunk.inf
>  #
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/Pi
> SmmCommunicationPei.inf
> 
>  !if $(RECOVERY_ENABLE)
> @@ -1498,17 +1422,6 @@
> $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/fT
> PMInitPeim.inf
> 
>  !endif
> 
> -  #
> -  #  ECP
> -  #
> -
> EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/Framewor
> kHiiOnUefiHiiThunk.inf
> -
> EdkCompatibilityPkg/Compatibility/LegacyRegion2OnLegacyRegionThunk/Le
> gacyRegion2OnLegacyRegionThunk.inf
> -
> EdkCompatibilityPkg/Compatibility/SmmBaseOnSmmBase2Thunk/SmmBase
> OnSmmBase2Thunk.inf
> -  EdkCompatibilityPkg/Compatibility/SmmBaseHelper/SmmBaseHelper.inf
> -
> EdkCompatibilityPkg/Compatibility/SmmAccess2OnSmmAccessThunk/SmmA
> ccess2OnSmmAccessThunk.inf
> -
> EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/Smm
> Control2OnSmmControlThunk.inf
> -
> EdkCompatibilityPkg/Compatibility/FrameworkSmmStatusCodeOnPiSmmSta
> tusCodeThunk/FrameworkSmmStatusCodeOnPiSmmStatusCodeThunk.inf
> -  EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk/FvOnFv2Thunk.inf
>    #
>    # SMBIOS
>    #
> diff --git a/Vlv2TbltDevicePkg/PlatformSmm/PlatformSmm.inf
> b/Vlv2TbltDevicePkg/PlatformSmm/PlatformSmm.inf
> index 69e0a5d990..342661abd6 100644
> --- a/Vlv2TbltDevicePkg/PlatformSmm/PlatformSmm.inf
> +++ b/Vlv2TbltDevicePkg/PlatformSmm/PlatformSmm.inf
> @@ -1,6 +1,6 @@
>  #
>  #
> -# Copyright (c)  1999  - 2014, Intel Corporation. All rights reserved
> +# Copyright (c)  1999  - 2018, Intel Corporation. All rights reserved
>  #
> 
>  # This program and the accompanying materials are licensed and made
> available under
> 
>  # the terms and conditions of the BSD License that accompanies this
> distribution.
> 
> @@ -65,7 +65,7 @@
>    gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode
> 
>  [Protocols]
> -  gEfiSmmBaseProtocolGuid
> +  gEfiSmmBase2ProtocolGuid
>    gEfiSmmIchnDispatchProtocolGuid
>    gEfiGlobalNvsAreaProtocolGuid
>    gEfiSmmSwDispatchProtocolGuid
> @@ -86,7 +86,7 @@
>    gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress
> 
>  [Depex]
> -  gEfiSmmBaseProtocolGuid                 AND
> +  gEfiSmmBase2ProtocolGuid                 AND
>    gEfiSmmAccess2ProtocolGuid               AND
>    gEfiSmmPowerButtonDispatchProtocolGuid  AND
>    gEfiSmmSxDispatchProtocolGuid           AND
> diff --git a/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c
> b/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c
> index f8dc3f14f3..6460b58b4e 100644
> --- a/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c
> +++ b/Vlv2TbltDevicePkg/VlvPlatformInitDxe/IgdOpRegion.c
> @@ -1,7 +1,7 @@
> 
>  /*++
> 
> -Copyright (c)  2011  - 2014, Intel Corporation. All rights reserved
> +Copyright (c)  2011  - 2018, Intel Corporation. All rights reserved
> 
> 
>    This program and the accompanying materials are licensed and made
> available under
> 
>    the terms and conditions of the BSD License that accompanies this
> distribution.
> 
> @@ -48,7 +48,7 @@ Abstract:
> 
>  #include <Protocol/IgdOpRegion.h>
>  #include <Protocol/FrameworkHii.h>
> -#include <Protocol/FirmwareVolume.h>
> +#include <Protocol/FirmwareVolume2.h>
>  #include <Protocol/PlatformGopPolicy.h>  #include <Protocol/PciIo.h>
> #include <Protocol/CpuIo.h> @@ -135,7 +135,7 @@
> GetIntegratedIntelVbtPtr (
>    EFI_PHYSICAL_ADDRESS          VbtAddress = 0;
>    UINTN                         FvProtocolCount;
>    EFI_HANDLE                    *FvHandles;
> -  EFI_FIRMWARE_VOLUME_PROTOCOL  *Fv;
> +  EFI_FIRMWARE_VOLUME2_PROTOCOL  *Fv;
>    UINTN                         Index;
>    UINT32                        AuthenticationStatus;
> 
> @@ -147,7 +147,7 @@ GetIntegratedIntelVbtPtr (
>    *VbtFileBuffer = NULL;
>    Status = gBS->LocateHandleBuffer (
>                    ByProtocol,
> -                  &gEfiFirmwareVolumeProtocolGuid,
> +                  &gEfiFirmwareVolume2ProtocolGuid,
>                    NULL,
>                    &FvProtocolCount,
>                    &FvHandles
> @@ -157,7 +157,7 @@ GetIntegratedIntelVbtPtr (
>      for (Index = 0; Index < FvProtocolCount; Index++) {
>        Status = gBS->HandleProtocol (
>                        FvHandles[Index],
> -                      &gEfiFirmwareVolumeProtocolGuid,
> +                      &gEfiFirmwareVolume2ProtocolGuid,
>                        (VOID **) &Fv
>                        );
>        VbtBufferSize = 0;
> diff --git a/Vlv2TbltDevicePkg/VlvPlatformInitDxe/VlvPlatformInitDxe.inf
> b/Vlv2TbltDevicePkg/VlvPlatformInitDxe/VlvPlatformInitDxe.inf
> index cea185fba8..990ac0fd18 100644
> --- a/Vlv2TbltDevicePkg/VlvPlatformInitDxe/VlvPlatformInitDxe.inf
> +++ b/Vlv2TbltDevicePkg/VlvPlatformInitDxe/VlvPlatformInitDxe.inf
> @@ -2,7 +2,7 @@
>  #
>  #/*++
>  #
> -#  Copyright (c)  1999  - 2014, Intel Corporation. All rights reserved
> +#  Copyright (c)  1999  - 2018, Intel Corporation. All rights reserved
>  #
> 
>  # This program and the accompanying materials are licensed and made
> available under
> 
>  # the terms and conditions of the BSD License that accompanies this
> distribution.
> 
> @@ -65,7 +65,7 @@
>    gIgdOpRegionProtocolGuid
>    gEfiGlobalNvsAreaProtocolGuid
>    gEfiPciIoProtocolGuid
> -  gEfiFirmwareVolumeProtocolGuid
> +  gEfiFirmwareVolume2ProtocolGuid
>    gEfiCpuIoProtocolGuid
> 
>  [Depex]
> @@ -74,6 +74,6 @@
>    gEfiCpuIoProtocolGuid                      AND
>    gEfiDataHubProtocolGuid                 AND
>    gEfiGlobalNvsAreaProtocolGuid       AND
> -  gEfiFirmwareVolumeProtocolGuid   AND
> +  gEfiFirmwareVolume2ProtocolGuid   AND
>    gEfiHiiDatabaseProtocolGuid
> 
> --
> 2.19.1.windows.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-19  9:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-19  8:33 [Patch V2 1/3] Vlv2TbltDevicePkg: ECP Cleanup Zailiang Sun
2019-03-19  8:59 ` Qian, Yi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox