Merge "Include TARGET_ODM_PROP to odm/etc/build.prop" into main
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