diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2020-11-30 18:12:16 +0900 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-12-03 21:22:50 +0100 |
commit | 450596f2ac3fd1425b33d02dc38b37ee3f3d2492 (patch) | |
tree | e88327f5077d8f970fb15ec40ddff2f62cfb7563 /tools/mkeficapsule.c | |
parent | fab430be2f48a61eea470468ec57b0454707e2b4 (diff) |
test/py: efi_capsule: test for FIT image capsule
The test can run on sandbox build and it attempts to execute a firmware
update via a capsule-on-disk, using a FIT image capsule,
CONFIG_EFI_CAPSULE_FIT.
To run this test successfully, you need configure U-Boot specifically;
See test_capsule_firmware.py for requirements, and hence it won't run
on Travis CI, at least, for now.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Diffstat (limited to 'tools/mkeficapsule.c')
-rw-r--r-- | tools/mkeficapsule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/mkeficapsule.c b/tools/mkeficapsule.c index 426038ea27..3f8bc7009b 100644 --- a/tools/mkeficapsule.c +++ b/tools/mkeficapsule.c @@ -98,7 +98,8 @@ static int create_fwbin(char *path, char *bin, efi_guid_t *guid, } header.capsule_guid = efi_guid_fm_capsule; header.header_size = sizeof(header); - header.flags = CAPSULE_FLAGS_PERSIST_ACROSS_RESET; /* TODO */ + /* TODO: The current implementation ignores flags */ + header.flags = CAPSULE_FLAGS_PERSIST_ACROSS_RESET; header.capsule_image_size = sizeof(header) + sizeof(capsule) + sizeof(u64) + sizeof(image) |