Make vbmeta Partitions property configurable

This allows using select statements.

Bug: 354824866
Test: boot
Change-Id: I6cb41177620f85697eeaa77d3aec79f21674e245
This commit is contained in:
Inseob Kim 2024-07-26 11:17:52 +09:00 committed by Bartłomiej Rudecki
parent 4427aab6e3
commit a79bbf3bdb
Signed by: przekichane
GPG key ID: 751F23C6F014EF76

View file

@ -59,7 +59,7 @@ type vbmetaProperties struct {
// List of filesystem modules that this vbmeta has descriptors for. The filesystem modules
// have to be signed (use_avb: true).
Partitions []string
Partitions proptools.Configurable[[]string]
// List of chained partitions that this vbmeta deletages the verification.
Chained_partitions []chainedPartitionProperties
@ -110,7 +110,7 @@ type vbmetaDep struct {
var vbmetaPartitionDep = vbmetaDep{kind: "partition"}
func (v *vbmeta) DepsMutator(ctx android.BottomUpMutatorContext) {
ctx.AddDependency(ctx.Module(), vbmetaPartitionDep, v.properties.Partitions...)
ctx.AddDependency(ctx.Module(), vbmetaPartitionDep, v.properties.Partitions.GetOrDefault(v.ConfigurableEvaluator(ctx), nil)...)
}
func (v *vbmeta) installFileName() string {