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:
@@ -149,7 +149,7 @@ func addAvbProp(ctx android.ModuleContext, cmd *android.RuleBuilderCommand, prop
|
|||||||
cmd.FlagWithArg("--prop ", proptools.ShellEscape(fmt.Sprintf("%s:%s", name, value)))
|
cmd.FlagWithArg("--prop ", proptools.ShellEscape(fmt.Sprintf("%s:%s", name, value)))
|
||||||
} else {
|
} else {
|
||||||
p := android.PathForModuleSrc(ctx, file)
|
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))))
|
cmd.FlagWithArg("--prop_from_file ", proptools.ShellEscape(fmt.Sprintf("%s:%s", name, cmd.PathForInput(p))))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user