summaryrefslogtreecommitdiff
path: root/android/module_proxy.go
diff options
context:
space:
mode:
author Kiyoung Kim <kiyoungkim@google.com> 2024-10-11 16:39:57 +0900
committer Kiyoung Kim <kiyoungkim@google.com> 2024-11-14 15:58:26 +0900
commitd3d89ede5d31c6175915dc4516bf6cd5cb3cd350 (patch)
tree492ddee95ad349f701ffb7f0c7fcbfb96f6c2dff /android/module_proxy.go
parent9fed341f7b9908d3abd3268b9faa666d83de2920 (diff)
Do not allow vintf_fragments for modules installed in the filesystem
Soong defined filesystem does not have any logic to handle vintf_fragments items, so those item should be used with vintf_fragment modules instead. This change checks if there is any module installed in the Soong defined filesystem and defines vintf_fragments property, and raises error for those modules. Bug: 322089980 Test: There is no diff between vintf manifests of generic_system_image and aosp_cf_x86_64_phone Change-Id: Ia03636e5d2975ab451650f70f66b46d7cd53e43a
Diffstat (limited to 'android/module_proxy.go')
-rw-r--r--android/module_proxy.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/android/module_proxy.go b/android/module_proxy.go
index 1f9679926..30459b9cd 100644
--- a/android/module_proxy.go
+++ b/android/module_proxy.go
@@ -9,6 +9,8 @@ type ModuleProxy struct {
module blueprint.ModuleProxy
}
+var _ Module = (*ModuleProxy)(nil)
+
func (m ModuleProxy) Name() string {
return m.module.Name()
}
@@ -225,3 +227,7 @@ func (m ModuleProxy) DecodeMultilib(ctx ConfigContext) (string, string) {
func (m ModuleProxy) Overrides() []string {
panic("method is not implemented on ModuleProxy")
}
+
+func (m ModuleProxy) VintfFragments(ctx ConfigurableEvaluatorContext) []string {
+ panic("method is not implemented on ModuleProxy")
+}