Merge "Remove the arch-based filtering hack in packaging.go"

This commit is contained in:
Jiyong Park
2020-12-02 01:24:17 +00:00
committed by Gerrit Code Review
3 changed files with 10 additions and 10 deletions

View File

@@ -153,15 +153,9 @@ func (p *PackagingBase) AddDeps(ctx BottomUpMutatorContext, depTag blueprint.Dep
// See PackageModule.CopyDepsToZip
func (p *PackagingBase) CopyDepsToZip(ctx ModuleContext, zipOut OutputPath) (entries []string) {
var supportedArches []string
for _, t := range p.getSupportedTargets(ctx) {
supportedArches = append(supportedArches, t.Arch.ArchType.String())
}
m := make(map[string]PackagingSpec)
ctx.WalkDeps(func(child Module, parent Module) bool {
// Don't track modules with unsupported arch
// TODO(jiyong): remove this when aosp/1501613 lands.
if !InList(child.Target().Arch.ArchType.String(), supportedArches) {
if !IsInstallDepNeeded(ctx.OtherModuleDependencyTag(child)) {
return false
}
for _, ps := range child.PackagingSpecs() {