diff options
author | 2025-03-20 04:31:06 -0700 | |
---|---|---|
committer | 2025-03-20 04:31:06 -0700 | |
commit | 73cee7f629095cad7d853eb8ffcebd0eba875932 (patch) | |
tree | 97174abc3abc43fd1f21518bfbfd5f02d006ed61 /filesystem/android_device.go | |
parent | 25f32d0a1efc79e2f1b67d56232a38305f7fa083 (diff) | |
parent | 2e1338e23f64c8560110a802bef4e1887419aa4f (diff) |
Merge "Add vbmeta partition info to misc_info.txt" into main
Diffstat (limited to 'filesystem/android_device.go')
-rw-r--r-- | filesystem/android_device.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/filesystem/android_device.go b/filesystem/android_device.go index 443e80e67..02bad0a3c 100644 --- a/filesystem/android_device.go +++ b/filesystem/android_device.go @@ -840,6 +840,15 @@ func (a *androidDevice) addMiscInfo(ctx android.ModuleContext) android.Path { Textf("echo avb_enable=true >> %s", miscInfo). Textf("&& echo avb_building_vbmeta_image=true >> %s", miscInfo). Textf("&& echo avb_avbtool=avbtool >> %s", miscInfo) + for _, vbmetaPartitionName := range a.partitionProps.Vbmeta_partitions { + img := ctx.GetDirectDepProxyWithTag(vbmetaPartitionName, filesystemDepTag) + if provider, ok := android.OtherModuleProvider(ctx, img, vbmetaPartitionProvider); ok { + builder.Command().Text("cat").Input(provider.PropFileForMiscInfo).Textf(" >> %s", miscInfo) + } else { + ctx.ModuleErrorf("vbmeta dep %s does not set vbmetaPartitionProvider\n", vbmetaPartitionName) + } + } + } if a.partitionProps.Boot_partition_name != nil { builder.Command().Textf("echo boot_images=boot.img >> %s", miscInfo) |