]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: fix efi_dp_from_file()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 13 May 2023 08:36:21 +0000 (10:36 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 13 May 2023 09:09:51 +0000 (11:09 +0200)
commit63f8309e524ae39dee6498e3e84b2e37cf31f7fe
tree19719507f0910d6a23ec5a92b58b828527ef4134
parentfbdf36c2939721e6f6a462294995dd4ab7e0215d
efi_loader: fix efi_dp_from_file()

* When called from efi_dp_from_name() we miss to append the filename
  for non-block devices.
* expand_media_path() could be simplified by using efi_dp_from_file to
  prepend the device path of the boot device.

This can be avoided by passing a device path to efi_dp_from_file() instead
of a block device descriptor and a partition number.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
cmd/bootefi.c
include/efi_loader.h
lib/efi_loader/efi_bootmgr.c
lib/efi_loader/efi_device_path.c