summaryrefslogtreecommitdiff
path: root/filesystem/filesystem.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2025-01-10 13:00:03 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-01-10 13:00:03 -0800
commit04295513fb16175cee06a311351566bb60fc6a75 (patch)
treeb36c74f9623e5a58679e744d8a1423349d73eee2 /filesystem/filesystem.go
parent45de73a60c09c763b0fd88b85d744ea872588dfa (diff)
parentd8ce324e6a98c20dd24ee9a1b7818c36d8abebc0 (diff)
Merge changes Ia60fadb8,I13310d60 into main
* changes: Add a partial IMAGES/ subdir for target_files.zip Add a Stem property to filesystem
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r--filesystem/filesystem.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index 1861d8e7a..993c46e49 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -215,6 +215,9 @@ type FilesystemProperties struct {
// Additional dependencies used for building android products
Android_filesystem_deps AndroidFilesystemDeps
+
+ // Name of the output. Default is $(module_name).img
+ Stem *string
}
type AndroidFilesystemDeps struct {
@@ -392,7 +395,7 @@ func (f *filesystem) fsType(ctx android.ModuleContext) fsType {
}
func (f *filesystem) installFileName() string {
- return f.BaseModuleName() + ".img"
+ return proptools.StringDefault(f.properties.Stem, f.BaseModuleName()+".img")
}
func (f *filesystem) partitionName() string {