Revert^2 "Conditionally pass kernel version to build.prop" am: 6bd92d5924
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3199371 Change-Id: I47dd45bd74c11e604b17ee195f95a6e2575a23b1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -106,7 +106,12 @@ func (p *buildPropModule) GenerateAndroidBuildActions(ctx ModuleContext) {
|
|||||||
postProcessCmd.Flag("--allow-dup")
|
postProcessCmd.Flag("--allow-dup")
|
||||||
}
|
}
|
||||||
postProcessCmd.FlagWithArg("--sdk-version ", config.PlatformSdkVersion().String())
|
postProcessCmd.FlagWithArg("--sdk-version ", config.PlatformSdkVersion().String())
|
||||||
|
if ctx.Config().EnableUffdGc() == "default" {
|
||||||
postProcessCmd.FlagWithInput("--kernel-version-file-for-uffd-gc ", PathForOutput(ctx, "dexpreopt/kernel_version_for_uffd_gc.txt"))
|
postProcessCmd.FlagWithInput("--kernel-version-file-for-uffd-gc ", PathForOutput(ctx, "dexpreopt/kernel_version_for_uffd_gc.txt"))
|
||||||
|
} else {
|
||||||
|
// still need to pass an empty string to kernel-version-file-for-uffd-gc
|
||||||
|
postProcessCmd.FlagWithArg("--kernel-version-file-for-uffd-gc ", `""`)
|
||||||
|
}
|
||||||
postProcessCmd.Text(p.outputFilePath.String())
|
postProcessCmd.Text(p.outputFilePath.String())
|
||||||
postProcessCmd.Flags(p.properties.Block_list)
|
postProcessCmd.Flags(p.properties.Block_list)
|
||||||
|
|
||||||
|
@@ -2090,3 +2090,7 @@ func (c *config) UseDebugArt() bool {
|
|||||||
func (c *config) SystemPropFiles(ctx PathContext) Paths {
|
func (c *config) SystemPropFiles(ctx PathContext) Paths {
|
||||||
return PathsForSource(ctx, c.productVariables.SystemPropFiles)
|
return PathsForSource(ctx, c.productVariables.SystemPropFiles)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *config) EnableUffdGc() string {
|
||||||
|
return String(c.productVariables.EnableUffdGc)
|
||||||
|
}
|
||||||
|
@@ -509,6 +509,8 @@ type ProductVariables struct {
|
|||||||
ArtTargetIncludeDebugBuild *bool `json:",omitempty"`
|
ArtTargetIncludeDebugBuild *bool `json:",omitempty"`
|
||||||
|
|
||||||
SystemPropFiles []string `json:",omitempty"`
|
SystemPropFiles []string `json:",omitempty"`
|
||||||
|
|
||||||
|
EnableUffdGc *string `json:",omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type PartitionQualifiedVariablesType struct {
|
type PartitionQualifiedVariablesType struct {
|
||||||
|
Reference in New Issue
Block a user