summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-03-18 15:22:47 -0700
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-03-18 15:22:47 -0700
commit92d29690f16cdbba244b523c9110cb9af999d22e (patch)
treeb47d1a2d2fa7273fb5ae4a29da43b725fd84836c
parent772924a7a7cc9378777ca3fd1d8752d15aec8acc (diff)
parent62eacaeb4ebf5e9b60590a3cb1a3b90533aadd96 (diff)
Merge "Add vintf info and userdata size to Soong's misc_info.txt" into main
-rw-r--r--filesystem/android_device.go8
-rw-r--r--filesystem/filesystem.go4
2 files changed, 12 insertions, 0 deletions
diff --git a/filesystem/android_device.go b/filesystem/android_device.go
index cb54f783e..443e80e67 100644
--- a/filesystem/android_device.go
+++ b/filesystem/android_device.go
@@ -819,6 +819,14 @@ func (a *androidDevice) addMiscInfo(ctx android.ModuleContext) android.Path {
// TODO: Add support for TARGET_RECOVERY_FSTYPE_MOUNT_OPTIONS which can be used to override the default
builder.Command().Textf("echo recovery_mount_options=%s >> %s", defaultTargetRecoveryFstypeMountOptions, miscInfo)
+ // vintf information
+ if proptools.Bool(ctx.Config().ProductVariables().Enforce_vintf_manifest) {
+ builder.Command().Textf("echo vintf_enforce=true >> %s", miscInfo)
+ }
+ if len(ctx.Config().DeviceManifestFiles()) > 0 {
+ builder.Command().Textf("echo vintf_include_empty_vendor_sku=true >> %s", miscInfo)
+ }
+
if a.partitionProps.Recovery_partition_name == nil {
builder.Command().Textf("echo no_recovery=true >> %s", miscInfo)
}
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index 846e2e5e4..f8faa496f 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)