summaryrefslogtreecommitdiff
path: root/filesystem/android_device.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2025-03-13 21:36:19 +0000
committer Spandan Das <spandandas@google.com> 2025-03-13 21:36:19 +0000
commite041103ee8be5a960bd795422c9a292c32e28d04 (patch)
tree3edd1f8a8ff6a4cfb7ee81c396543f452c937f26 /filesystem/android_device.go
parentf6138662ae92cbeebaae8588279ed281c4737cd5 (diff)
Partial additions to Soong's misc_info.txt implementation
Soong's misc_info.txt is currently missing a lot of entries. This CL adds the subset of the entries contained in dynamic_partition_info.txt. Test: Built Soong's target_files.zip locally and checked misc_info.txt file Bug: 398036609 Change-Id: I8a2497909df84d5fd72458e7d6a04c53d0ca68d3
Diffstat (limited to 'filesystem/android_device.go')
-rw-r--r--filesystem/android_device.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/filesystem/android_device.go b/filesystem/android_device.go
index 45a8620c5..bd887c78f 100644
--- a/filesystem/android_device.go
+++ b/filesystem/android_device.go
@@ -780,6 +780,16 @@ func (a *androidDevice) addMiscInfo(ctx android.ModuleContext) android.Path {
builder.Command().Textf("echo boot_images=boot.img >> %s", miscInfo)
}
+ if a.partitionProps.Super_partition_name != nil {
+ superPartition := ctx.GetDirectDepProxyWithTag(*a.partitionProps.Super_partition_name, superPartitionDepTag)
+ if info, ok := android.OtherModuleProvider(ctx, superPartition, SuperImageProvider); ok {
+ // cat dynamic_partition_info.txt
+ builder.Command().Text("cat").Input(info.DynamicPartitionsInfo).Textf(" >> %s", miscInfo)
+ } else {
+ ctx.ModuleErrorf("Super partition %s does set SuperImageProvider\n", superPartition.Name())
+ }
+ }
+
builder.Build("misc_info", "Building misc_info")
return miscInfo