Merge "Add target.vendor_ramdisk."

This commit is contained in:
Yifan Hong
2020-10-28 20:02:24 +00:00
committed by Gerrit Code Review
5 changed files with 48 additions and 1 deletions

View File

@@ -3085,6 +3085,12 @@ func squashRecoverySrcs(m *Module) {
}
}
func squashVendorRamdiskSrcs(m *Module) {
if lib, ok := m.compiler.(*libraryDecorator); ok {
lib.baseCompiler.Properties.Exclude_srcs = append(lib.baseCompiler.Properties.Exclude_srcs, lib.baseCompiler.Properties.Target.Vendor_ramdisk.Exclude_srcs...)
}
}
func (c *Module) IsSdkVariant() bool {
return c.Properties.IsSdkVariant || c.AlwaysSdk()
}