cmd: gpt: Add option to write GPT partitions to environment variable
authorFarhan Ali <farhan.ali@broadcom.com>
Fri, 26 Feb 2021 18:17:33 +0000 (10:17 -0800)
committerTom Rini <trini@konsulko.com>
Tue, 4 May 2021 16:52:46 +0000 (12:52 -0400)
commit653cd92d66771cf1fbd1b7612b06a0874d316654
tree660a3ba2c59d39c3115a229be57e780d50294212
parent8c72842af5f81826b344c26b1c28c3122edb909e
cmd: gpt: Add option to write GPT partitions to environment variable

This change would enhance the existing 'gpt read' command to allow
(optionally) writing of the read GPT partitions to an environment
variable in the UBOOT partitions layout format. This would allow users
to easily change the overall partition settings by editing said variable
and then using the variable in the 'gpt write' and 'gpt verify' commands.

Signed-off-by: Farhan Ali <farhan.ali@broadcom.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Corneliu Doban <cdoban@broadcom.com>
Cc: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Cc: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/gpt.c
doc/README.gpt