Use target dependent module to update the name suffix
The module names for vendor and product variants have the image variant suffix to avoid conflict with the core modules. It requires updating the module names in the dependency tree with the suffixes. We had a hidden bug that used the original module properties to update the names of its dependent modules. Also, it must cover the product variants modules. Test: updated cc_test.go and build Change-Id: I6b4ea062d13c8fac1e699138d44376e52e0d7852
This commit is contained in:
@@ -71,6 +71,15 @@ func (mod *Module) HasVendorVariant() bool {
|
||||
return Bool(mod.VendorProperties.Vendor_available) || Bool(mod.VendorProperties.Odm_available)
|
||||
}
|
||||
|
||||
// Always returns false because rust modules do not support product variant.
|
||||
func (mod *Module) HasProductVariant() bool {
|
||||
return Bool(mod.VendorProperties.Product_available)
|
||||
}
|
||||
|
||||
func (mod *Module) HasNonSystemVariants() bool {
|
||||
return mod.HasVendorVariant() || mod.HasProductVariant()
|
||||
}
|
||||
|
||||
func (c *Module) InProduct() bool {
|
||||
return false
|
||||
}
|
||||
|
Reference in New Issue
Block a user