Adding make_disk_image subcommand.

These additions to bpttool will satisfy a portion of the provisioning
stage.  This will create support for disk image creation on uefi boards.

TEST=Added unit tests to check written partitions patterns and other
boundary checks.  A manual test involving setting up a loop device
(losetup) with the produced image followed by checking its partitions
(gnome-disks) was also done.
BUG=29123391

Change-Id: Ifa8d4789cefa1e6049e5726ee0b6d4ebaedffb48
6 files changed
tree: 7b08f7a115bf125eff5b50dd69132b9a78fff1b6
  1. test/
  2. Android.mk
  3. bpt_test
  4. bpt_unittest.py
  5. bpttool
  6. README