diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2021-03-17 23:37:04 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-03-17 23:37:04 +0000 |
commit | ab534a3b5cc4bd0623240866f898c8f274dd0092 (patch) | |
tree | b3dc50820df14e53a0255d8e41f7b83ddf458357 /filesystem/filesystem.go | |
parent | 45a497180892a47cd69758b9d9126b7c608485ce (diff) | |
parent | ac4076de9d5c517e144090487dc165538d15b0d2 (diff) |
Merge "bootimg signs image using verity_utils"
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r-- | filesystem/filesystem.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go index 3b0a7ae5a..7f36308df 100644 --- a/filesystem/filesystem.go +++ b/filesystem/filesystem.go @@ -55,6 +55,9 @@ type filesystemProperties struct { // Hash and signing algorithm for avbtool. Default is SHA256_RSA4096. Avb_algorithm *string + // Name of the partition stored in vbmeta desc. Defaults to the name of this module. + Partition_name *string + // Type of the filesystem. Currently, ext4, cpio, and compressed_cpio are supported. Default // is ext4. Type *string @@ -279,7 +282,8 @@ func (f *filesystem) buildPropFile(ctx android.ModuleContext) (propFile android. key := android.PathForModuleSrc(ctx, proptools.String(f.properties.Avb_private_key)) addPath("avb_key_path", key) addStr("avb_add_hashtree_footer_args", "--do_not_generate_fec") - addStr("partition_name", f.Name()) + partitionName := proptools.StringDefault(f.properties.Partition_name, f.Name()) + addStr("partition_name", partitionName) } if proptools.String(f.properties.File_contexts) != "" { |