summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xhack/lib/golang.sh1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5b876c5fa..d1c7718c1 100644
--- a/Makefile
+++ b/Makefile
@@ -159,7 +159,7 @@ define CROSSBUILD_HELP_INFO
# If not specified, "everything" will be cross build.
#
# GOARM: go arm value, now support:$(GOARM_VALUES)
-# If not specified ,default use GOARM=GOARM8
+# If not specified, build binary for ARMv8 by default.
#
#
# Example:
diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh
index a42b5582b..b028b33b3 100755
--- a/hack/lib/golang.sh
+++ b/hack/lib/golang.sh
@@ -294,6 +294,7 @@ kubeedge::golang::cross_build_place_binaries() {
local name="${bin##*/}"
if [ "${goarm}" == "8" ]; then
set -x
+ GOARM="" # need to clear the value since golang compiler doesn't allow this env when building the binary for ARMv8.
GOARCH=arm64 GOOS="linux" CGO_ENABLED=1 CC=aarch64-linux-gnu-gcc go build -o ${KUBEEDGE_OUTPUT_BINPATH}/${name} -ldflags "$ldflags" $bin
set +x
elif [ "${goarm}" == "7" ]; then