Skip generating prebuilts entries for disabled modules

Change-Id: I5b17588789acb77bc5cfe2150a3a5decfd5bd01d
This commit is contained in:
Colin Cross 2015-12-15 18:07:15 -08:00
parent 7b66f15763
commit 1ef47568f3
1 changed files with 4 additions and 0 deletions

View File

@ -185,6 +185,10 @@ func translateAndroidMkModule(ctx blueprint.SingletonContext, w io.Writer, mod b
amod := m.(AndroidModule).base() amod := m.(AndroidModule).base()
data := provider.AndroidMk() data := provider.AndroidMk()
if !amod.Enabled() {
return
}
arch := amod.commonProperties.CompileArch arch := amod.commonProperties.CompileArch
prefix := "" prefix := ""