diff options
author | Simon Glass <sjg@chromium.org> | 2023-02-12 17:11:15 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-03-08 11:38:48 -0800 |
commit | 9dbb02b9d124e03a141de1244c8b4f4843d58840 (patch) | |
tree | 34d2b3caae1d50c2ab29786a6e613fdd2041b49d /tools/binman/entry.py | |
parent | 139c464c2ac5027b200ef9b4a66024a9daa39969 (diff) |
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>
Diffstat (limited to 'tools/binman/entry.py')
-rw-r--r-- | tools/binman/entry.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py index 5eacc5fa6c4..fd617e4f15f 100644 --- a/tools/binman/entry.py +++ b/tools/binman/entry.py @@ -100,6 +100,10 @@ class Entry(object): appear in the map optional (bool): True if this entry contains an optional external blob overlap (bool): True if this entry overlaps with others + preserve (bool): True if this entry should be preserved when updating + firmware. This means that it will not be changed by the update. + This is just a signal: enforcement of this is up to the updater. + This flag does not automatically propagate down to child entries. """ fake_dir = None @@ -148,6 +152,7 @@ class Entry(object): self.overlap = False self.elf_base_sym = None self.offset_from_elf = None + self.preserve = False @staticmethod def FindEntryClass(etype, expanded): @@ -310,6 +315,8 @@ class Entry(object): self.offset_from_elf = fdt_util.GetPhandleNameOffset(self._node, 'offset-from-elf') + self.preserve = fdt_util.GetBool(self._node, 'preserve') + def GetDefaultFilename(self): return None |