From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 12 Sep 2012 10:21:29 -0700 Subject: [U-Boot] [PATCH v2 6/7] gpt: Support for new "gpt" command In-Reply-To: <1347461446-32097-7-git-send-email-l.majewski@samsung.com> References: <1345795995-24656-1-git-send-email-l.majewski@samsung.com> <1347461446-32097-1-git-send-email-l.majewski@samsung.com> <1347461446-32097-7-git-send-email-l.majewski@samsung.com> Message-ID: <5050C499.1060201@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Signed-off-by: Kyungmin Park [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