Merge changes I04f2f558,Ie16a6264,I83a3be9f,Icb3eeef3
* changes: Rename amod variable in AndroidMkEntries.fillInEntries to base Make HostToolPath, HostJNIToolPath and sboxPathForToolRel use pathForInstall Add PathForGoBinary Remove PathForOutput from InstallPathToOnDevicePath
This commit is contained in:
@@ -1458,12 +1458,7 @@ func apexFileForPyBinary(ctx android.BaseModuleContext, py *python.Module) apexF
|
||||
|
||||
func apexFileForGoBinary(ctx android.BaseModuleContext, depName string, gb bootstrap.GoBinaryTool) apexFile {
|
||||
dirInApex := "bin"
|
||||
s, err := filepath.Rel(android.PathForOutput(ctx).String(), gb.InstallPath())
|
||||
if err != nil {
|
||||
ctx.ModuleErrorf("Unable to use compiled binary at %s", gb.InstallPath())
|
||||
return apexFile{}
|
||||
}
|
||||
fileToCopy := android.PathForOutput(ctx, s)
|
||||
fileToCopy := android.PathForGoBinary(ctx, gb)
|
||||
// NB: Since go binaries are static we don't need the module for anything here, which is
|
||||
// good since the go tool is a blueprint.Module not an android.Module like we would
|
||||
// normally use.
|
||||
|
Reference in New Issue
Block a user