[U-Boot] [PATCH v2 6/7] gpt: Support for new "gpt" command

Tom Rini
2012-09-12T17:21:29Z

On 09/12/2012 07:50 AM, Lukasz Majewski wrote:
> New command - "gpt" is supported. It restores the GPT partition table.
> It looks into the "partitions" environment variable for partitions definition.
> It can be enabled at target configuration file with CONFIG_CMD_GPT.
> Simple UUID generator has been implemented. It uses the the gd->start_addr_sp
> for entrophy pool. Moreover the pool address is used as crc32 seed.
>
> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
[snip]
> + /* allocate remaining memory in last partition */
> + if (i != parts - 1) {
> + gpt_e[i].ending_lba =
> + cpu_to_le64(offset + size[i] - 1);
> + } else {
> + gpt_e[i].ending_lba = gpt_h->last_usable_lba;
> + }

Extra curly braces. That's all I've seen in this patch however, so
getting close :)

--
Tom