diff options
author | 2025-03-21 15:08:30 -0700 | |
---|---|---|
committer | 2025-03-21 15:08:30 -0700 | |
commit | 273bf6e9b6e00141ad726b532032b5a290d67ad7 (patch) | |
tree | 51c761d7c5d9fc5d335f24f6cdd1c3ee2eaafe2f /filesystem/vbmeta.go | |
parent | 780dd8642a6f35c5b0b6810713fc874f8c52c827 (diff) | |
parent | a85dbb2bef1f34f0c08d1b418ca699aed43e91f9 (diff) |
Merge changes from topic "export_flash_block_size_to_soong" into main
* changes:
Add some OTA related properties to android_device
Add `avb_custom_vbmeta_images_partition_list` to misc_info.txt
Diffstat (limited to 'filesystem/vbmeta.go')
-rw-r--r-- | filesystem/vbmeta.go | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/filesystem/vbmeta.go b/filesystem/vbmeta.go index d59a2aec5..e7a39bef7 100644 --- a/filesystem/vbmeta.go +++ b/filesystem/vbmeta.go @@ -55,6 +55,10 @@ type VbmetaProperties struct { // Name of the partition stored in vbmeta desc. Defaults to the name of this module. Partition_name *string + // Type of the `android_filesystem` for which the vbmeta.img is created. + // Examples are system, vendor, product. + Filesystem_partition_type *string + // Set the name of the output. Defaults to <module_name>.img. Stem *string @@ -118,6 +122,9 @@ type vbmetaPartitionInfo struct { // Name of the partition Name string + // Partition type of the correspdonding android_filesystem. + FilesystemPartitionType string + // Rollback index location, non-negative int RollbackIndexLocation int @@ -305,11 +312,12 @@ func (v *vbmeta) GenerateAndroidBuildActions(ctx android.ModuleContext) { }) android.SetProvider(ctx, vbmetaPartitionProvider, vbmetaPartitionInfo{ - Name: v.partitionName(), - RollbackIndexLocation: ril, - PublicKey: extractedPublicKey, - Output: output, - PropFileForMiscInfo: v.buildPropFileForMiscInfo(ctx), + Name: v.partitionName(), + FilesystemPartitionType: proptools.String(v.properties.Filesystem_partition_type), + RollbackIndexLocation: ril, + PublicKey: extractedPublicKey, + Output: output, + PropFileForMiscInfo: v.buildPropFileForMiscInfo(ctx), }) ctx.SetOutputFiles([]android.Path{output}, "") |