FmpDevicePkg/FmpDxe: Use new Fmp dependency libraries
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2696 Remove the orginal Fmp Capsule Dependency implement, and use new FmpDependencyLib, FmpDependencyCheckLib and FmpDependencyDeviceLib APIs instead. A platform can perform the dependency check in a platform specific manner by implementing its own FmpDependencyCheckLib. Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Sean Brogan <sean.brogan@microsoft.com> Signed-off-by: Wei6 Xu <wei6.xu@intel.com> Reviewed-by: Sean Brogan <sean.brogan@microsoft.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -28,6 +28,9 @@
|
||||
#include <Library/FmpDeviceLib.h>
|
||||
#include <Library/FmpPayloadHeaderLib.h>
|
||||
#include <Library/CapsuleUpdatePolicyLib.h>
|
||||
#include <Library/FmpDependencyLib.h>
|
||||
#include <Library/FmpDependencyCheckLib.h>
|
||||
#include <Library/FmpDependencyDeviceLib.h>
|
||||
#include <Protocol/FirmwareManagement.h>
|
||||
#include <Protocol/FirmwareManagementProgress.h>
|
||||
#include <Protocol/VariableLock.h>
|
||||
@@ -66,6 +69,7 @@ typedef struct {
|
||||
CHAR16 *LastAttemptStatusVariableName;
|
||||
CHAR16 *LastAttemptVersionVariableName;
|
||||
CHAR16 *FmpStateVariableName;
|
||||
BOOLEAN DependenciesSatisfied;
|
||||
} FIRMWARE_MANAGEMENT_PRIVATE_DATA;
|
||||
|
||||
///
|
||||
|
Reference in New Issue
Block a user