extract-utils: Rework firmware extraction support

This allows extracting firmware from factory images.
The following changes have been made:

* Remove filesmap support, this is not used in AOSP releasetools.
* Remove directory check, append_firmware_calls_to_makefiles() is opt-in
  and if some device calls it, firmware will always exist.
* Implement append_firmware_ab_ota_to_makefiles() to automatically
  append firmware images to AB_OTA_PARTITIONS
* Add support for source:target firmware extraction and AB argument

TODO: extract firmware from OTA images

Change-Id: Ib2158925f53657af949a186200c9e98e1a4db810
1 file changed
tree: 67e9bd7d59df1115071e803a549cff4e928a4acb
  1. templates/
  2. extract_ota.py
  3. extract_utils.sh
  4. sdat2img.py
  5. sort-blobs-list.py