Implement vendor as a synonym of proprietary
The vendor image will have more than just proprietary modules in it
under Treble, so let's stop marking open source code as proprietary just
to move it to vendor.
Bug: 36452052
Bug: 37134596
Test: compare build.ninja before/after, no changes.
Test: Set vendor: true, ensure it works.
Change-Id: I44b0ec7007d0e311bdcbd44b238b1ef2d05cc6ff
diff --git a/android/module.go b/android/module.go
index 3c09b3e..963d611 100644
--- a/android/module.go
+++ b/android/module.go
@@ -60,7 +60,7 @@
Windows() bool
Debug() bool
PrimaryArch() bool
- Proprietary() bool
+ Vendor() bool
AConfig() Config
DeviceConfig() DeviceConfig
}
@@ -143,6 +143,9 @@
// vendor who owns this module
Owner string
+ // whether this module is device specific and should be installed into /vendor
+ Vendor bool
+
// *.logtags files, to combine together in order to generate the /system/etc/event-log-tags
// file
Logtags []string
@@ -462,7 +465,7 @@
return androidBaseContextImpl{
target: a.commonProperties.CompileTarget,
targetPrimary: a.commonProperties.CompilePrimary,
- proprietary: a.commonProperties.Proprietary,
+ vendor: a.commonProperties.Proprietary || a.commonProperties.Vendor,
config: ctx.Config().(Config),
}
}
@@ -499,7 +502,7 @@
target Target
targetPrimary bool
debug bool
- proprietary bool
+ vendor bool
config Config
}
@@ -632,8 +635,8 @@
return DeviceConfig{a.config.deviceConfig}
}
-func (a *androidBaseContextImpl) Proprietary() bool {
- return a.proprietary
+func (a *androidBaseContextImpl) Vendor() bool {
+ return a.vendor
}
func (a *androidModuleContext) InstallInData() bool {