Automatically inherit common properties.

Before, the values were often simply ignored. If bad values are provided
now, we should be able to catch them.

Bug: 119771576
Test: relying on this for AIDL/HIDL
Change-Id: I8d2ff26da0b2d01ebe7f78c26d69c7b618a65367
This commit is contained in:
Steven Moreland
2019-07-29 16:44:57 -07:00
parent 525d8dec66
commit 12f23e0883

View File

@@ -243,7 +243,8 @@ func (t *topDownMutatorContext) Rename(name string) {
}
func (t *topDownMutatorContext) CreateModule(factory blueprint.ModuleFactory, props ...interface{}) {
t.bp.CreateModule(factory, props...)
common := []interface{}{&t.Module().base().commonProperties}
t.bp.CreateModule(factory, append(common, props...)...)
}
func (b *bottomUpMutatorContext) MutatorName() string {