diff options
-rw-r--r-- | android/config.go | 7 | ||||
-rw-r--r-- | android/paths.go | 2 | ||||
-rw-r--r-- | android/variable.go | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/android/config.go b/android/config.go index 4a59bade..8f531ccd 100644 --- a/android/config.go +++ b/android/config.go @@ -443,6 +443,13 @@ func (c *deviceConfig) Arches() []Arch { 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 { if c.config.ProductVariables.DeviceVndkVersion == nil { return "" diff --git a/android/paths.go b/android/paths.go index 1a6125a3..e76e1fe6 100644 --- a/android/paths.go +++ b/android/paths.go @@ -631,7 +631,7 @@ func PathForModuleInstall(ctx ModuleContext, paths ...string) OutputPath { if ctx.Device() { partition := "system" if ctx.Proprietary() { - partition = "vendor" + partition = ctx.DeviceConfig().VendorPath() } if ctx.InstallInData() { partition = "data" diff --git a/android/variable.go b/android/variable.go index 3436a75e..1ee6c9bb 100644 --- a/android/variable.go +++ b/android/variable.go @@ -113,6 +113,8 @@ type productVariables struct { UseGoma *bool `json:",omitempty"` Debuggable *bool `json:",omitempty"` + VendorPath *string `json:",omitempty"` + ClangTidy *bool `json:",omitempty"` TidyChecks *string `json:",omitempty"` |