From a88d2da5878eb94a473a2ec3344f22c442f84a8d Mon Sep 17 00:00:00 2001 From: Yi-Yo Chiang Date: Thu, 18 Mar 2021 18:29:48 +0800 Subject: [PATCH] Nextgen release: Don't build images that GSI don't need These images are never used by GSI. Building them is a waste of resource and a potential source of confusion, for they are packaged into the *-img-*.zip of GSI. Skip building them. Bug: 183068624 Test: "m dist" on GSI and check the build artifacts under OUT and DIST directories, and check the contents of *-img-*.zip Change-Id: Ic14cfdd10ed26d975b369ce128e4b284378219ef --- target/product/gsi_release.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target/product/gsi_release.mk b/target/product/gsi_release.mk index 25716ceb7b..539dbfa513 100644 --- a/target/product/gsi_release.mk +++ b/target/product/gsi_release.mk @@ -59,3 +59,9 @@ PRODUCT_PACKAGES += \ # Support additional P, Q and R VNDK packages PRODUCT_EXTRA_VNDK_VERSIONS := 28 29 30 + +# Do not build non-GSI partition images. +PRODUCT_BUILD_CACHE_IMAGE := false +PRODUCT_BUILD_USERDATA_IMAGE := false +PRODUCT_BUILD_VENDOR_IMAGE := false +PRODUCT_BUILD_SUPER_PARTITION := false