soong: generator: Update for AP4A

Change-Id: I57d820cd25fa8fa4557f671510c39bfe9923845d
This commit is contained in:
Michael Bestas
2024-12-06 19:36:35 +02:00
committed by Michael Bestas
parent 43c1a8bd59
commit 5319975d22

View File

@@ -20,7 +20,6 @@ import (
"strings"
"github.com/google/blueprint"
"github.com/google/blueprint/bootstrap"
"github.com/google/blueprint/proptools"
"android/soong/android"
@@ -161,13 +160,6 @@ func (g *Module) GenerateAndroidBuildActions(ctx android.ModuleContext) {
break
}
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 {
ctx.ModuleErrorf("%q is not a host tool provider", tool)
break