Add debug ramdisk variant.
A module will be installed to /debug_ramdisk if debug_ramdisk is set to
true.
This is a reland of f84e9c05e2
, with a fix
that removes /first_stage_ramdisk.
Bug: 184004542
Test: soong test
Change-Id: I739de63cfec6b0fec5a90f7c4741fc4d884d209c
This commit is contained in:
@@ -106,6 +106,7 @@ type ModuleInstallPathContext interface {
|
||||
InstallInSanitizerDir() bool
|
||||
InstallInRamdisk() bool
|
||||
InstallInVendorRamdisk() bool
|
||||
InstallInDebugRamdisk() bool
|
||||
InstallInRecovery() bool
|
||||
InstallInRoot() bool
|
||||
InstallBypassMake() bool
|
||||
@@ -1689,6 +1690,8 @@ func modulePartition(ctx ModuleInstallPathContext, os OsType) string {
|
||||
if !ctx.InstallInRoot() {
|
||||
partition += "/system"
|
||||
}
|
||||
} else if ctx.InstallInDebugRamdisk() {
|
||||
partition = "debug_ramdisk"
|
||||
} else if ctx.InstallInRecovery() {
|
||||
if ctx.InstallInRoot() {
|
||||
partition = "recovery/root"
|
||||
@@ -1859,6 +1862,7 @@ type testModuleInstallPathContext struct {
|
||||
inSanitizerDir bool
|
||||
inRamdisk bool
|
||||
inVendorRamdisk bool
|
||||
inDebugRamdisk bool
|
||||
inRecovery bool
|
||||
inRoot bool
|
||||
forceOS *OsType
|
||||
@@ -1891,6 +1895,10 @@ 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