Revert^3 "Add debug ramdisk variant"
836a8f3d61
Change-Id: If59529238e26a197bc33b10245b88f538f280ed0
This commit is contained in:
@@ -30,11 +30,6 @@ type ImageInterface interface {
|
||||
// vendor ramdisk partition).
|
||||
VendorRamdiskVariantNeeded(ctx BaseModuleContext) bool
|
||||
|
||||
// DebugRamdiskVariantNeeded should return true if the module needs a debug ramdisk variant (installed on the
|
||||
// debug ramdisk partition: $(PRODUCT_OUT)/debug_ramdisk/first_stage_ramdisk if BOARD_USES_RECOVERY_AS_ROOT is
|
||||
// true, $(PRODUCT_OUT)/debug_ramdisk otherise).
|
||||
DebugRamdiskVariantNeeded(ctx BaseModuleContext) bool
|
||||
|
||||
// RecoveryVariantNeeded should return true if the module needs a recovery variant (installed on the
|
||||
// recovery partition).
|
||||
RecoveryVariantNeeded(ctx BaseModuleContext) bool
|
||||
@@ -65,9 +60,6 @@ const (
|
||||
|
||||
// VendorRamdiskVariation means a module to be installed to vendor ramdisk image.
|
||||
VendorRamdiskVariation string = "vendor_ramdisk"
|
||||
|
||||
// DebugRamdiskVariation means a module to be installed to debug ramdisk image.
|
||||
DebugRamdiskVariation string = "debug_ramdisk"
|
||||
)
|
||||
|
||||
// imageMutator creates variants for modules that implement the ImageInterface that
|
||||
@@ -91,9 +83,6 @@ func imageMutator(ctx BottomUpMutatorContext) {
|
||||
if m.VendorRamdiskVariantNeeded(ctx) {
|
||||
variations = append(variations, VendorRamdiskVariation)
|
||||
}
|
||||
if m.DebugRamdiskVariantNeeded(ctx) {
|
||||
variations = append(variations, DebugRamdiskVariation)
|
||||
}
|
||||
if m.RecoveryVariantNeeded(ctx) {
|
||||
variations = append(variations, RecoveryVariation)
|
||||
}
|
||||
|
Reference in New Issue
Block a user