From 79730d4d9c00d72ee47163e49c931d21aa532967 Mon Sep 17 00:00:00 2001 From: mrziwang Date: Mon, 2 Dec 2024 22:13:59 -0800 Subject: Add super_image module type and create super image module in fsgen fsgen processes the variables exported from make and create the super image module. This module generates the misc-info.txt, which is used by build_super_image.py to build the super image. Test: CI Bug: 376726109 Change-Id: I74a3e68d697704f36a770b3c83e5f8821b3ac128 --- android/variable.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'android/variable.go') diff --git a/android/variable.go b/android/variable.go index baa26460f..19f63e33f 100644 --- a/android/variable.go +++ b/android/variable.go @@ -581,6 +581,11 @@ type PartitionQualifiedVariablesType struct { BoardAvbRollbackIndexLocation string `json:",omitempty"` } +type BoardSuperPartitionGroupProps struct { + GroupSize string `json:",omitempty"` + PartitionList []string `json:",omitempty"` +} + type ChainedAvbPartitionProps struct { Partitions []string `json:",omitempty"` Key string `json:",omitempty"` @@ -634,6 +639,18 @@ type PartitionVariables struct { InternalBootconfig []string `json:",omitempty"` InternalBootconfigFile string `json:",omitempty"` + // Super image stuff + ProductUseDynamicPartitions bool `json:",omitempty"` + ProductRetrofitDynamicPartitions bool `json:",omitempty"` + ProductBuildSuperPartition bool `json:",omitempty"` + BoardSuperPartitionSize string `json:",omitempty"` + BoardSuperPartitionMetadataDevice string `json:",omitempty"` + BoardSuperPartitionBlockDevices []string `json:",omitempty"` + BoardSuperPartitionGroups map[string]BoardSuperPartitionGroupProps `json:",omitempty"` + ProductVirtualAbOta bool `json:",omitempty"` + ProductVirtualAbOtaRetrofit bool `json:",omitempty"` + AbOtaUpdater bool `json:",omitempty"` + // Avb (android verified boot) stuff BoardAvbEnable bool `json:",omitempty"` BoardAvbAlgorithm string `json:",omitempty"` -- cgit v1.2.3-59-g8ed1b