eclass/coreos-go: Fill out go_get_arch

Add more arches to the go_get_arch() routine.

Signed-off-by: Geoff Levand <geoff@infradead.org>
This commit is contained in:
Geoff Levand 2015-08-26 15:23:42 -07:00
parent 0230a8fc1f
commit 54eae609a1

View File

@ -18,7 +18,12 @@ DEPEND="dev-lang/go"
# @FUNCTION: go_get_arch # @FUNCTION: go_get_arch
# @USAGE: export GOARCH=$(go_get_arch) # @USAGE: export GOARCH=$(go_get_arch)
go_get_arch() { go_get_arch() {
echo ${ARCH} # By chance most portage arch names match Go
local portage_arch=$(tc-arch ${CHOST})
case "${portage_arch}" in
x86) echo 386;;
*) echo "${portage_arch}";;
esac
} }
# @FUNCTION: go_build # @FUNCTION: go_build