platform_build/core/tasks
Bowgo Tsai 480dc7c19d Support signing custom_images with AVB
Current AVB signing for custom images is enabled by either of the
following build variables:
  CUSTOM_IMAGE_AVB_HASH_ENABLE := true
  CUSTOM_IMAGE_AVB_HASHTREE_ENABLE := true

A previous change to support chain partition replaced avb_signing_args
with avb_key_path and avb_algorithm. This change updates the
corresponding change for custom_images.

To sign a custom_image as a chain partition, it needs:
  CUSTOM_IMAGE_AVB_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem
  CUSTOM_IMAGE_AVB_ALGORITHM := SHA256_RSA2048
  CUSTOM_IMAGE_AVB_ROLLBACK_INDEX := 1

Note that it doesn't support include metadata of custom images into
vbmeta.img. Because custom_images is designed to build multiple files
(e.g., custom1.img, custom2.img, custom3.img, etc) and a device can only
use/mount one of them. The vbmeta.img needs to be generated per each
combination.

Bug:36701014
Test: sign custom image with AVB HASH descriptor (non-chain)
Test: sign custom image with AVB HASH descriptor as chain partition
Test: sign custom image with AVB HASHTREE descriptor (non-chain)
Test: sign custom image with AVB HASHTREE descriptor as chain partition
Change-Id: I492e2ce768e7caec22228b776b2c13a2d37a5b89
2017-08-25 13:28:57 +08:00
..
check_boot_jars Add java.time packages to whitelist. 2017-01-11 12:48:33 +00:00
tools Support signing custom_images with AVB 2017-08-25 13:28:57 +08:00
apicheck.mk Add new Test API for CTS testing. 2015-11-25 11:38:44 +00:00
boot_jars_package_check.mk Conditionally skip boot jars package name check. 2014-09-11 17:40:29 -07:00
build_custom_images.mk custom_images: support verity fec (forward error correction) 2017-07-14 21:47:13 +08:00
collect_gpl_sources.mk collect_gpl_sources.mk: Declare rule to assemble GPL sources FORCE 2014-01-27 12:25:43 -08:00
cts.mk old-cts: Add testng and libcoreoj test support 2016-04-26 17:00:22 -07:00
deps_licenses.mk Add task to print transitive dependencies and their license files. 2015-05-19 16:37:42 -07:00
device-tests.mk Fix test suite zip generation on mac 2017-08-01 01:51:30 +00:00
general-tests.mk Fix test suite zip generation on mac 2017-08-01 01:51:30 +00:00
ide.mk Make make ECLIPSE-lunch build a .classpath for all the java stuff that will be included in the 2010-05-26 17:58:21 -04:00
module-info.mk Add generation of a module-info.json file 2016-04-06 19:11:51 -07:00
oem_image.mk oem_image/custom_image: fix missing new parameter to build_image.py 2015-07-13 14:46:49 -07:00
sdk-addon.mk Revert "Revert "emulator: create qemu images for system,vendor"" 2017-08-01 13:00:53 -07:00
vendor_module_check.mk Merge \\\"Add VENDOR_PRODUCT_RESTRICT_VENDOR_FILES\\\" am: 2acb2d5bcf am: 200da242a5 2016-06-28 06:27:13 +00:00