Update prebuilt_etc available for snapshot
Make prebuilt_etc module available for the snapshot. This change includes implementing snapshot interface for the prebuilt_etc module so it can be added to the snapshot from the fake snapshot, or when the module is specified in the list. Bug: 192430376 Test: m nothing passed Test: Checked if the module is included in the snapshot properly Change-Id: I3574d2a1b8f8f4e5f083f3913e8768f5088d0c46
This commit is contained in:
@@ -413,6 +413,7 @@ type ModuleContext interface {
|
||||
InstallInDebugRamdisk() bool
|
||||
InstallInRecovery() bool
|
||||
InstallInRoot() bool
|
||||
InstallInVendor() bool
|
||||
InstallBypassMake() bool
|
||||
InstallForceOS() (*OsType, *ArchType)
|
||||
|
||||
@@ -471,6 +472,7 @@ type Module interface {
|
||||
InstallInDebugRamdisk() bool
|
||||
InstallInRecovery() bool
|
||||
InstallInRoot() bool
|
||||
InstallInVendor() bool
|
||||
InstallBypassMake() bool
|
||||
InstallForceOS() (*OsType, *ArchType)
|
||||
HideFromMake()
|
||||
@@ -1579,6 +1581,10 @@ func (m *ModuleBase) InstallInRecovery() bool {
|
||||
return Bool(m.commonProperties.Recovery)
|
||||
}
|
||||
|
||||
func (m *ModuleBase) InstallInVendor() bool {
|
||||
return Bool(m.commonProperties.Vendor)
|
||||
}
|
||||
|
||||
func (m *ModuleBase) InstallInRoot() bool {
|
||||
return false
|
||||
}
|
||||
@@ -2645,6 +2651,10 @@ func (m *moduleContext) InstallForceOS() (*OsType, *ArchType) {
|
||||
return m.module.InstallForceOS()
|
||||
}
|
||||
|
||||
func (m *moduleContext) InstallInVendor() bool {
|
||||
return m.module.InstallInVendor()
|
||||
}
|
||||
|
||||
func (m *moduleContext) skipInstall() bool {
|
||||
if m.module.base().commonProperties.SkipInstall {
|
||||
return true
|
||||
|
Reference in New Issue
Block a user