tianocore / edk2

EDK II
https://github.com/tianocore/tianocore.github.io/wiki/EDK-II
Other
4.41k stars 2.4k forks source link

Fixes for `GenerateCapsule.py` #5807

Closed SergiiDmytruk closed 2 weeks ago

SergiiDmytruk commented 4 weeks ago

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.

How This Was Tested

Manually run BaseTools/BinWrappers/PosixLike/GenerateCapsule with --encode, --decode and --dump-info.

Integration Instructions

N/A