From 42c0601730dfea03b57b60e8db5341f8fb538934 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Wed, 27 Sep 2023 04:13:21 +0900 Subject: [PATCH] script/lib.sh: set GOARM=5 for armel, GOARM=6 for armhf https://github.com/golang/go/wiki/GoArm#supported-operating-systems > ARM on Linux. You must run an EABI kernel. > These are generally known as armel for softfloat (compatible with ARMv5) > or armhf for hardware floating point (ARMv6 and above). Prior to this commit, the script was setting GOARM=6 for armel, GOARM=7 for armhf. Fix issue 4033 Signed-off-by: Akihiro Suda --- script/lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/lib.sh b/script/lib.sh index f79dc3c2335..92293ae71eb 100644 --- a/script/lib.sh +++ b/script/lib.sh @@ -45,12 +45,12 @@ function set_cross_vars() { armel) HOST=arm-${PLATFORM}eabi GOARCH=arm - GOARM=6 + GOARM=5 ;; armhf) HOST=arm-${PLATFORM}eabihf GOARCH=arm - GOARM=7 + GOARM=6 ;; ppc64le) HOST=powerpc64le-${PLATFORM}