summaryrefslogtreecommitdiff
path: root/android/singleton.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2024-03-18 15:38:12 -0700
committer Cole Faust <colefaust@google.com> 2024-03-20 10:55:05 -0700
commit9a24d909369ae20566c85dfbfe8b14054ed6dd5d (patch)
treefba2e0f03cb52c8fcb2ba853dd7dd132c9fe8dc6 /android/singleton.go
parent97409cd9a2268fd80c33c58ddac8f3f3738d6dbe (diff)
Add more specific partition visibility rules
//visibility:any_system_partition, //visibility:any_vendor_partition, etc. Then, if a partition visibility rule is not specificed, but the module is installed on a non-system partition via the `vendor: true` or other properties, the visibility rule for that partition will be added by default. This is so that "any_partition" doesn't imply that modules could be put on the vendor partition when they weren't designed for that, and so that modules that do need to go on the vendor partition don't need to specify both vendor: true and visibility:any_vendor_partition. Eventually, the partition properties should be deprecated, and replaced with just these visibility rules. Bug: 321000103 Test: go tests Change-Id: I24dba36bbc20921941f892480bf7c050e93827c6
Diffstat (limited to 'android/singleton.go')
-rw-r--r--android/singleton.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/singleton.go b/android/singleton.go
index ccddeafd2..5f939967c 100644
--- a/android/singleton.go
+++ b/android/singleton.go
@@ -251,7 +251,7 @@ func (s *singletonContextAdaptor) FinalModule(module Module) Module {
func (s *singletonContextAdaptor) ModuleVariantsFromName(referer Module, name string) []Module {
// get module reference for visibility enforcement
- qualified := createVisibilityModuleReference(s.ModuleName(referer), s.ModuleDir(referer), s.ModuleType(referer))
+ qualified := createVisibilityModuleReference(s.ModuleName(referer), s.ModuleDir(referer), referer)
modules := s.SingletonContext.ModuleVariantsFromName(referer, name)
result := make([]Module, 0, len(modules))