Include TARGET_ODM_PROP to odm/etc/build.prop
It's missing in Soong's build_prop module. Bug: 322090587 Bug: 361623560 Test: set TARGET_ODM_PROP and see odm/etc/build.prop Change-Id: I447a64998f6ae0ba80201ab4ab6c0fd0ef22e3e5
This commit is contained in:
@@ -63,6 +63,8 @@ func (p *buildPropModule) propFiles(ctx ModuleContext) Paths {
|
|||||||
return ctx.Config().SystemExtPropFiles(ctx)
|
return ctx.Config().SystemExtPropFiles(ctx)
|
||||||
} else if partition == "product" {
|
} else if partition == "product" {
|
||||||
return ctx.Config().ProductPropFiles(ctx)
|
return ctx.Config().ProductPropFiles(ctx)
|
||||||
|
} else if partition == "odm" {
|
||||||
|
return ctx.Config().OdmPropFiles(ctx)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@@ -2057,6 +2057,10 @@ func (c *config) ProductPropFiles(ctx PathContext) Paths {
|
|||||||
return PathsForSource(ctx, c.productVariables.ProductPropFiles)
|
return PathsForSource(ctx, c.productVariables.ProductPropFiles)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *config) OdmPropFiles(ctx PathContext) Paths {
|
||||||
|
return PathsForSource(ctx, c.productVariables.OdmPropFiles)
|
||||||
|
}
|
||||||
|
|
||||||
func (c *config) EnableUffdGc() string {
|
func (c *config) EnableUffdGc() string {
|
||||||
return String(c.productVariables.EnableUffdGc)
|
return String(c.productVariables.EnableUffdGc)
|
||||||
}
|
}
|
||||||
|
@@ -512,6 +512,7 @@ type ProductVariables struct {
|
|||||||
SystemPropFiles []string `json:",omitempty"`
|
SystemPropFiles []string `json:",omitempty"`
|
||||||
SystemExtPropFiles []string `json:",omitempty"`
|
SystemExtPropFiles []string `json:",omitempty"`
|
||||||
ProductPropFiles []string `json:",omitempty"`
|
ProductPropFiles []string `json:",omitempty"`
|
||||||
|
OdmPropFiles []string `json:",omitempty"`
|
||||||
|
|
||||||
EnableUffdGc *string `json:",omitempty"`
|
EnableUffdGc *string `json:",omitempty"`
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user