summaryrefslogtreecommitdiff
path: root/filesystem/filesystem.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2025-03-18 20:37:42 +0000
committer Spandan Das <spandandas@google.com> 2025-03-18 20:37:42 +0000
commit62eacaeb4ebf5e9b60590a3cb1a3b90533aadd96 (patch)
treed0485491ff6e54540b1a185ac79b5aba9839886c /filesystem/filesystem.go
parent8d1d4e0e7a0f3b8c9d5b206609eec0d746a6057e (diff)
Add vintf info and userdata size to Soong's misc_info.txt
- vintf info will be read from the global productVariables struct. This will likely need to be revisited when we have multiple android_device's in the tree - userdata has been special-cased to create a `userdata_size` entry in addition to $(filesystem)_partition_size entry. This special case matches the make misc_info.txt implementation. Bug: 398036609 Test: Built Soong's misc_info.txt locally Change-Id: I9f312c8022c5faf84442cb51f1e13043768aed53
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r--filesystem/filesystem.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index 3d8477d62..af14e811a 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -1175,6 +1175,10 @@ func (f *filesystem) buildPropFileForMiscInfo(ctx android.ModuleContext) android
// effect as <partition name>_disable_sparse.
if f.properties.Partition_size == nil {
addStr(f.partitionName()+"_disable_sparse", "true")
+ } else if f.partitionName() == "userdata" {
+ // Add userdata's partition size to misc_info.txt.
+ // userdata has been special-cased to make the make packaging misc_info.txt implementation
+ addStr("userdata_size", strconv.FormatInt(*f.properties.Partition_size, 10))
}
fst := f.fsType(ctx)