Merge changes from topic "boot-image-b280776428"
* changes: Dexpreopt ART jars and framework jars together. Unify installDirOnHost and installDirOnDevice. Remove the ability to install boot images by bootclasspath_fragments. Prepare tests for dexpreopt changes.
This commit is contained in:
18
apex/apex.go
18
apex/apex.go
@@ -2287,16 +2287,13 @@ func (a *apexBundle) depVisitor(vctx *visitorContext, ctx android.ModuleContext,
|
||||
ctx.PropertyErrorf("sh_binaries", "%q is not a sh_binary module", depName)
|
||||
}
|
||||
case bcpfTag:
|
||||
bcpfModule, ok := child.(*java.BootclasspathFragmentModule)
|
||||
_, ok := child.(*java.BootclasspathFragmentModule)
|
||||
if !ok {
|
||||
ctx.PropertyErrorf("bootclasspath_fragments", "%q is not a bootclasspath_fragment module", depName)
|
||||
return false
|
||||
}
|
||||
|
||||
vctx.filesInfo = append(vctx.filesInfo, apexBootclasspathFragmentFiles(ctx, child)...)
|
||||
for _, makeModuleName := range bcpfModule.BootImageDeviceInstallMakeModules() {
|
||||
a.makeModulesToInstall = append(a.makeModulesToInstall, makeModuleName)
|
||||
}
|
||||
return true
|
||||
case sscpfTag:
|
||||
if _, ok := child.(*java.SystemServerClasspathModule); !ok {
|
||||
@@ -2662,19 +2659,6 @@ func apexBootclasspathFragmentFiles(ctx android.ModuleContext, module blueprint.
|
||||
bootclasspathFragmentInfo := ctx.OtherModuleProvider(module, java.BootclasspathFragmentApexContentInfoProvider).(java.BootclasspathFragmentApexContentInfo)
|
||||
var filesToAdd []apexFile
|
||||
|
||||
// Add the boot image files, e.g. .art, .oat and .vdex files.
|
||||
if bootclasspathFragmentInfo.ShouldInstallBootImageInApex() {
|
||||
for arch, files := range bootclasspathFragmentInfo.AndroidBootImageFilesByArchType() {
|
||||
dirInApex := filepath.Join("javalib", arch.String())
|
||||
for _, f := range files {
|
||||
androidMkModuleName := "javalib_" + arch.String() + "_" + filepath.Base(f.String())
|
||||
// TODO(b/177892522) - consider passing in the bootclasspath fragment module here instead of nil
|
||||
af := newApexFile(ctx, f, androidMkModuleName, dirInApex, etc, nil)
|
||||
filesToAdd = append(filesToAdd, af)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Add classpaths.proto config.
|
||||
if af := apexClasspathFragmentProtoFile(ctx, module); af != nil {
|
||||
filesToAdd = append(filesToAdd, *af)
|
||||
|
Reference in New Issue
Block a user