Lines Matching refs:a

88 func (a *avbAddHashFooter) installFileName() string {
89 return proptools.StringDefault(a.properties.Filename, a.BaseModuleName()+".img")
92 func (a *avbAddHashFooter) GenerateAndroidBuildActions(ctx android.ModuleContext) {
95 if a.properties.Src == nil {
99 input := android.PathForModuleSrc(ctx, proptools.String(a.properties.Src))
100 a.output = android.PathForModuleOut(ctx, a.installFileName()).OutputPath
101 builder.Command().Text("cp").Input(input).Output(a.output)
105 partition_name := proptools.StringDefault(a.properties.Partition_name, a.BaseModuleName())
108 if a.properties.Partition_size == nil {
111 partition_size := proptools.Int(a.properties.Partition_size)
115 key := android.PathForModuleSrc(ctx, proptools.String(a.properties.Private_key))
118 algorithm := proptools.StringDefault(a.properties.Algorithm, "SHA256_RSA4096")
121 if a.properties.Salt == nil {
125 cmd.FlagWithArg("--salt ", proptools.String(a.properties.Salt))
127 imagePaths := android.PathsForModuleSrc(ctx, a.properties.Include_descriptors_from_images)
132 for _, prop := range a.properties.Props {
136 if a.properties.Rollback_index != nil {
137 rollbackIndex := proptools.Int(a.properties.Rollback_index)
144 cmd.FlagWithOutput("--image ", a.output)
148 a.installDir = android.PathForModuleInstall(ctx, "etc")
149 ctx.InstallFile(a.installDir, a.installFileName(), a.output)
181 func (a *avbAddHashFooter) AndroidMkEntries() []android.AndroidMkEntries {
184 OutputFile: android.OptionalPathForPath(a.output),
187 entries.SetString("LOCAL_MODULE_PATH", a.installDir.String())
188 entries.SetString("LOCAL_INSTALLED_MODULE_STEM", a.installFileName())
196 func (a *avbAddHashFooter) OutputPath() android.Path {
197 return a.output
200 func (a *avbAddHashFooter) SignedOutputPath() android.Path {
201 return a.OutputPath() // always signed
208 func (a *avbAddHashFooter) Srcs() android.Paths {
209 return append(android.Paths{}, a.output)