efi_loader: bootmgr: add load option helper functions
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Mon, 5 Nov 2018 09:06:41 +0000 (18:06 +0900)
committerAlexander Graf <agraf@suse.de>
Sun, 2 Dec 2018 23:17:45 +0000 (00:17 +0100)
commit1a82b3413cb577cd52cf8a1dc22dd306e4ce0772
treead61ae43a96fa79255afa4206f94b2462ddbe9ee
parent2419b161cc083c4927c2ee0582ccc93d1d54b3b0
efi_loader: bootmgr: add load option helper functions

In this patch, helper functions for an load option variable (BootXXXX)
are added:
* efi_deserialize_load_option(): parse a string into load_option data
(renamed from parse_load_option and exported)
* efi_serialize_load_option(): convert load_option data into a string

Those functions will be used to implement efishell command.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
include/efi_loader.h
lib/efi_loader/efi_bootmgr.c