Merge "Skip unknown check in bootclasspath_fragment (source version) if prebuilt version is in use." into main

This commit is contained in:
Alyssa Ketpreechasawat 2023-11-14 19:13:32 +00:00 committed by Gerrit Code Review
commit 378c7a3953

View file

@ -582,7 +582,7 @@ func (b *BootclasspathFragmentModule) configuredJars(ctx android.ModuleContext)
// So ignore it even if it is not in PRODUCT_APEX_BOOT_JARS.
// TODO(b/202896428): Add better way to handle this.
_, unknown = android.RemoveFromList("android.car-module", unknown)
if len(unknown) > 0 {
if isActiveModule(ctx.Module()) && len(unknown) > 0 {
ctx.ModuleErrorf("%s in contents must also be declared in PRODUCT_APEX_BOOT_JARS", unknown)
}
}