]> git.proxmox.com Git - mirror_edk2.git/commitdiff
FatPkg/FatPei: Remove PcdFrameworkCompatibilitySupport usage
authorDandan Bi <dandan.bi@intel.com>
Sun, 28 Apr 2019 08:28:08 +0000 (16:28 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 9 May 2019 01:42:54 +0000 (09:42 +0800)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1464

Currently Framework compatibility is not needed and
PcdFrameworkCompatibilitySupport will be removed from edk2.
So remove the usage of this PCD firstly.

Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
FatPkg/FatPei/FatLiteApi.c
FatPkg/FatPei/FatPei.inf

index 0bf6ddae6a4f9202c54014151274d3bc64044e8a..b9f883b9e03c57c656d45e7cec411189a3623251 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   FAT recovery PEIM entry point, Ppi Functions and FAT Api functions.\r
 \r
-Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>\r
 \r
 SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
@@ -431,10 +431,6 @@ GetRecoveryCapsuleInfo (
     return Status;\r
   }\r
 \r
-  if (FeaturePcdGet (PcdFrameworkCompatibilitySupport)) {\r
-    CapsuleInstance = CapsuleInstance + 1;\r
-  }\r
-\r
   if ((CapsuleInstance == 0) || (CapsuleInstance > NumberRecoveryCapsules)) {\r
     return EFI_NOT_FOUND;\r
   }\r
@@ -559,10 +555,6 @@ LoadRecoveryCapsule (
     return Status;\r
   }\r
 \r
-  if (FeaturePcdGet (PcdFrameworkCompatibilitySupport)) {\r
-    CapsuleInstance = CapsuleInstance + 1;\r
-  }\r
-\r
   if ((CapsuleInstance == 0) || (CapsuleInstance > NumberRecoveryCapsules)) {\r
     return EFI_NOT_FOUND;\r
   }\r
index b554aae0403bf1097d0484047dec2d4ea6c0b5f8..d3466db9bf9ef0683242353823248faae0bf022c 100644 (file)
   gEfiPeiVirtualBlockIo2PpiGuid                 ## SOMETIMES_CONSUMES PPI_NOTIFY\r
   gEfiPeiDeviceRecoveryModulePpiGuid            ## SOMETIMES_PRODUCES\r
 \r
-\r
-[FeaturePcd]\r
-  gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport         ## CONSUMES\r
-\r
 [Pcd]\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdRecoveryFileName         ## CONSUMES\r
 \r