aboutsummaryrefslogtreecommitdiff
path: root/build/hidl_interface.go
diff options
context:
space:
mode:
authorGregory Montoir <gmontoir@google.com>2022-07-27 13:58:23 +0800
committerGregory Montoir <gmontoir@google.com>2022-07-27 14:08:04 +0800
commit19a6c306bea647f2efc65dbe3265ec7d766e910f (patch)
tree504947766e79054d3930c056e1f0392158a62bed /build/hidl_interface.go
parent98624236983c15110a6043071b49ecc97e17a3b3 (diff)
downloadhidl-19a6c306bea647f2efc65dbe3265ec7d766e910f.tar.gz
Pass hidl-lint files list using Rspfile to soong_zip
To avoid 'posix_spawn: Argument list too long' on checkouts with a large number of hidl interfaces. Bug: 240359298 Test: m out/soong/.intermediates/hidl-lint.zip Change-Id: Ia8fb08776287be853c828bcefa4a8f9f9b7cb61b
Diffstat (limited to 'build/hidl_interface.go')
-rw-r--r--build/hidl_interface.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/build/hidl_interface.go b/build/hidl_interface.go
index cd8725ee..08d54eb0 100644
--- a/build/hidl_interface.go
+++ b/build/hidl_interface.go
@@ -63,7 +63,9 @@ var (
}, "output", "options", "fqName")
zipLintRule = pctx.StaticRule("zipLintRule", blueprint.RuleParams{
- Command: "rm -f ${output} && ${soong_zip} -o ${output} -C ${intermediatesDir} ${files}",
+ Rspfile: "$out.rsp",
+ RspfileContent: "$files",
+ Command: "rm -f ${output} && ${soong_zip} -o ${output} -C ${intermediatesDir} -l ${out}.rsp",
CommandDeps: []string{"${soong_zip}"},
Description: "Zipping hidl-lints into ${output}",
}, "output", "files")
@@ -187,7 +189,7 @@ func (m *allHidlLintsSingleton) GenerateBuildActions(ctx android.SingletonContex
Output: outPath,
Args: map[string]string{
"output": outPath.String(),
- "files": strings.Join(wrap("-f ", hidlLintOutputs.Strings(), ""), " "),
+ "files": strings.Join(hidlLintOutputs.Strings(), " "),
},
})
}