Merge "Allow uninstallable prebuilt_etc to be packaged" am: 525fdd57b5
am: c278ebe5b5
am: 9e2a93c8fb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1591732 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ifaa3fe0db090f23cdffbd36114f9e85ac5002943
This commit is contained in:
commit
f554fbd8aa
|
@ -282,11 +282,14 @@ func (p *PrebuiltEtc) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
|||
Input: p.sourceFilePath,
|
||||
})
|
||||
|
||||
if p.Installable() {
|
||||
installPath := ctx.InstallFile(p.installDirPath, p.outputFilePath.Base(), p.outputFilePath)
|
||||
for _, sl := range p.properties.Symlinks {
|
||||
ctx.InstallSymlink(p.installDirPath, sl, installPath)
|
||||
}
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue