[U-Boot] [PATCH v1 02/12] efi_loader: add stub HII protocols

Heinrich Schuchardt xypron.glpk at gmx.de
Wed Oct 4 17:59:03 UTC 2017


On 10/04/2017 07:45 PM, Heinrich Schuchardt wrote:
> On 09/10/2017 03:22 PM, Rob Clark wrote:
>> From: Leif Lindholm <leif.lindholm at linaro.org>
>>
>> EfiHiiConfigRoutingProtocolGuid
>> EfiHiiDatabaseProtocol
>> EfiHiiStringProtocol
> 
> Please, provide a proper commit message.
> 
> Resolve all issues reported by checkpatch.
> 
>>
>> Signed-off-by: Leif Lindholm <leif.lindholm at linaro.org>
>> ---
>>  include/efi_api.h             | 204 ++++++++++++++++++++++++++++
>>  include/efi_loader.h          |   6 +
>>  lib/efi_loader/Makefile       |   2 +-

<snip>

>> diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
>> index 8bb243d673..4d1a16051b 100644
>> --- a/lib/efi_loader/efi_boottime.c
>> +++ b/lib/efi_loader/efi_boottime.c
>> @@ -779,6 +779,15 @@ void efi_setup_loaded_image(struct efi_loaded_image *info, struct efi_object *ob
>>  	obj->protocols[4].protocol_interface =
>>  		(void *)&efi_device_path_utilities;
>>  
>> +	obj->protocols[5].guid = &efi_guid_hii_string_protocol;
>> +	obj->protocols[5].protocol_interface = (void *)&efi_hii_string;
>> +
>> +	obj->protocols[6].guid = &efi_guid_hii_database_protocol;
>> +	obj->protocols[6].protocol_interface = (void *)&efi_hii_database;
>> +
>> +	obj->protocols[7].guid = &efi_guid_hii_config_routing_protocol;
>> +	obj->protocols[7].protocol_interface = (void *)&efi_hii_config_routing;
>> +

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

Regards

Heinrich


More information about the U-Boot mailing list