[U-Boot] [PATCH v2 05/21] efi_loader: add device-path utils

Simon Glass sjg at chromium.org
Tue Sep 12 12:30:11 UTC 2017


Hi Rob,

On 10 September 2017 at 05:21, Rob Clark <robdclark at gmail.com> wrote:
> Helpers to construct device-paths from devices, partitions, files, and
> for parsing and manipulating device-paths.
>
> For non-legacy devices, this will use u-boot's device-model to construct
> device-paths which include bus hierarchy to construct device-paths.  For
> legacy devices we still fake it, but slightly more convincingly.
>
> Signed-off-by: Rob Clark <robdclark at gmail.com>
> ---
>  include/efi_api.h                |  10 +
>  include/efi_loader.h             |  26 ++
>  lib/efi_loader/Makefile          |   2 +-
>  lib/efi_loader/efi_boottime.c    |  13 +-
>  lib/efi_loader/efi_device_path.c | 563 +++++++++++++++++++++++++++++++++++++++
>  5 files changed, 611 insertions(+), 3 deletions(-)
>  create mode 100644 lib/efi_loader/efi_device_path.c

Since this is new code we should not need the ifdef CONFIG_BLK,
DM_MMC, etc. here, right?

The deadline for CONFIG_BLK has been set as 2018.05.

Also can we add some simple unit tests for this code somewhere?

Regards,
Simon


More information about the U-Boot mailing list