]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: check lowest supported version
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Wed, 7 Jun 2023 05:41:55 +0000 (14:41 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 8 Jun 2023 07:20:36 +0000 (09:20 +0200)
commit6ab7a6853f0102457598145ebbcfc822083d50cd
tree2ac78204f854fad3bd6cfce5f19d328f2b4e19bb
parent25dc7d5aedfef310a7e49b37e2556dc84b79cb00
efi_loader: check lowest supported version

The FMP Payload Header which EDK II capsule generation scripts
insert has a firmware version.
This commit reads the lowest supported version stored in the
device tree, then check if the firmware version in FMP payload header
of the ongoing capsule is equal or greater than the
lowest supported version. If the firmware version is lower than
lowest supported version, capsule update will not be performed.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
lib/efi_loader/efi_firmware.c