flashmap: Add FMAP_AREA_PRESERVE in area flags
Many projects started their initial builds without knowing that some
sections must be preserved when being updated. This may be solved by
adding section name to 'preserved' list in firmware updater (for
instance, CL:1239797), or include that section as sub area of
However, there are problems in both solution. For example, installing an
older image will run old updater, which will not preserve the new names.
Also, if there are multiple sections must be preserved (and not
contiguous - see CL:1493629) there will be problems.
Additionally, changing FMAP layout usually causes more problems.
As a result, adding the description in FMAP area would be the better
idea. The new FMAP_AREA_PRESERVE is a suggestion for updater to preserve
this section if possible. Programs constructing FMAP must define its own
way to add such attribute.
TEST=sudo emerge flashmap
Commit-Ready: ChromeOS CL Exonerator Bot <email@example.com>
Tested-by: Hung-Te Lin <firstname.lastname@example.org>
Reviewed-by: Duncan Laurie <email@example.com>
3 files changed