summaryrefslogtreecommitdiff
path: root/filesystem/filesystem.go
diff options
context:
space:
mode:
author Nikita Ioffe <ioffe@google.com> 2022-12-30 11:53:56 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2022-12-30 11:53:56 +0000
commit22f8b3d9bc9f70d0bd097108ab7501dbcac002a4 (patch)
tree17394cd076c58b0d271fdde48e2c407d0699dda2 /filesystem/filesystem.go
parent87c149dccbde5f9ce85351f38c199dc3eaf901ba (diff)
parent519015f99dd19328e806e0ce363d3c1005436f32 (diff)
Merge "Run host_init_verifier when building filesystem"
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r--filesystem/filesystem.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index e123f24f9..d01608f33 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -264,6 +264,14 @@ func (f *filesystem) buildImageUsingBuildImage(ctx android.ModuleContext) androi
Input(rootZip).
Input(rebasedDepsZip)
+ // run host_init_verifier
+ // Ideally we should have a concept of pluggable linters that verify the generated image.
+ // While such concept is not implement this will do.
+ // TODO(b/263574231): substitute with pluggable linter.
+ builder.Command().
+ BuiltTool("host_init_verifier").
+ FlagWithArg("--out_system=", rootDir.String()+"/system")
+
propFile, toolDeps := f.buildPropFile(ctx)
output := android.PathForModuleOut(ctx, f.installFileName()).OutputPath
builder.Command().BuiltTool("build_image").