commit | bb688a9fa9f8542dd0868a706eae987ec0e686e0 | [log] [tgz] |
---|---|---|
author | Jeongik Cha <jeongik@google.com> | Fri Jul 12 12:51:37 2019 +0900 |
committer | Jeongik Cha <jeongik@google.com> | Tue Dec 17 22:41:56 2019 +0900 |
tree | 4eaa7f382bee334cf95878ac5d4d9e6f532be048 | |
parent | de5b0d2a73f662131a0c3dafc5c45908b20cf613 [diff] |
Raise an error when partition setting is wrong When setting target out path at root(/product, /system_ext), either file system type or prebuilt image must be set. If not, we'd rather raise an error. Without raising an error, the artifacts in these directory are not included in any image. And also, extract these logics into function, and check product, odm, system_ext For now, exempt vendor image because of some targets with prebuilt vendor image. Bug: 137169253 Test: set TARGET_COPY_OUT_PRODUCT := product BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := BOARD_PREBUILT_PRODUCTIMAGE := and then check if it causes an error. Test: set TARGET_COPY_OUT_PRODUCT := system/product BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4 or BOARD_PREBUILT_PRODUCTIMAGE := someimage.img and then check if it causes an error. Change-Id: Ibf0f7838111075ba3649e198e5649aa7e8e29d7c
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.