0223bdd4e4
FmpDevicePkg: Add DECLARE_LENGTH opcode of dependency expression
...
To avoid messy parsing of the Depex section of a Capsule, it would
be a lot easier for everyone involved if we preceded the Capsule Depex
Section with a length declaration. It provides simple bounds checking
to avoid having to parse the op-codes, but in the case of a malformed
depex being parsed, avoid other issues which can be messy.
REF: UEFI spec 2.10 Table 23.4
Signed-off-by: Yi Li <yi1.li@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Wei6 Xu <wei6.xu@intel.com >
Reviewed-by: Wei6 Xu <wei6.xu@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2024-01-19 06:47:46 +00:00
45ce0a67bb
FmpDevicePkg: Apply uncrustify changes
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737
Apply uncrustify changes to .c/.h files in the FmpDevicePkg package
Cc: Andrew Fish <afish@apple.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2021-12-07 17:24:28 +00:00
9c721071d3
FmpDevicePkg: Change OPTIONAL keyword usage style
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3760
Update all use of ', OPTIONAL' to ' OPTIONAL,' for function params.
Cc: Andrew Fish <afish@apple.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Michael Kubacki <michael.kubacki@microsoft.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2021-12-07 17:24:28 +00:00
207414cba4
FmpDevicePkg: Add Last Attempt Status support to dependency libs
...
The FMP dependency libraries are leveraged during firmware update
to check for dependencies required to update the image.
This change adds granular Last Attempt Status code support to these
services so failures can be more easily observed during the firmware
update process via Last Attempt Status codes.
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 >
Acked-by: Liming Gao <gaoliming@byosoft.com.cn >
Reviewed-by: Wei6 Xu <wei6.xu@intel.com >
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com >
2020-10-28 06:05:52 +00:00
8665226464
FmpDevicePkg/FmpDependencyLib: Handle version string overflow
...
This change recognizes the condition of the DEPEX version string
extending beyond the end of the dependency expression as an error.
Cc: Liming Gao <liming.gao@intel.com >
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: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Guomin Jiang <guomin.jiang@intel.com >
Reviewed-by: Wei6 Xu <wei6.xu@intel.com >
2020-08-07 02:30:01 +00:00
c2db6a86a2
FmpDevicePkg/FmpDependencyLib: Fix "exression" typo
...
Cc: Liming Gao <liming.gao@intel.com >
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: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Guomin Jiang <guomin.jiang@intel.com >
Reviewed-by: Wei6 Xu <wei6.xu@intel.com >
2020-08-07 02:30:01 +00:00
ef0460b852
FmpDevicePkg/FmpDependencyLib: Correct ValidateDependency() documentation
...
Modifies the return value documentation to state that the BOOLEAN
value indicates whether a given dependency expression is valid
not a capsule.
Cc: Liming Gao <liming.gao@intel.com >
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: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Guomin Jiang <guomin.jiang@intel.com >
Reviewed-by: Wei6 Xu <wei6.xu@intel.com >
2020-08-07 02:30:01 +00:00
a93bf06b1d
FmpDevicePkg: Add FmpDependency library class and BASE instance
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2696
This library provides services to evaluate Fmp capsule dependency
expression, validate dependency expression and get dependency
from firmware image.
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 >
2020-05-15 06:11:44 +00:00