From 47e918450f83fc5f2680c0a3f7d6d1209e031e7c Mon Sep 17 00:00:00 2001 From: Jihoon Kang Date: Wed, 19 Jun 2024 00:51:16 +0000 Subject: Move vendor and product variant generation logic from cc package to android package Although image variation generation logic has moved out of cc package to the android package, the vendor and product partition variants generation logic is still specific to cc package. Therefore, in order to create a product or vendor variant, they have to specified in `ExtraImageVariants`. In order to avoid such confusing behaviors and enforce modules to specify product and vendor installation rules, this change moves the vendor and product variant generation logic to android.ImageInterface. Test: m nothing --no-skip-soong-tests && diff contents of out/soong/Android-{product}.mk Change-Id: I9e14f3739d9dea94167ee6a91e92b2f942055aba --- rust/rust.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rust/rust.go') diff --git a/rust/rust.go b/rust/rust.go index 7cd9df4c7..8a053c184 100644 --- a/rust/rust.go +++ b/rust/rust.go @@ -80,6 +80,8 @@ type BaseProperties struct { RustSubName string `blueprint:"mutated"` // Set by imageMutator + ProductVariantNeeded bool `blueprint:"mutated"` + VendorVariantNeeded bool `blueprint:"mutated"` CoreVariantNeeded bool `blueprint:"mutated"` VendorRamdiskVariantNeeded bool `blueprint:"mutated"` RamdiskVariantNeeded bool `blueprint:"mutated"` -- cgit v1.2.3-59-g8ed1b