MdeModulePkg/CdExpress: Remove PcdFrameworkCompatibilitySupport usage
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: Hao Wu <hao.a.wu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
# finds whether there is Recovery data in the device. If it finds recovery
|
# finds whether there is Recovery data in the device. If it finds recovery
|
||||||
# data, it will install Device Recovery Module PPI.
|
# data, it will install Device Recovery Module PPI.
|
||||||
#
|
#
|
||||||
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
# Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
#
|
#
|
||||||
@ -58,9 +58,6 @@
|
|||||||
gEfiPeiVirtualBlockIo2PpiGuid
|
gEfiPeiVirtualBlockIo2PpiGuid
|
||||||
gEfiPeiDeviceRecoveryModulePpiGuid ## PRODUCES
|
gEfiPeiDeviceRecoveryModulePpiGuid ## PRODUCES
|
||||||
|
|
||||||
[FeaturePcd]
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport ## CONSUMES
|
|
||||||
|
|
||||||
[Pcd]
|
[Pcd]
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdRecoveryFileName ## CONSUMES
|
gEfiMdeModulePkgTokenSpaceGuid.PcdRecoveryFileName ## CONSUMES
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Source file for CD recovery PEIM
|
Source file for CD recovery PEIM
|
||||||
|
|
||||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
@ -587,10 +587,6 @@ GetRecoveryCapsuleInfo (
|
|||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FeaturePcdGet (PcdFrameworkCompatibilitySupport)) {
|
|
||||||
CapsuleInstance = CapsuleInstance + 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((CapsuleInstance == 0) || (CapsuleInstance > NumberRecoveryCapsules)) {
|
if ((CapsuleInstance == 0) || (CapsuleInstance > NumberRecoveryCapsules)) {
|
||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
@ -647,10 +643,6 @@ LoadRecoveryCapsule (
|
|||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FeaturePcdGet (PcdFrameworkCompatibilitySupport)) {
|
|
||||||
CapsuleInstance = CapsuleInstance + 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((CapsuleInstance == 0) || (CapsuleInstance > NumberRecoveryCapsules)) {
|
if ((CapsuleInstance == 0) || (CapsuleInstance > NumberRecoveryCapsules)) {
|
||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user