summaryrefslogtreecommitdiff
path: root/filesystem/system_image.go
diff options
context:
space:
mode:
author Jiyong Park <jiyong@google.com> 2024-04-05 18:13:33 +0900
committer Jiyong Park <jiyong@google.com> 2024-04-09 11:26:15 +0900
commitf46b1af96993ed4a92cf32aba289b7f2decb9811 (patch)
tree543dc55dda1a1b959974d6b1305b7d78d500a2a4 /filesystem/system_image.go
parentfe66e137144bb586fa0d51bef2ba2b52d69402e9 (diff)
android_filesystem_defaults and visibility rule
android_systemimage_defaults is deleted and android_filesystem_defaults is created so that we can have defaults not only for android_system_image, but also all android_filesystem modules and its derivatives. Also, change adds a check which ensures that the partition_type of the filesystem and its defaults are the same. Bug: 330665150 Test: m Change-Id: If635c794534ed89d264eaf7dfc406a8245b8e9f0
Diffstat (limited to 'filesystem/system_image.go')
-rw-r--r--filesystem/system_image.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/filesystem/system_image.go b/filesystem/system_image.go
index 92bb206bc..5028a493e 100644
--- a/filesystem/system_image.go
+++ b/filesystem/system_image.go
@@ -21,7 +21,6 @@ import (
type systemImage struct {
filesystem
- android.DefaultableModuleBase
properties systemImageProperties
}
@@ -40,7 +39,6 @@ func systemImageFactory() android.Module {
module.filesystem.buildExtraFiles = module.buildExtraFiles
module.filesystem.filterPackagingSpec = module.filterPackagingSpec
initFilesystemModule(&module.filesystem)
- android.InitDefaultableModule(module)
return module
}
@@ -102,17 +100,3 @@ func (s *systemImage) buildLinkerConfigFile(ctx android.ModuleContext, root andr
func (s *systemImage) filterPackagingSpec(ps android.PackagingSpec) bool {
return ps.Partition() == "system"
}
-
-type systemImageDefaults struct {
- android.ModuleBase
- android.DefaultsModuleBase
-}
-
-// android_system_image_defaults is a default module for android_system_image module.
-func systemImageDefaultsFactory() android.Module {
- module := &systemImageDefaults{}
- module.AddProperties(&android.PackagingProperties{})
- module.AddProperties(&systemImageProperties{})
- android.InitDefaultsModule(module)
- return module
-}