commit | 166d819fe47c903f731decd1c77b7f8111e7c6a8 | [log] [tgz] |
---|---|---|
author | Oleksiy Avramchenko <oleksiy.avramchenko@sony.com> | Thu Jan 20 22:10:52 2022 +0100 |
committer | Oleksiy Avramchenko <oleksiy.avramchenko@sony.com> | Wed Feb 09 19:47:18 2022 +0100 |
tree | 59da0879197c047a63a63953232c7e75271a8cc6 | |
parent | 6daac9c78ddbd516abe551029edcaeda3fab90a0 [diff] |
Support relative key path in VerifiedBootVersion2VerityImageBuilder Otatools archive can be unpacked to an arbitrary directory together with bundled external/avb/test/data keys. Calling add_img_to_target_files from a different directory fails to build an image which has avb_{}_key_path pointing to the bundled key since add_hash_footer can't find the key file. Fix this by applying the same logic as in common.AppendAVBSigningArgs. Steps to reproduce: $ . build/envsetup.sh && lunch aosp_cf_arm64_phone-userdebug && make dist $ cd out/dist && rm -rf otatools && unzip otatools.zip -d otatools $ zip -d aosp_cf_arm64_phone-*target_files*.zip IMAGES/system_other.img $ otatools/bin/add_img_to_target_files -a -v -p otatools \ aosp_cf_arm64_phone-target_files-*.zip Bug: 218531463 Test: manual, see "steps to reproduce" above Change-Id: Id3f7cf2678e998ef1beda2b6741944c6455c2404
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.