]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: return binary from efi_dp_from_lo()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 26 Apr 2024 14:13:19 +0000 (16:13 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 10 Jun 2024 09:43:36 +0000 (11:43 +0200)
commitb34528ebadf0d6401895d459e9968a660a816cfe
tree896dd14f1a0ef6790fff3a6ac46e895231fba8d5
parentc9463859500c0db85a3e5a0a8e347fcb35e54aae
efi_loader: return binary from efi_dp_from_lo()

For finding distro supplied device-trees we need to know from which device
we are booting. This can be identified via the device-path of the binary.

Up to now efi_dp_from_lo() only could return the initrd or fdt device-path.
Allow returning the binary device-path, too.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_device_path.c