Implement Module interface function FilesToInstall in platform_compat_config modules.
Bug: 324465531 Test: CIs Change-Id: Idf24c987ad3fafb13956712c14bcb9329673e923
This commit is contained in:
@@ -61,6 +61,8 @@ type platformCompatConfig struct {
|
||||
installDirPath android.InstallPath
|
||||
configFile android.OutputPath
|
||||
metadataFile android.OutputPath
|
||||
|
||||
installConfigFile android.InstallPath
|
||||
}
|
||||
|
||||
func (p *platformCompatConfig) compatConfigMetadata() android.Path {
|
||||
@@ -106,8 +108,12 @@ func (p *platformCompatConfig) GenerateAndroidBuildActions(ctx android.ModuleCon
|
||||
FlagWithOutput("--merged-config ", p.metadataFile)
|
||||
|
||||
p.installDirPath = android.PathForModuleInstall(ctx, "etc", "compatconfig")
|
||||
p.installConfigFile = android.PathForModuleInstall(ctx, "etc", "compatconfig", p.configFile.Base())
|
||||
rule.Build(configFileName, "Extract compat/compat_config.xml and install it")
|
||||
}
|
||||
|
||||
func (p *platformCompatConfig) FilesToInstall() android.InstallPaths {
|
||||
return android.InstallPaths{p.installConfigFile}
|
||||
}
|
||||
|
||||
func (p *platformCompatConfig) AndroidMkEntries() []android.AndroidMkEntries {
|
||||
|
Reference in New Issue
Block a user