Fix incorrect command line from avb_add_hash_footer

This change fixes an error that the command line generated from
avb_add_hash_footer contains "a_file --prop_from_file prop_name:a_file",
which is invalid. The file should be an implicit dependency.

Bug: 256148237
Test: N/A
Change-Id: Id0a832bd552d5d79cbc79f250681928140255f91
This commit is contained in:
Jiyong Park 2022-12-05 17:09:55 +09:00
parent d06db5dd5b
commit b0fda8f594

View file

@ -149,7 +149,7 @@ func addAvbProp(ctx android.ModuleContext, cmd *android.RuleBuilderCommand, prop
cmd.FlagWithArg("--prop ", proptools.ShellEscape(fmt.Sprintf("%s:%s", name, value)))
} else {
p := android.PathForModuleSrc(ctx, file)
cmd.Input(p)
cmd.Implicit(p)
cmd.FlagWithArg("--prop_from_file ", proptools.ShellEscape(fmt.Sprintf("%s:%s", name, cmd.PathForInput(p))))
}
}