Cleanup ImageInterface.SetImageVariation
This change modifies the interface method of ImageInterface.SetImageVariation so that the image variation is set directly at the caller image variation module, instead of passing the pointer to set the image variation. Test: m nothing Change-Id: I8eadb5149365530243e19a8cd37eb49d335fbeef
This commit is contained in:
@@ -243,10 +243,8 @@ func (s *ShBinary) ExtraImageVariations(ctx android.BaseModuleContext) []string
|
||||
return extraVariations
|
||||
}
|
||||
|
||||
func (s *ShBinary) SetImageVariation(ctx android.BaseModuleContext, variation string, module android.Module) {
|
||||
if m, ok := module.(*ShBinary); ok {
|
||||
m.properties.ImageVariation = variation
|
||||
}
|
||||
func (s *ShBinary) SetImageVariation(ctx android.BaseModuleContext, variation string) {
|
||||
s.properties.ImageVariation = variation
|
||||
}
|
||||
|
||||
// Overrides ModuleBase.InstallInRamdisk() so that the install rule respects
|
||||
|
Reference in New Issue
Block a user