[U-Boot] [PATCH v1 01/12] efi_loader: add stub EFI_DEVICE_PATH_UTILITIES_PROTOCOL

Heinrich Schuchardt
2017-10-04T18:00:11Z

On 10/04/2017 07:13 PM, Heinrich Schuchardt wrote:
> On 09/10/2017 03:22 PM, Rob Clark wrote:
>> From: Leif Lindholm <leif.lindholm@linaro.org>
>>
>> Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
>> ---
>> include/efi_api.h | 30 +++++++++++
>> include/efi_loader.h | 2 +
>> lib/efi_loader/Makefile | 1 +
>> lib/efi_loader/efi_boottime.c | 4 ++
>> lib/efi_loader/efi_device_path_utilities.c | 83 ++++++++++++++++++++++++++++++
>> 5 files changed, 120 insertions(+)
>> create mode 100644 lib/efi_loader/efi_device_path_utilities.c
>>

<snip>

>> diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
>> index 3860feb79b..8bb243d673 100644
>> --- a/lib/efi_loader/efi_boottime.c
>> +++ b/lib/efi_loader/efi_boottime.c
>> @@ -775,6 +775,10 @@ void efi_setup_loaded_image(struct efi_loaded_image *info, struct efi_object *ob
>> obj->protocols[3].protocol_interface =
>> (void *)&efi_device_path_to_text;
>>
>> + obj->protocols[4].guid = &efi_guid_device_path_utilities_protocol;
>> + obj->protocols[4].protocol_interface =
>> + (void *)&efi_device_path_utilities;
>> +

Do not add a protocol that is not properly implemented yet.

Regards

Heinrich