diff options
| -rw-r--r-- | Makefile | 2 | ||||
| -rwxr-xr-x | hack/lib/golang.sh | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -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 |
