diff options
author | 2025-01-08 15:27:27 -0800 | |
---|---|---|
committer | 2025-01-08 15:27:27 -0800 | |
commit | 63ee59d96214105d5a0b134ab06671745c5ed8ea (patch) | |
tree | 1ba5954b3e19ee5f9a4d6f602210c73bedbfa2a5 /filesystem/filesystem.go | |
parent | 44670268657b495ea803001cb22b1abd70297a6a (diff) | |
parent | 9c6b67661ac6b2663ea25403f2e422ae3b888024 (diff) |
Merge "Don't include disabled modules in linker config files." into main
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r-- | filesystem/filesystem.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go index 6dfbfd1be..bd8018b80 100644 --- a/filesystem/filesystem.go +++ b/filesystem/filesystem.go @@ -1081,7 +1081,10 @@ func (f *filesystem) getLibsForLinkerConfig(ctx android.ModuleContext) ([]androi modulesInPackageByName := make(map[string]bool) deps := f.gatherFilteredPackagingSpecs(ctx) - ctx.WalkDeps(func(child, parent android.Module) bool { + ctx.WalkDeps(func(child, _ android.Module) bool { + if !child.Enabled(ctx) { + return false + } for _, ps := range android.OtherModuleProviderOrDefault( ctx, child, android.InstallFilesProvider).PackagingSpecs { if _, ok := deps[ps.RelPathInPackage()]; ok && ps.Partition() == f.PartitionType() { @@ -1100,6 +1103,9 @@ func (f *filesystem) getLibsForLinkerConfig(ctx android.ModuleContext) ([]androi var requireModules []android.Module ctx.WalkDeps(func(child, parent android.Module) bool { + if !child.Enabled(ctx) { + return false + } _, parentInPackage := modulesInPackageByModule[parent] _, childInPackageName := modulesInPackageByName[child.Name()] |