Revert^3 "Add TARGET_SYSTEM_PROP to system build.prop" am: 072c0e4fcb

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3195813

Change-Id: Iea8d428d6b6099c1b71a70450880c7ac926009be
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Pechetty Sravani (xWF)
2024-07-25 10:39:03 +00:00
committed by Automerger Merge Worker
3 changed files with 4 additions and 15 deletions

View File

@@ -31,6 +31,10 @@ type buildPropProperties struct {
// properties in prop_files.
Block_list []string
// Path to the input prop files. The contents of the files are directly
// emitted to the output
Prop_files []string `android:"path"`
// Files to be appended at the end of build.prop. These files are appended after
// post_process_props without any further checking.
Footer_files []string `android:"path"`
@@ -52,14 +56,6 @@ func (p *buildPropModule) stem() string {
return proptools.StringDefault(p.properties.Stem, "build.prop")
}
func (p *buildPropModule) propFiles(ctx ModuleContext) Paths {
partition := p.PartitionTag(ctx.DeviceConfig())
if partition == "system" {
return ctx.Config().SystemPropFiles(ctx)
}
return nil
}
func (p *buildPropModule) GenerateAndroidBuildActions(ctx ModuleContext) {
p.outputFilePath = PathForModuleOut(ctx, "build.prop").OutputPath
if !ctx.Config().KatiEnabled() {
@@ -98,7 +94,6 @@ func (p *buildPropModule) GenerateAndroidBuildActions(ctx ModuleContext) {
cmd.FlagWithInput("--platform-preview-sdk-fingerprint-file=", ApiFingerprintPath(ctx))
cmd.FlagWithInput("--product-config=", PathForModuleSrc(ctx, proptools.String(p.properties.Product_config)))
cmd.FlagWithArg("--partition=", partition)
cmd.FlagForEachInput("--prop-files=", ctx.Config().SystemPropFiles(ctx))
cmd.FlagWithOutput("--out=", p.outputFilePath)
postProcessCmd := rule.Command().BuiltTool("post_process_props")

View File

@@ -2082,7 +2082,3 @@ func (c *config) UseDebugArt() bool {
return Bool(c.productVariables.Eng)
}
func (c *config) SystemPropFiles(ctx PathContext) Paths {
return PathsForSource(ctx, c.productVariables.SystemPropFiles)
}

View File

@@ -506,8 +506,6 @@ type ProductVariables struct {
OemProperties []string `json:",omitempty"`
ArtTargetIncludeDebugBuild *bool `json:",omitempty"`
SystemPropFiles []string `json:",omitempty"`
}
type PartitionQualifiedVariablesType struct {