commit | 12f92447a5d5afc9d4fe0e016ee9aec05c1dbba9 | [log] [tgz] |
---|---|---|
author | Yi-Yo Chiang <yochiang@google.com> | Sun Apr 04 16:12:25 2021 +0800 |
committer | Yi-Yo Chiang <yochiang@google.com> | Fri Apr 09 12:47:00 2021 +0800 |
tree | 5b358f9f1593adc7e359dec765c9597d4d686ee9 | |
parent | 90eeff54eaf49c7cc477f882dead82ecfbff8eed [diff] |
Support building recovery as standalone ramdisk in vendor_boot v4 If BOARD_BOOT_HEADER_VERSION >= 4, BOARD_MOVE_RECOVERY_RESOURCES_TO_VENDOR_BOOT is true and BOARD_INCLUDE_RECOVERY_RAMDISK_IN_VENDOR_BOOT is true, then build recovery as a standalone ramdisk fragment in vendor_boot image. The recovery ramdisk would be a vendor ramdisk fragment packaged in vendor_boot, whose ramdisk_name is "recovery" and ramdisk_type is "VENDOR_RAMDISK_TYPE_RECOVERY". Bootloader can omit loading the recovery ramdisk during normal boot to optimize the size of the initramfs. Bug: 183395459 Test: Presubmit Test: Modify BoardConfig of CF and m dist. Verify the vendor_boot.img with unpack_bootimg. Test: Strip the vendor_boot of the recovery ramdisk, and verify that CF can boot to normal boot without the recovery ramdisk. Change-Id: I6e9a2781ec87aece10d4844fa18bbe9a7b4674e6
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.