Remove InstallBypassMake and ToMakePath
InstallBypassMake and ToMakePath are obsolete, remove them. Bug: 204136549 Test: m checkbuild Change-Id: Ie5a6f7254b3d317ed6039e114ed6aec35e1ce273
This commit is contained in:
@@ -429,7 +429,6 @@ type ModuleContext interface {
|
||||
InstallInRecovery() bool
|
||||
InstallInRoot() bool
|
||||
InstallInVendor() bool
|
||||
InstallBypassMake() bool
|
||||
InstallForceOS() (*OsType, *ArchType)
|
||||
|
||||
RequiredModuleNames() []string
|
||||
@@ -496,7 +495,6 @@ type Module interface {
|
||||
InstallInRecovery() bool
|
||||
InstallInRoot() bool
|
||||
InstallInVendor() bool
|
||||
InstallBypassMake() bool
|
||||
InstallForceOS() (*OsType, *ArchType)
|
||||
HideFromMake()
|
||||
IsHideFromMake() bool
|
||||
@@ -1704,10 +1702,6 @@ func (m *ModuleBase) InstallInRoot() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *ModuleBase) InstallBypassMake() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (m *ModuleBase) InstallForceOS() (*OsType, *ArchType) {
|
||||
return nil, nil
|
||||
}
|
||||
@@ -2829,10 +2823,6 @@ func (m *moduleContext) InstallInRoot() bool {
|
||||
return m.module.InstallInRoot()
|
||||
}
|
||||
|
||||
func (m *moduleContext) InstallBypassMake() bool {
|
||||
return m.module.InstallBypassMake()
|
||||
}
|
||||
|
||||
func (m *moduleContext) InstallForceOS() (*OsType, *ArchType) {
|
||||
return m.module.InstallForceOS()
|
||||
}
|
||||
@@ -2857,12 +2847,6 @@ func (m *moduleContext) skipInstall() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
if m.Device() {
|
||||
if m.Config().KatiEnabled() && !m.InstallBypassMake() {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -2921,7 +2905,7 @@ func (m *moduleContext) installFile(installPath InstallPath, name string, srcPat
|
||||
orderOnlyDeps = deps
|
||||
}
|
||||
|
||||
if m.Config().KatiEnabled() && m.InstallBypassMake() {
|
||||
if m.Config().KatiEnabled() {
|
||||
// When creating the install rule in Soong but embedding in Make, write the rule to a
|
||||
// makefile instead of directly to the ninja file so that main.mk can add the
|
||||
// dependencies from the `required` property that are hard to resolve in Soong.
|
||||
@@ -2980,7 +2964,7 @@ func (m *moduleContext) InstallSymlink(installPath InstallPath, name string, src
|
||||
}
|
||||
if !m.skipInstall() {
|
||||
|
||||
if m.Config().KatiEnabled() && m.InstallBypassMake() {
|
||||
if m.Config().KatiEnabled() {
|
||||
// When creating the symlink rule in Soong but embedding in Make, write the rule to a
|
||||
// makefile instead of directly to the ninja file so that main.mk can add the
|
||||
// dependencies from the `required` property that are hard to resolve in Soong.
|
||||
@@ -3026,7 +3010,7 @@ func (m *moduleContext) InstallAbsoluteSymlink(installPath InstallPath, name str
|
||||
m.module.base().hooks.runInstallHooks(m, nil, fullInstallPath, true)
|
||||
|
||||
if !m.skipInstall() {
|
||||
if m.Config().KatiEnabled() && m.InstallBypassMake() {
|
||||
if m.Config().KatiEnabled() {
|
||||
// When creating the symlink rule in Soong but embedding in Make, write the rule to a
|
||||
// makefile instead of directly to the ninja file so that main.mk can add the
|
||||
// dependencies from the `required` property that are hard to resolve in Soong.
|
||||
|
Reference in New Issue
Block a user