mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 15:01:00 +02:00
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:
parent
0230a8fc1f
commit
54eae609a1
@ -18,7 +18,12 @@ DEPEND="dev-lang/go"
|
||||
# @FUNCTION: go_get_arch
|
||||
# @USAGE: export GOARCH=$(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
|
||||
|
Loading…
x
Reference in New Issue
Block a user