Revert^3 "Add debug ramdisk variant"
836a8f3d61
Change-Id: If59529238e26a197bc33b10245b88f538f280ed0
This commit is contained in:
@@ -106,7 +106,6 @@ type ModuleInstallPathContext interface {
|
||||
InstallInSanitizerDir() bool
|
||||
InstallInRamdisk() bool
|
||||
InstallInVendorRamdisk() bool
|
||||
InstallInDebugRamdisk() bool
|
||||
InstallInRecovery() bool
|
||||
InstallInRoot() bool
|
||||
InstallBypassMake() bool
|
||||
@@ -1690,16 +1689,6 @@ func modulePartition(ctx ModuleInstallPathContext, os OsType) string {
|
||||
if !ctx.InstallInRoot() {
|
||||
partition += "/system"
|
||||
}
|
||||
} else if ctx.InstallInDebugRamdisk() {
|
||||
// The module is only available after switching root into
|
||||
// /first_stage_ramdisk. To expose the module before switching root
|
||||
// on a device without a dedicated recovery partition, install the
|
||||
// recovery variant.
|
||||
if ctx.DeviceConfig().BoardUsesRecoveryAsBoot() {
|
||||
partition = "debug_ramdisk/first_stage_ramdisk"
|
||||
} else {
|
||||
partition = "debug_ramdisk"
|
||||
}
|
||||
} else if ctx.InstallInRecovery() {
|
||||
if ctx.InstallInRoot() {
|
||||
partition = "recovery/root"
|
||||
@@ -1870,7 +1859,6 @@ type testModuleInstallPathContext struct {
|
||||
inSanitizerDir bool
|
||||
inRamdisk bool
|
||||
inVendorRamdisk bool
|
||||
inDebugRamdisk bool
|
||||
inRecovery bool
|
||||
inRoot bool
|
||||
forceOS *OsType
|
||||
@@ -1903,10 +1891,6 @@ func (m testModuleInstallPathContext) InstallInVendorRamdisk() bool {
|
||||
return m.inVendorRamdisk
|
||||
}
|
||||
|
||||
func (m testModuleInstallPathContext) InstallInDebugRamdisk() bool {
|
||||
return m.inDebugRamdisk
|
||||
}
|
||||
|
||||
func (m testModuleInstallPathContext) InstallInRecovery() bool {
|
||||
return m.inRecovery
|
||||
}
|
||||
|
Reference in New Issue
Block a user