soong: generator: Update for AP4A
Change-Id: I57d820cd25fa8fa4557f671510c39bfe9923845d
This commit is contained in:
committed by
Michael Bestas
parent
43c1a8bd59
commit
5319975d22
@@ -20,7 +20,6 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/google/blueprint"
|
"github.com/google/blueprint"
|
||||||
"github.com/google/blueprint/bootstrap"
|
|
||||||
"github.com/google/blueprint/proptools"
|
"github.com/google/blueprint/proptools"
|
||||||
|
|
||||||
"android/soong/android"
|
"android/soong/android"
|
||||||
@@ -161,13 +160,6 @@ func (g *Module) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
path = t.HostToolPath()
|
path = t.HostToolPath()
|
||||||
} else if t, ok := module.(bootstrap.GoBinaryTool); ok {
|
|
||||||
if s, err := filepath.Rel(android.PathForOutput(ctx).String(), t.InstallPath()); err == nil {
|
|
||||||
path = android.OptionalPathForPath(android.PathForOutput(ctx, s))
|
|
||||||
} else {
|
|
||||||
ctx.ModuleErrorf("cannot find path for %q: %v", tool, err)
|
|
||||||
break
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
ctx.ModuleErrorf("%q is not a host tool provider", tool)
|
ctx.ModuleErrorf("%q is not a host tool provider", tool)
|
||||||
break
|
break
|
||||||
|
Reference in New Issue
Block a user