Merge changes I0dcc9c7b,I9bc40642
* changes: Move cc.imageMutator into the android package Make CreateVariations return []android.Module
This commit is contained in:
@@ -431,6 +431,9 @@ type commonProperties struct {
|
||||
DebugName string `blueprint:"mutated"`
|
||||
DebugMutators []string `blueprint:"mutated"`
|
||||
DebugVariations []string `blueprint:"mutated"`
|
||||
|
||||
// set by ImageMutator
|
||||
ImageVariation string `blueprint:"mutated"`
|
||||
}
|
||||
|
||||
type hostAndDeviceProperties struct {
|
||||
@@ -865,6 +868,21 @@ func (m *ModuleBase) NoticeFile() OptionalPath {
|
||||
return m.noticeFile
|
||||
}
|
||||
|
||||
func (m *ModuleBase) setImageVariation(variant string) {
|
||||
m.commonProperties.ImageVariation = variant
|
||||
}
|
||||
|
||||
func (m *ModuleBase) ImageVariation() blueprint.Variation {
|
||||
return blueprint.Variation{
|
||||
Mutator: "image",
|
||||
Variation: m.base().commonProperties.ImageVariation,
|
||||
}
|
||||
}
|
||||
|
||||
func (m *ModuleBase) InRecovery() bool {
|
||||
return m.base().commonProperties.ImageVariation == RecoveryVariation
|
||||
}
|
||||
|
||||
func (m *ModuleBase) generateModuleTarget(ctx ModuleContext) {
|
||||
allInstalledFiles := Paths{}
|
||||
allCheckbuildFiles := Paths{}
|
||||
|
Reference in New Issue
Block a user