]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: use efi_update_capsule_firmware() for capsule on disk
authorMasami Hiramatsu <masami.hiramatsu@linaro.org>
Wed, 16 Feb 2022 06:15:42 +0000 (15:15 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 26 Feb 2022 06:37:00 +0000 (07:37 +0100)
commit7fac3da2fae85dcc9c617fc255ac1ac211ef345b
tree3112466395b2a39f706866029d9fb4e33ddf28d1
parentea227f0c2008cfb8b18f73a558ff026caed9db23
efi_loader: use efi_update_capsule_firmware() for capsule on disk

Since the efi_update_capsule() represents the UpdateCapsule() runtime
service, it has to handle the capsule flags and update ESRT. However
the capsule-on-disk doesn't need to care about such things.

Thus, the capsule-on-disk should use the efi_capsule_update_firmware()
directly instead of calling efi_update_capsule().

This means the roles of the efi_update_capsule() and capsule-on-disk
are different. We have to keep the efi_update_capsule() for providing
runtime service API at boot time.

Suggested-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_capsule.c