diff options
author | 2024-12-14 13:41:32 -0800 | |
---|---|---|
committer | 2024-12-14 13:41:32 -0800 | |
commit | 8d3ab2d0e82ecd79c0180b10b5aede98fab9a65f (patch) | |
tree | e094c2e9cebb92db5da0efad7a16028fd5c92718 /filesystem/filesystem.go | |
parent | d3de0888efe7b12811550b52b2bb26e21ed7f03e (diff) | |
parent | 34592c02f83c582c1e2c317a21e85aa9a1eaced8 (diff) |
Merge "Make system partition import system_ext's aconfig flags" into main
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r-- | filesystem/filesystem.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go index eb39a78c6..4799d0dda 100644 --- a/filesystem/filesystem.go +++ b/filesystem/filesystem.go @@ -181,6 +181,11 @@ type FilesystemProperties struct { // Install aconfig_flags.pb file for the modules installed in this partition. Gen_aconfig_flags_pb *bool + // List of names of other filesystem partitions to import their aconfig flags from. + // This is used for the system partition to import system_ext's aconfig flags, as currently + // those are considered one "container": aosp/3261300 + Import_aconfig_flags_from []string + Fsverity fsverityProperties // If this property is set to true, the filesystem will call ctx.UncheckedModule(), causing @@ -309,6 +314,9 @@ func (f *filesystem) DepsMutator(ctx android.BottomUpMutatorContext) { if f.properties.Android_filesystem_deps.System_ext != nil { ctx.AddDependency(ctx.Module(), interPartitionDependencyTag, proptools.String(f.properties.Android_filesystem_deps.System_ext)) } + for _, partition := range f.properties.Import_aconfig_flags_from { + ctx.AddDependency(ctx.Module(), importAconfigDependencyTag, partition) + } } type fsType int @@ -1079,6 +1087,12 @@ func addAutogeneratedRroDeps(ctx android.BottomUpMutatorContext) { } thisPartition := f.PartitionType() if thisPartition != "vendor" && thisPartition != "product" { + if f.properties.Android_filesystem_deps.System != nil { + ctx.PropertyErrorf("android_filesystem_deps.system", "only vendor or product partitions can use android_filesystem_deps") + } + if f.properties.Android_filesystem_deps.System_ext != nil { + ctx.PropertyErrorf("android_filesystem_deps.system_ext", "only vendor or product partitions can use android_filesystem_deps") + } return } ctx.WalkDeps(func(child, parent android.Module) bool { |