OSDN Git Service

build_image: add padding to match partition size
authorSami Tolvanen <samitolvanen@google.com>
Thu, 1 Sep 2016 22:58:35 +0000 (15:58 -0700)
committerSami Tolvanen <samitolvanen@google.com>
Fri, 2 Sep 2016 17:20:02 +0000 (10:20 -0700)
commit433905f50e8ec9c7f67e89ca4e56bcb2b0ca7b5e
treee83585ae67acb270386d06c53410065d23b63f38
parenta5b02ff1ef69092f83782e87a4027c8fdfd72497
build_image: add padding to match partition size

For some partition sizes, we currently build an image that's 1-2
blocks smaller than the actual partition, which causes fs_mgr to
not find metadata. This change adds padding to FEC metadata that
correctly positions the metadata header at the end.

Bug: 28865197
Change-Id: Ie0e044715a9c5ae8ba395e7d2ff9fbd7cffc0b4c
tools/releasetools/build_image.py