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
diff --git a/filesystem/android_device.go b/filesystem/android_device.go
index 45a8620..bd887c7 100644
--- a/filesystem/android_device.go
+++ b/filesystem/android_device.go
@@ -780,6 +780,16 @@
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