audk/FmpDevicePkg/FmpDxe
Michael Kubacki b96b44feab FmpDevicePkg/FmpDxe: Call FmpDeviceLib WithStatus() functions
Commit 6ad819c introduced two new functions in FmpDeviceLib:
1. FmpDeviceCheckImageWithStatus ()
2. FmpDeviceSetImageWithStatus ()

These functions allow an FmpDeviceLib implementation to return a
Last Attempt Status code value within the Device Library range from
LAST_ATTEMPT_STATUS_DEVICE_LIBRARY_MIN_ERROR_CODE_VALUE to
LAST_ATTEMPT_STATUS_DEVICE_LIBRARY_MAX_ERROR_CODE_VALUE.

To maintain backward compatibility, commit 6ad819c did not update
the FmpDxe driver to invoke these functions. FmpDeviceLib instances
should update their FmpDeviceCheckImage () function to simply call
FmpDeviceCheckImageWithStatus (). Similarly, FmpDeviceSetImage ()
should simply call FmpDeviceSetImageWithStatus (). This is
demonstrated in the implementation of these functions in
FmpDevicePkg/Library/FmpDeviceLibNull/FmpDeviceLib.c. By doing so,
the library can remain compatible with FmpDxe implementations before
and after this transition.

This commit updates FmpDxe to call the WithStatus () version of
these functions enabling the Last Attempt Status code returned to
be accessible to FmpDxe.

Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Cc: Wei6 Xu <wei6.xu@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Wei6 Xu <wei6.xu@intel.com>
Acked-by: Liming Gao <gaoliming@byosoft.com.cn>
2020-11-10 01:32:43 +00:00
..
DetectTestKey.c FmpDevicePkg/FmpDxe: Improve all DEBUG() messages 2019-08-15 17:22:24 +08:00
FmpDxe.c FmpDevicePkg/FmpDxe: Call FmpDeviceLib WithStatus() functions 2020-11-10 01:32:43 +00:00
FmpDxe.h FmpDevicePkg/FmpDxe: Add check image path Last Attempt Status capability 2020-10-28 06:05:52 +00:00
FmpDxe.inf FmpDevicePkg/FmpDxe: Use new Fmp dependency libraries 2020-05-15 06:11:44 +00:00
FmpDxe.uni FmpDevicePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:00 -07:00
FmpDxeExtra.uni FmpDevicePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:00 -07:00
FmpDxeLib.inf FmpDevicePkg/FmpDxe: Use new Fmp dependency libraries 2020-05-15 06:11:44 +00:00
VariableSupport.c FmpDevicePkg/FmpDxe: Remove use of CatSprint() 2019-08-15 17:22:24 +08:00
VariableSupport.h FmpDevicePkg/FmpDxe: Different variable for each FMP Descriptor 2019-08-15 17:22:23 +08:00