summaryrefslogtreecommitdiff
path: root/apex
diff options
context:
space:
mode:
author Jooyung Han <jooyung@google.com> 2024-10-17 06:51:15 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-10-17 06:51:15 +0000
commitf313fd9922998c4cfad44da0a39fdb398979bbe6 (patch)
tree545316bbb4e1f1a6073cc8fd21c31908741ddbcd /apex
parent54bfc97ea32568bd20467f7a8ff86813192379b1 (diff)
parentb6ac822b856e4966a8b9836a912bcbec098c26a6 (diff)
Merge "apex: pass partition_tag to host_apex_verifier" into main
Diffstat (limited to 'apex')
-rw-r--r--apex/builder.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/apex/builder.go b/apex/builder.go
index 8bfb210fb..20b4dbeeb 100644
--- a/apex/builder.go
+++ b/apex/builder.go
@@ -253,10 +253,10 @@ var (
apexHostVerifierRule = pctx.StaticRule("apexHostVerifierRule", blueprint.RuleParams{
Command: `${host_apex_verifier} --deapexer=${deapexer} --debugfs=${debugfs_static} ` +
- `--fsckerofs=${fsck_erofs} --apex=${in} && touch ${out}`,
+ `--fsckerofs=${fsck_erofs} --apex=${in} --partition_tag=${partition_tag} && touch ${out}`,
CommandDeps: []string{"${host_apex_verifier}", "${deapexer}", "${debugfs_static}", "${fsck_erofs}"},
Description: "run host_apex_verifier",
- })
+ }, "partition_tag")
assembleVintfRule = pctx.StaticRule("assembleVintfRule", blueprint.RuleParams{
Command: `rm -f $out && VINTF_IGNORE_TARGET_FCM_VERSION=true ${assemble_vintf} -i $in -o $out`,
@@ -977,7 +977,7 @@ func (a *apexBundle) buildApex(ctx android.ModuleContext) {
runApexElfCheckerUnwanted(ctx, unsignedOutputFile.OutputPath, a.properties.Unwanted_transitive_deps))
}
if !a.testApex && android.InList(a.payloadFsType, []fsType{ext4, erofs}) {
- validations = append(validations, runApexHostVerifier(ctx, unsignedOutputFile.OutputPath))
+ validations = append(validations, runApexHostVerifier(ctx, a, unsignedOutputFile.OutputPath))
}
ctx.Build(pctx, android.BuildParams{
Rule: rule,
@@ -1288,12 +1288,15 @@ func runApexElfCheckerUnwanted(ctx android.ModuleContext, apexFile android.Outpu
return timestamp
}
-func runApexHostVerifier(ctx android.ModuleContext, apexFile android.OutputPath) android.Path {
+func runApexHostVerifier(ctx android.ModuleContext, a *apexBundle, apexFile android.OutputPath) android.Path {
timestamp := android.PathForModuleOut(ctx, "host_apex_verifier.timestamp")
ctx.Build(pctx, android.BuildParams{
Rule: apexHostVerifierRule,
Input: apexFile,
Output: timestamp,
+ Args: map[string]string{
+ "partition_tag": a.PartitionTag(ctx.DeviceConfig()),
+ },
})
return timestamp
}