OSDN Git Service

sparse_img.py: Don't write empty map groups.
authorTao Bao <tbao@google.com>
Sat, 27 Jun 2015 00:49:39 +0000 (17:49 -0700)
committerSimon Wilson <simonwilson@google.com>
Wed, 1 Jul 2015 17:10:31 +0000 (10:10 -0700)
commit7f9470cda390ee61c0fc71491d0c649fbf6e02dd
tree5a0501e3b793531059fc1945ce065b4491d742b9
parentef5dc90bba179f774bee0c7e479965cef12091de
sparse_img.py: Don't write empty map groups.

In certain cases, we may have no mapping of ZERO or NONZERO blocks in
the image (such as squashfs at the moment). Don't write those groups if
they are empty.

Change-Id: I82aa05fbbd79130b08868585edd5298e531c4f5a
tools/releasetools/sparse_img.py