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,11 +282,14 @@ func (p *PrebuiltEtc) GenerateAndroidBuildActions(ctx android.ModuleContext) {
Input: p.sourceFilePath, Input: p.sourceFilePath,
}) })
if p.Installable() { if !p.Installable() {
installPath := ctx.InstallFile(p.installDirPath, p.outputFilePath.Base(), p.outputFilePath) p.SkipInstall()
for _, sl := range p.properties.Symlinks { }
ctx.InstallSymlink(p.installDirPath, sl, installPath)
} // 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)
} }
} }