commit | acd862aed3584df2511e69d4c86799d33def483d | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Apr 16 15:44:30 2019 -0700 |
committer | Yifan Hong <elsk@google.com> | Thu Apr 25 10:51:35 2019 -0700 |
tree | 93ebc6af3c2e22a3e1a492d5ced7a37e7b08ff70 | |
parent | d540f5a9a57a14ce64b660a6ee6f75c4c7b5141b [diff] |
Add BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT flag. If set to true, - super.img is built from images in $PRODUCT_OUT - super.img is built to $PRODUCT_OUT - super.img is built when 'make'. 'make dist' still builds super image from images in target files to intermediates directory. This flag is useful for virtual devices, but isn't intended to be set for actual devices. For actual devices, userspace fastboot should flash super_empty.img and individual user images separately. Test: on cuttlefish (flag is set), make # generates $OUT/super.img make superimage # generates $OUT/super.img Test: on real non-retrofit DAP device (flag is not set) make # no super.img is generated make superimage # generates $OUT/obj/PACKAGING/.../super.img make dist # generates out/dist/super.img Bug: 113175337 Change-Id: Ieb81e4fbb663bb4b69e9962c3fa9f16b03aeb907
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.