diff options
| author | 2019-07-12 12:51:37 +0900 | |
|---|---|---|
| committer | 2019-12-17 22:41:56 +0900 | |
| commit | bb688a9fa9f8542dd0868a706eae987ec0e686e0 (patch) | |
| tree | 4eaa7f382bee334cf95878ac5d4d9e6f532be048 /tools/warn/cpp_warn_patterns.py | |
| 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
Diffstat (limited to 'tools/warn/cpp_warn_patterns.py')
0 files changed, 0 insertions, 0 deletions