Merge changes from topic 'proprietary-soong'
* changes: Support system/vendor for devices without a vendor partition Import/Export LOCAL_PROPRIETARY_MODULE
This commit is contained in:
@@ -224,6 +224,9 @@ func translateAndroidMkModule(ctx blueprint.SingletonContext, w io.Writer, mod b
|
|||||||
if len(amod.commonProperties.Init_rc) > 0 {
|
if len(amod.commonProperties.Init_rc) > 0 {
|
||||||
fmt.Fprintln(w, "LOCAL_INIT_RC := ", strings.Join(amod.commonProperties.Init_rc, " "))
|
fmt.Fprintln(w, "LOCAL_INIT_RC := ", strings.Join(amod.commonProperties.Init_rc, " "))
|
||||||
}
|
}
|
||||||
|
if amod.commonProperties.Proprietary {
|
||||||
|
fmt.Fprintln(w, "LOCAL_PROPRIETARY_MODULE := true")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if host {
|
if host {
|
||||||
|
@@ -443,6 +443,13 @@ func (c *deviceConfig) Arches() []Arch {
|
|||||||
return arches
|
return arches
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *deviceConfig) VendorPath() string {
|
||||||
|
if c.config.ProductVariables.VendorPath != nil {
|
||||||
|
return *c.config.ProductVariables.VendorPath
|
||||||
|
}
|
||||||
|
return "vendor"
|
||||||
|
}
|
||||||
|
|
||||||
func (c *deviceConfig) VndkVersion() string {
|
func (c *deviceConfig) VndkVersion() string {
|
||||||
if c.config.ProductVariables.DeviceVndkVersion == nil {
|
if c.config.ProductVariables.DeviceVndkVersion == nil {
|
||||||
return ""
|
return ""
|
||||||
|
@@ -631,7 +631,7 @@ func PathForModuleInstall(ctx ModuleContext, paths ...string) OutputPath {
|
|||||||
if ctx.Device() {
|
if ctx.Device() {
|
||||||
partition := "system"
|
partition := "system"
|
||||||
if ctx.Proprietary() {
|
if ctx.Proprietary() {
|
||||||
partition = "vendor"
|
partition = ctx.DeviceConfig().VendorPath()
|
||||||
}
|
}
|
||||||
if ctx.InstallInData() {
|
if ctx.InstallInData() {
|
||||||
partition = "data"
|
partition = "data"
|
||||||
|
@@ -113,6 +113,8 @@ type productVariables struct {
|
|||||||
UseGoma *bool `json:",omitempty"`
|
UseGoma *bool `json:",omitempty"`
|
||||||
Debuggable *bool `json:",omitempty"`
|
Debuggable *bool `json:",omitempty"`
|
||||||
|
|
||||||
|
VendorPath *string `json:",omitempty"`
|
||||||
|
|
||||||
ClangTidy *bool `json:",omitempty"`
|
ClangTidy *bool `json:",omitempty"`
|
||||||
TidyChecks *string `json:",omitempty"`
|
TidyChecks *string `json:",omitempty"`
|
||||||
|
|
||||||
|
@@ -78,6 +78,7 @@ var standardProperties = map[string]struct {
|
|||||||
"LOCAL_PACK_MODULE_RELOCATIONS": {"pack_relocations", bpparser.BoolType},
|
"LOCAL_PACK_MODULE_RELOCATIONS": {"pack_relocations", bpparser.BoolType},
|
||||||
"LOCAL_TIDY": {"tidy", bpparser.BoolType},
|
"LOCAL_TIDY": {"tidy", bpparser.BoolType},
|
||||||
"LOCAL_USE_VNDK": {"use_vndk", bpparser.BoolType},
|
"LOCAL_USE_VNDK": {"use_vndk", bpparser.BoolType},
|
||||||
|
"LOCAL_PROPRIETARY_MODULE": {"proprietary", bpparser.BoolType},
|
||||||
|
|
||||||
"LOCAL_EXPORT_PACKAGE_RESOURCES": {"export_package_resources", bpparser.BoolType},
|
"LOCAL_EXPORT_PACKAGE_RESOURCES": {"export_package_resources", bpparser.BoolType},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user