binman: Support marking FMAP areas as preserved

Add an entry flag called 'preserve' to indicate that an entry should be
preserved by firmware updates. Propagate this to FMAP too.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2023-02-12 17:11:15 -07:00
parent 139c464c2a
commit 9dbb02b9d1
7 changed files with 38 additions and 3 deletions

View File

@@ -45,6 +45,9 @@ FMAP_AREA_NAMES = (
'flags',
)
# Flags supported by areas (bits 2:0 are unused so not included here)
FMAP_AREA_PRESERVE = 1 << 3 # Preserved by any firmware updates
# These are the two data structures supported by flashrom, a header (which
# appears once at the start) and an area (which is repeated until the end of
# the list of areas)