containerd: Fix build on 386

Go only understands "386" as target arch, not "i586". Adjust this.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
Jan Kiszka 2017-02-10 13:14:41 +01:00 committed by Bruce Ashfield
parent c478d69c1b
commit 88a28bbbeb

View File

@ -35,6 +35,9 @@ do_compile() {
if [ "${TARGET_ARCH}" = "aarch64" ]; then
export GOARCH="arm64"
fi
if [ "${TARGET_ARCH}" = "i586" ]; then
export GOARCH="386"
fi
# Set GOPATH. See 'PACKAGERS.md'. Don't rely on
# docker to download its dependencies but rather