From 74d243c82194ce28b12e8b4a532e0c29dc0e5a26 Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Wed, 11 Dec 2024 17:57:34 -0800 Subject: Fix missing file errors when running with --soong-only Installed files currently add dependencies on their associated initrc / vintf fragment files. InitRc and vintf fragment files are special: multiple modules are allowed to install them, and then they're deduplicated in the androidmk singleton before emitting rules to build them. The androidmk singleton doesn't run in soong-only mode, so they never get build rules emitted. We don't actually care about the "fully installed" files in soong-only builds for the most part (host tools are probably an exception), so just rmeove the dependency on these files for now. There's also an issue with an apex symbol file symlink missing. This issue I understand much less well, I beleive it's related to aosp/3308088. However, again, we don't really care about installed files, so I just disabled the apex symbol file symlinks in soong-only builds. Bug: 380109595 Test: m --soong-only Change-Id: I6ca4a7f241044937edc50c65f5a8120e6984136e --- apex/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apex/builder.go') diff --git a/apex/builder.go b/apex/builder.go index 45608c933..7e6664437 100644 --- a/apex/builder.go +++ b/apex/builder.go @@ -544,7 +544,7 @@ func (a *apexBundle) buildApex(ctx android.ModuleContext) { imageDir := android.PathForModuleOut(ctx, "image"+suffix) - installSymbolFiles := (!ctx.Config().KatiEnabled() || a.ExportedToMake()) && a.installable() + installSymbolFiles := (ctx.Config().KatiEnabled() && a.ExportedToMake()) && a.installable() // set of dependency module:location mappings installMapSet := make(map[string]bool) -- cgit v1.2.3-59-g8ed1b