Merge changes from topic "revert-3184480-system_build_prop_soong-BZIDUTEOOC" into main am: 7d7baf7220
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3195633
Change-Id: I35846419402c7a0cb075278ef1f9b83bff81aa88
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/android/build_prop.go b/android/build_prop.go
index a925273..45c17c3 100644
--- a/android/build_prop.go
+++ b/android/build_prop.go
@@ -31,6 +31,10 @@
// 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 @@
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() {
@@ -97,7 +93,6 @@
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")
diff --git a/android/config.go b/android/config.go
index 9c35b5f..e08dc24 100644
--- a/android/config.go
+++ b/android/config.go
@@ -2082,7 +2082,3 @@
return Bool(c.productVariables.Eng)
}
-
-func (c *config) SystemPropFiles(ctx PathContext) Paths {
- return PathsForSource(ctx, c.productVariables.SystemPropFiles)
-}
diff --git a/android/variable.go b/android/variable.go
index 5356e85..eb0e210 100644
--- a/android/variable.go
+++ b/android/variable.go
@@ -506,8 +506,6 @@
OemProperties []string `json:",omitempty"`
ArtTargetIncludeDebugBuild *bool `json:",omitempty"`
-
- SystemPropFiles []string `json:",omitempty"`
}
type PartitionQualifiedVariablesType struct {