diff options
author | 2025-03-18 20:37:42 +0000 | |
---|---|---|
committer | 2025-03-18 20:37:42 +0000 | |
commit | 62eacaeb4ebf5e9b60590a3cb1a3b90533aadd96 (patch) | |
tree | d0485491ff6e54540b1a185ac79b5aba9839886c /filesystem/android_device.go | |
parent | 8d1d4e0e7a0f3b8c9d5b206609eec0d746a6057e (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/android_device.go')
-rw-r--r-- | filesystem/android_device.go | 8 |
1 files changed, 8 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) } |