diff options
| -rw-r--r-- | common/config.go | 2 | ||||
| -rw-r--r-- | common/module.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/common/config.go b/common/config.go index a4a20393..6fd6dfce 100644 --- a/common/config.go +++ b/common/config.go @@ -304,6 +304,6 @@ func (c *config) AllowMissingDependencies() bool { return Bool(c.ProductVariables.Unbundled_build) } -func (c *config) SkipInstall() bool { +func (c *config) SkipDeviceInstall() bool { return c.EmbeddedInMake() || Bool(c.Mega_device) } diff --git a/common/module.go b/common/module.go index 988104ff..ad2ba4e7 100644 --- a/common/module.go +++ b/common/module.go @@ -519,7 +519,7 @@ func (a *androidModuleContext) InstallFileName(installPath OutputPath, name stri fullInstallPath := installPath.Join(a, name) - if !a.AConfig().SkipInstall() { + if a.Host() || !a.AConfig().SkipDeviceInstall() { deps = append(deps, a.installDeps...) a.ModuleBuild(pctx, ModuleBuildParams{ @@ -527,7 +527,7 @@ func (a *androidModuleContext) InstallFileName(installPath OutputPath, name stri Output: fullInstallPath, Input: srcPath, OrderOnly: Paths(deps), - Default: true, + Default: !a.AConfig().EmbeddedInMake(), }) a.installFiles = append(a.installFiles, fullInstallPath) |
