I was trying out GenerateCapsule.py for a project to support coreboot firmware updates via UEFI capsules and hit a sequence of issues with running the script and interpreting its output. Thought it's my bad but looking at the code proved that it needs to be improved in multiple places.
See individual commits for explanation of what they are fixing.
[ ] Breaking change?
No, unless somebody used incorrect UpdateImageIndex equal to zero which can't be used anymore.
These are just fixes, like making GenerateCapsule.py --decode not fail due to querying an invalid parameter.
[ ] Impacts security?
No, I don't think so.
[ ] Includes tests?
No.
How This Was Tested
Manually run BaseTools/BinWrappers/PosixLike/GenerateCapsule with --encode, --decode and --dump-info.
Description
I was trying out
GenerateCapsule.py
for a project to support coreboot firmware updates via UEFI capsules and hit a sequence of issues with running the script and interpreting its output. Thought it's my bad but looking at the code proved that it needs to be improved in multiple places.See individual commits for explanation of what they are fixing.
UpdateImageIndex
equal to zero which can't be used anymore.GenerateCapsule.py --decode
not fail due to querying an invalid parameter.How This Was Tested
Manually run
BaseTools/BinWrappers/PosixLike/GenerateCapsule
with--encode
,--decode
and--dump-info
.Integration Instructions
N/A