Lines Matching refs:v
101 func (v *vbmeta) DepsMutator(ctx android.BottomUpMutatorContext) {
102 ctx.AddDependency(ctx.Module(), vbmetaPartitionDep, v.properties.Partitions...)
105 func (v *vbmeta) installFileName() string {
106 return proptools.StringDefault(v.properties.Stem, v.BaseModuleName()+".img")
109 func (v *vbmeta) partitionName() string {
110 return proptools.StringDefault(v.properties.Partition_name, v.BaseModuleName())
116 func (v *vbmeta) GenerateAndroidBuildActions(ctx android.ModuleContext) {
117 extractedPublicKeys := v.extractPublicKeys(ctx)
119 v.output = android.PathForModuleOut(ctx, v.installFileName()).OutputPath
124 key := android.PathForModuleSrc(ctx, proptools.String(v.properties.Private_key))
127 algorithm := proptools.StringDefault(v.properties.Algorithm, "SHA256_RSA4096")
130 cmd.FlagWithArg("--rollback_index ", v.rollbackIndexCommand(ctx))
131 ril := proptools.IntDefault(v.properties.Rollback_index_location, 0)
154 for i, cp := range v.properties.Chained_partitions {
177 cmd.FlagWithOutput("--output ", v.output)
183 Output(v.output)
187 v.installDir = android.PathForModuleInstall(ctx, "etc")
188 ctx.InstallFile(v.installDir, v.installFileName(), v.output)
192 func (v *vbmeta) rollbackIndexCommand(ctx android.ModuleContext) string {
194 if v.properties.Rollback_index_file != nil {
195 f := android.PathForModuleSrc(ctx, proptools.String(v.properties.Rollback_index_file))
206 func (v *vbmeta) extractPublicKeys(ctx android.ModuleContext) map[string]android.OutputPath {
210 for _, cp := range v.properties.Chained_partitions {
244 func (v *vbmeta) AndroidMkEntries() []android.AndroidMkEntries {
247 OutputFile: android.OptionalPathForPath(v.output),
250 entries.SetString("LOCAL_MODULE_PATH", v.installDir.ToMakePath().String())
251 entries.SetString("LOCAL_INSTALLED_MODULE_STEM", v.installFileName())
259 func (v *vbmeta) OutputPath() android.Path {
260 return v.output
263 func (v *vbmeta) SignedOutputPath() android.Path {
264 return v.OutputPath() // vbmeta is always signed
270 func (v *vbmeta) OutputFiles(tag string) (android.Paths, error) {
272 return []android.Path{v.output}, nil