summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e8619f8)
Current code return 1 when LSV check is not required,
but 1 LSV will make 0 Version capsule image update failed.
0 LSV is valid, this patch updates the code to return 0 when
LSV check is not required
We can see even the DEFAULT_LOWESTSUPPORTEDVERSION is 0.
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
// Get the LowestSupportedVersion.\r
//\r
\r
// Get the LowestSupportedVersion.\r
//\r
\r
- DeviceLibLowestSupportedVersion = DEFAULT_LOWESTSUPPORTEDVERSION;\r
- ReturnLsv = PcdGet32 (PcdFmpDeviceBuildTimeLowestSupportedVersion);\r
if (!IsLowestSupportedVersionCheckRequired ()) {\r
if (!IsLowestSupportedVersionCheckRequired ()) {\r
+ //\r
+ // Any Version can pass the 0 LowestSupportedVersion check.\r
+ //\r
+ return 0;\r
+ ReturnLsv = PcdGet32 (PcdFmpDeviceBuildTimeLowestSupportedVersion);\r
+\r
//\r
// Check the FmpDeviceLib\r
//\r
//\r
// Check the FmpDeviceLib\r
//\r