mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-24 07:51:03 +02:00
eclass/coreos-go: add ppc64 and x86 arch to go_get_arch
This patch enabled ppc64 and x86 arch detection. i.e. When use go-1.6.2 compiler, we can build go app on ppc64 and x86 arch.
This commit is contained in:
parent
e8e93e6287
commit
67dca5d3df
@ -22,6 +22,9 @@ go_get_arch() {
|
||||
local portage_arch=$(tc-arch ${CHOST})
|
||||
case "${portage_arch}" in
|
||||
x86) echo 386;;
|
||||
x64-*) echo amd64;;
|
||||
ppc64)
|
||||
[[ "$(tc-endian)" = big ]] && echo ppc64 || echo ppc64le ;;
|
||||
*) echo "${portage_arch}";;
|
||||
esac
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user