summaryrefslogtreecommitdiff
path: root/util/cbfstool
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2019-06-18 22:02:13 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-07-02 18:48:02 +0000
commit848e30daa1a82f401dad17c9bc93e7d0bb871833 (patch)
treec5eb878dd1694f24f8cf41173cf4eab05feea9bb /util/cbfstool
parent914e6b44bb189123cbc5555368d384c7ebf0e00c (diff)
downloadcoreboot-848e30daa1a82f401dad17c9bc93e7d0bb871833.tar.xz
cbfstool: show "preserved" flag in cbfstool layout output
The flag is useful for updaters to determine which areas to leave alone, such as VPD (vital product data) regions that are set in factory and might contain unique (MAC addresses) or hard to obtain (calibration output) data. It's also useful to see which regions are marked as such. Change-Id: Ic0a229d474b32ac156cfabc917714ce9d339bac6 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33604 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'util/cbfstool')
-rw-r--r--util/cbfstool/cbfstool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c
index cf89b473fa..54b5f6549c 100644
--- a/util/cbfstool/cbfstool.c
+++ b/util/cbfstool/cbfstool.c
@@ -1045,6 +1045,8 @@ static int cbfs_layout(void)
qualifier = "read-only, ";
else if (region_is_modern_cbfs((const char *)current->name))
qualifier = "CBFS, ";
+ else if (current->flags & FMAP_AREA_PRESERVE)
+ qualifier = "preserve, ";
printf(" (%ssize %u, offset %u)\n", qualifier, current->size,
current->offset);