Merge "Do not install init.rc for (vendor_)ramdisk variants."

This commit is contained in:
Yifan Hong 2020-12-03 22:27:53 +00:00 committed by Gerrit Code Review
commit 4396c01aff
1 changed files with 3 additions and 1 deletions

View File

@ -499,7 +499,9 @@ func (a *AndroidMkEntries) fillInEntries(config Config, bpPath string, mod bluep
}
}
a.AddStrings("LOCAL_INIT_RC", amod.commonProperties.Init_rc...)
if !amod.InRamdisk() && !amod.InVendorRamdisk() {
a.AddStrings("LOCAL_INIT_RC", amod.commonProperties.Init_rc...)
}
a.AddStrings("LOCAL_VINTF_FRAGMENTS", amod.commonProperties.Vintf_fragments...)
a.SetBoolIfTrue("LOCAL_PROPRIETARY_MODULE", Bool(amod.commonProperties.Proprietary))
if Bool(amod.commonProperties.Vendor) || Bool(amod.commonProperties.Soc_specific) {