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 18:24:30 +0000 (11:24 -0700)
commit1aa1af0e997699bc025e4f0a754692068328d7e6
tree3cb5701ccd7b24904b138ae8453674bfe184a8ef
parent16401ad4256178fbe7a2cd8588e6dbf9a6c63180
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: I4a1f0105ada2e1573c3d6162457b83725e0d8971
tools/releasetools/sparse_img.py