Allow uninstallable linker_config to be packaged
Till now, linker_config has to be installable to be packaged. With this commit, packaging modules like filesystem now can include uninstallable linker_config. This can help when linker_config can conflict with other partitions e.g. system. Bug: 185391776 Test: build filesystem with uninstallable linker_config Change-Id: Ic2cece08be73749e6bd1f813152c67f8e3904c20
This commit is contained in:
parent
d466b4a1f5
commit
c6a91ec6d8
1 changed files with 3 additions and 2 deletions
|
@ -81,9 +81,10 @@ func (l *linkerConfig) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
|||
linkerConfigRule.Build("conv_linker_config",
|
||||
"Generate linker config protobuf "+l.outputFilePath.String())
|
||||
|
||||
if proptools.BoolDefault(l.properties.Installable, true) {
|
||||
ctx.InstallFile(l.installDirPath, l.outputFilePath.Base(), l.outputFilePath)
|
||||
if !proptools.BoolDefault(l.properties.Installable, true) {
|
||||
l.SkipInstall()
|
||||
}
|
||||
ctx.InstallFile(l.installDirPath, l.outputFilePath.Base(), l.outputFilePath)
|
||||
}
|
||||
|
||||
// linker_config generates protobuf file from json file. This protobuf file will be used from
|
||||
|
|
Loading…
Reference in a new issue