Merge "Allow uninstallable prebuilt_etc to be packaged"

This commit is contained in:
Inseob Kim
2021-02-19 03:49:33 +00:00
committed by Gerrit Code Review

View File

@@ -282,13 +282,16 @@ func (p *PrebuiltEtc) GenerateAndroidBuildActions(ctx android.ModuleContext) {
Input: p.sourceFilePath,
})
if p.Installable() {
if !p.Installable() {
p.SkipInstall()
}
// Call InstallFile even when uninstallable to make the module included in the package
installPath := ctx.InstallFile(p.installDirPath, p.outputFilePath.Base(), p.outputFilePath)
for _, sl := range p.properties.Symlinks {
ctx.InstallSymlink(p.installDirPath, sl, installPath)
}
}
}
func (p *PrebuiltEtc) AndroidMkEntries() []android.AndroidMkEntries {
nameSuffix := ""