summaryrefslogtreecommitdiff
path: root/apex/apex.go
diff options
context:
space:
mode:
author Jooyung Han <jooyung@google.com> 2023-10-30 16:17:56 +0900
committer Jooyung Han <jooyung@google.com> 2023-10-30 16:48:36 +0900
commit286957df998636ccd940b9b8c88c8ebfee20d96c (patch)
tree3788b51d26ef9e2a97fe68cbdb9a73f877447ef2 /apex/apex.go
parent2cf35e7bfd3d44c71395515a6dfcea3998cb1296 (diff)
Rewrite how to generate apexkeys.txt
Instead of listing all apexes in the source tree, now each apex emits its own fragment for apexkeys.txt, which is pointed by LOCAL_APEX_KEYS_FILE. Makefile collects apexkeys.txt from installed apex files. This is to avoid listing unrelated apexes (not installed, testdata, unexported namespaces, etc.) Bug: 304914238 Test: m apexkeys.txt Test: m blueprint-tests Change-Id: Iefbe6e486cb418955584ad1a282455307e90be95
Diffstat (limited to 'apex/apex.go')
-rw-r--r--apex/apex.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/apex/apex.go b/apex/apex.go
index f90337301..adabdeefd 100644
--- a/apex/apex.go
+++ b/apex/apex.go
@@ -454,6 +454,9 @@ type apexBundle struct {
// Path where this APEX was installed.
installedFile android.InstallPath
+ // fragment for this apex for apexkeys.txt
+ apexKeysPath android.WritablePath
+
// Installed locations of symlinks for backward compatibility.
compatSymlinks android.InstallPaths
@@ -1923,6 +1926,7 @@ func (a *apexBundle) ProcessBazelQueryResponse(ctx android.ModuleContext) {
a.filesInfo = append(a.filesInfo, fileInfo)
}
+ a.apexKeysPath = writeApexKeys(ctx, a)
}
func (a *apexBundle) setCompression(ctx android.ModuleContext) {