efi_loader: variable: support APPEND_WRITE
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Fri, 6 Sep 2019 06:09:52 +0000 (15:09 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 20 Sep 2019 18:09:18 +0000 (20:09 +0200)
commit6d2f27c5fd60c1310884c873350f1edc7d831bb0
tree5c76f321f07406d693369ddf45332a5f0d2da88c
parent7dc10c933c5d95d173dd17c8c69be8585146c4c8
efi_loader: variable: support APPEND_WRITE

If EFI_VARIABLE_APPEND_WRITE is specified in attributes at
efi_set_variable(), specified data will be appended to the variable's
original value. Attributes other than APPEND_WRITE should not be
modified.

With this patch, APPEND_WRITE test in 'variables' selftest will pass.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
lib/efi_loader/efi_variable.c