
On Fri, 26 Feb 2021 at 13:17, Farhan Ali farhan.ali@broadcom.com wrote:
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
Changes for v2:
- Checked for argv[4] existence before calling do_get_gpt_info
- Added missing update to doc/README.gpt
cmd/gpt.c | 46 ++++++++++++++++++++++++++++++++++++++-------- doc/README.gpt | 17 +++++++++++++++++ 2 files changed, 55 insertions(+), 8 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org