]> git.sur5r.net Git - u-boot/commit
efi_loader: refactor boot device and loaded_image handling
authorRob Clark <robdclark@gmail.com>
Wed, 13 Sep 2017 22:05:33 +0000 (18:05 -0400)
committerAlexander Graf <agraf@suse.de>
Wed, 20 Sep 2017 08:36:56 +0000 (10:36 +0200)
commit95c5553ea268144056c4bafc318b9e8b5c096a6c
tree8b080f2e00b009421ebebe5a27cdd66b3ad70404
parente15fc33548acda1b975bad172dc19033382dc211
efi_loader: refactor boot device and loaded_image handling

Get rid of the hacky fake boot-device and duplicate device-path
constructing (which needs to match what efi_disk and efi_net do).
Instead convert over to use efi_device_path helpers to construct
device-paths, and use that to look up the actual boot device.

Also, extract out a helper to plug things in properly to the
loaded_image.  In a following patch we'll want to re-use this in
efi_load_image() to handle the case of loading an image from a
file_path.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
cmd/bootefi.c
include/efi_loader.h
lib/efi_loader/efi_boottime.c
lib/efi_loader/efi_net.c