#!/bin/sh
here=`dirname $0`
native_goroot=`readlink -f $here/../../lib/riscv64-poky-linux/go`
export GOARCH="riscv64"
export GOOS="linux"
test -n "$GOARM" || export GOARM=""
test -n "$GO386" || export GO386=""
test -n "$GOMIPS" || export GOMIPS=""
export GOTOOLDIR="$native_goroot/pkg/tool/linux_386"
test -n "$GOROOT" || export GOROOT="$OECORE_TARGET_SYSROOT//usr/lib/go"
$here/../../lib/riscv64-poky-linux/go/bin/gofmt "$@"
