diff --git a/apex/apex.go b/apex/apex.go index 62dd3b644..3db20f465 100644 --- a/apex/apex.go +++ b/apex/apex.go @@ -735,19 +735,13 @@ func (a *apexBundle) DepsMutator(ctx android.BottomUpMutatorContext) { {Mutator: "arch", Variation: archForPrebuiltEtc.String()}, }, prebuiltTag, a.properties.Prebuilts...) - // Add dependency on platform_compat_configs. - // TODO(b/182816033) - make this common-arch once all usages have been migrated. - ctx.AddFarVariationDependencies([]blueprint.Variation{ - {Mutator: "os", Variation: ctx.Os().String()}, - {Mutator: "arch", Variation: archForPrebuiltEtc.String()}, - }, compatConfigsTag, a.properties.Compat_configs...) - // Common-arch dependencies come next commonVariation := ctx.Config().AndroidCommonTarget.Variations() ctx.AddFarVariationDependencies(commonVariation, bootImageTag, a.properties.Boot_images...) ctx.AddFarVariationDependencies(commonVariation, javaLibTag, a.properties.Java_libs...) ctx.AddFarVariationDependencies(commonVariation, bpfTag, a.properties.Bpfs...) ctx.AddFarVariationDependencies(commonVariation, fsTag, a.properties.Filesystems...) + ctx.AddFarVariationDependencies(commonVariation, compatConfigsTag, a.properties.Compat_configs...) if a.artApex { // With EMMA_INSTRUMENT_FRAMEWORK=true the ART boot image includes jacoco library. diff --git a/java/platform_compat_config.go b/java/platform_compat_config.go index 218154e96..4bfd4e2f9 100644 --- a/java/platform_compat_config.go +++ b/java/platform_compat_config.go @@ -152,7 +152,7 @@ func platformCompatConfigSingletonFactory() android.Singleton { func PlatformCompatConfigFactory() android.Module { module := &platformCompatConfig{} module.AddProperties(&module.properties) - android.InitAndroidArchModule(module, android.DeviceSupported, android.MultilibFirst) + android.InitAndroidArchModule(module, android.DeviceSupported, android.MultilibCommon) return module }