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:
parent
08cb1af507
commit
f9b8137457
3 changed files with 7 additions and 0 deletions
|
@ -63,6 +63,8 @@ func (p *buildPropModule) propFiles(ctx ModuleContext) Paths {
|
|||
return ctx.Config().SystemExtPropFiles(ctx)
|
||||
} else if partition == "product" {
|
||||
return ctx.Config().ProductPropFiles(ctx)
|
||||
} else if partition == "odm" {
|
||||
return ctx.Config().OdmPropFiles(ctx)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -2118,6 +2118,10 @@ func (c *config) ProductPropFiles(ctx PathContext) Paths {
|
|||
return PathsForSource(ctx, c.productVariables.ProductPropFiles)
|
||||
}
|
||||
|
||||
func (c *config) OdmPropFiles(ctx PathContext) Paths {
|
||||
return PathsForSource(ctx, c.productVariables.OdmPropFiles)
|
||||
}
|
||||
|
||||
func (c *config) EnableUffdGc() string {
|
||||
return String(c.productVariables.EnableUffdGc)
|
||||
}
|
||||
|
|
|
@ -536,6 +536,7 @@ type ProductVariables struct {
|
|||
SystemPropFiles []string `json:",omitempty"`
|
||||
SystemExtPropFiles []string `json:",omitempty"`
|
||||
ProductPropFiles []string `json:",omitempty"`
|
||||
OdmPropFiles []string `json:",omitempty"`
|
||||
|
||||
EnableUffdGc *string `json:",omitempty"`
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue