Support system/vendor for devices without a vendor partition

Test: lunch aosp_arm-eng; m -j vulkan.default
Change-Id: I91eabf98f53c455ec4ade95215f11a6f89631747
This commit is contained in:
Dan Willemsen
2016-12-05 17:16:02 -08:00
parent 7ed1ae3fa4
commit 4353bc4422
3 changed files with 10 additions and 1 deletions

View File

@@ -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"