aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2020-12-03 20:07:30 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-12-03 20:07:30 +0000
commit52ba2dbcac76c78c3abe561a9b1700b8b4e28d5b (patch)
treeacefc0a5b3f56a038f473dee8dae5b194f0368b0
parentd84cb299e6b64b5dd76f48edec59d8fd1dba5502 (diff)
parentd9281c3bba2884765eb44d12bf55ce59a8436d99 (diff)
downloadcuttlefish-52ba2dbcac76c78c3abe561a9b1700b8b4e28d5b.tar.gz
Merge "Follow argument changes to RuleBuilder"
-rw-r--r--build/cvd-host-package.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/cvd-host-package.go b/build/cvd-host-package.go
index 575155763..b72b1e3d5 100644
--- a/build/cvd-host-package.go
+++ b/build/cvd-host-package.go
@@ -77,9 +77,9 @@ func (c *cvdHostPackage) GenerateAndroidBuildActions(ctx android.ModuleContext)
// Dir where to extract the zip file and construct the final tar.gz from
packageDir := android.PathForModuleOut(ctx, ".temp").OutputPath
- builder := android.NewRuleBuilder()
+ builder := android.NewRuleBuilder(pctx, ctx)
builder.Command().
- BuiltTool(ctx, "zipsync").
+ BuiltTool("zipsync").
FlagWithArg("-d ", packageDir.String()).
Input(zipFile)
@@ -92,7 +92,7 @@ func (c *cvdHostPackage) GenerateAndroidBuildActions(ctx android.ModuleContext)
builder.Command().Text("rm").Flag("-rf").Text(packageDir.String())
- builder.Build(pctx, ctx, "cvd_host_package", fmt.Sprintf("Packaging %s", c.BaseModuleName()))
+ builder.Build("cvd_host_package", fmt.Sprintf("Packaging %s", c.BaseModuleName()))
ctx.InstallFile(android.PathForModuleInstall(ctx), c.BaseModuleName()+".tar.gz", output)
}