efi_loader: add efi_dp_from_name()
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Wed, 17 Oct 2018 07:32:03 +0000 (16:32 +0900)
committerAlexander Graf <agraf@suse.de>
Sun, 2 Dec 2018 20:59:36 +0000 (21:59 +0100)
commitf1589ffb33a798ddb9391dcbab0ddaea2643c2c8
tree211b185143c326d8a6ad74e1dcb6847accb4f2a1
parentb0c78d8ffc9fe8b0388353d72e9f2b9e9c6107c6
efi_loader: add efi_dp_from_name()

Factor out efi_set_bootdev() and extract efi_dp_from_name().
This function will be used to set a boot device in efishell command.

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