Install cil_compat_map module's output
... so it can be packaged as PackagingSpecs
Bug: 329208946
Test: m aosp_cf_system_x86_64
Change-Id: I6298a3e99e74c38befb3a3565e4c638e1558114d
diff --git a/build/soong/cil_compat_map.go b/build/soong/cil_compat_map.go
index eb7cb06..dd883cc 100644
--- a/build/soong/cil_compat_map.go
+++ b/build/soong/cil_compat_map.go
@@ -103,6 +103,10 @@
return proptools.String(c.properties.Version) == ctx.DeviceConfig().PlatformSepolicyVersion()
}
+func (c *cilCompatMap) stem() string {
+ return proptools.StringDefault(c.properties.Stem, c.Name())
+}
+
func (c *cilCompatMap) GenerateAndroidBuildActions(ctx android.ModuleContext) {
if c.shouldSkipBuild(ctx) {
return
@@ -144,6 +148,7 @@
} else {
c.installSource = android.OptionalPathForPath(bottomHalf)
}
+ ctx.InstallFile(c.installPath, c.stem(), c.installSource.Path())
}
func (c *cilCompatMap) DepsMutator(ctx android.BottomUpMutatorContext) {