cgpt: add LIST/ALL debug options

Improve the debug command to accept two new subcommands "LIST" and
"ALL".  "LIST" dumps all the layouts that are supported.  "ALL" dumps
all layouts in one go.  This makes it a lot easier to look at all the
settings at once without having to manually type in the layouts.

TEST=`./build_library/ debug ../overlays/overlay-ninja/scripts/disk_layout.json ALL` shows everything useful

Change-Id: Ibe71d4310dafbd55cb69d85e5a7a431b490d3904
Tested-by: Mike Frysinger <>
Reviewed-by: Michael Mortensen <>
1 file changed