diff --git a/script/lib.sh b/script/lib.sh index f79dc3c2335..8ba99a995d3 100644 --- a/script/lib.sh +++ b/script/lib.sh @@ -45,12 +45,21 @@ function set_cross_vars() { armel) HOST=arm-${PLATFORM}eabi GOARCH=arm - GOARM=6 + GOARM=5 ;; armhf) HOST=arm-${PLATFORM}eabihf GOARCH=arm - GOARM=7 + # "armhf" means ARMv7 for Debian, ARMv6 for Raspbian. + # ARMv6 is chosen here for compatibility. + # + # https://wiki.debian.org/RaspberryPi + # + # > Raspberry Pi OS builds a single image for all of the Raspberry families, + # > so you will get an armhf 32-bit, hard floating-point system, but built + # > for the ARMv6 ISA (with VFP2), unlike Debian's ARMv7 ISA (with VFP3) + # > port. + GOARM=6 ;; ppc64le) HOST=powerpc64le-${PLATFORM}