Revert^5 "Use Soong-built system/build.prop"
45ed4c2f9c
Change-Id: I574f29539d58239cd3f0e1ba6ae86e1b5d0f55ea
This commit is contained in:
@@ -60,21 +60,6 @@ func (p *buildPropModule) propFiles(ctx ModuleContext) Paths {
|
||||
return nil
|
||||
}
|
||||
|
||||
func shouldAddBuildThumbprint(config Config) bool {
|
||||
knownOemProperties := []string{
|
||||
"ro.product.brand",
|
||||
"ro.product.name",
|
||||
"ro.product.device",
|
||||
}
|
||||
|
||||
for _, knownProp := range knownOemProperties {
|
||||
if InList(knownProp, config.OemProperties()) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (p *buildPropModule) GenerateAndroidBuildActions(ctx ModuleContext) {
|
||||
p.outputFilePath = PathForModuleOut(ctx, "build.prop").OutputPath
|
||||
if !ctx.Config().KatiEnabled() {
|
||||
@@ -134,19 +119,6 @@ func (p *buildPropModule) GenerateAndroidBuildActions(ctx ModuleContext) {
|
||||
ctx.SetOutputFiles(Paths{p.outputFilePath}, "")
|
||||
}
|
||||
|
||||
func (p *buildPropModule) AndroidMkEntries() []AndroidMkEntries {
|
||||
return []AndroidMkEntries{{
|
||||
Class: "ETC",
|
||||
OutputFile: OptionalPathForPath(p.outputFilePath),
|
||||
ExtraEntries: []AndroidMkExtraEntriesFunc{
|
||||
func(ctx AndroidMkExtraEntriesContext, entries *AndroidMkEntries) {
|
||||
entries.SetString("LOCAL_MODULE_PATH", p.installPath.String())
|
||||
entries.SetString("LOCAL_INSTALLED_MODULE_STEM", p.outputFilePath.Base())
|
||||
},
|
||||
},
|
||||
}}
|
||||
}
|
||||
|
||||
// build_prop module generates {partition}/build.prop file. At first common build properties are
|
||||
// printed based on Soong config variables. And then prop_files are printed as-is. Finally,
|
||||
// post_process_props tool is run to check if the result build.prop is valid or not.
|
||||
|
Reference in New Issue
Block a user