[PATCH v2 6/7] tools: add genguid tool

Caleb Connolly caleb.connolly at linaro.org
Wed May 29 21:02:10 CEST 2024


Hi Simon,

On 29/05/2024 18:30, Simon Glass wrote:
> Hi Caleb,
> 
> On Wed, 29 May 2024 at 08:49, Caleb Connolly <caleb.connolly at linaro.org> wrote:
>>
>> Add a tool that can generate GUIDs that match those generated internally
>> by U-Boot for capsule update fw_images.
>>
>> Dynamic UUIDs in U-Boot work by taking a namespace UUID and hashing it
>> with the board model, compatible, and fw_image name.
>>
>> This tool accepts the same inputs and will produce the same GUID as
>> U-Boot would at runtime.
>>
>> Signed-off-by: Caleb Connolly <caleb.connolly at linaro.org>
>> ---
>>   tools/Makefile  |   3 ++
>>   tools/genguid.c | 154 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>>   2 files changed, 157 insertions(+)
> 
> Where is this tool used? Can you add a man page and test?

It currently doesn't have any users, it just allows for pre-generating 
GUIDs ahead of time for a given board. It might be hooked up to vendor 
tooling or some usecase like that.

I've somehow escaped learning Groff before now heh, I can give it a go 
and write a test.
> 
> Regards,
> Simon

-- 
// Caleb (they/them)


More information about the U-Boot mailing list