mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-24 16:01:09 +02:00
Merge pull request #1951 from marineam/go-arch
eclass/coreos-go: add ppc64 and x86 arch to go_get_arch
This commit is contained in:
commit
b96c191cf8
@ -22,6 +22,9 @@ go_get_arch() {
|
|||||||
local portage_arch=$(tc-arch ${CHOST})
|
local portage_arch=$(tc-arch ${CHOST})
|
||||||
case "${portage_arch}" in
|
case "${portage_arch}" in
|
||||||
x86) echo 386;;
|
x86) echo 386;;
|
||||||
|
x64-*) echo amd64;;
|
||||||
|
ppc64)
|
||||||
|
[[ "$(tc-endian)" = big ]] && echo ppc64 || echo ppc64le ;;
|
||||||
*) echo "${portage_arch}";;
|
*) echo "${portage_arch}";;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user