mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
script/lib.sh: set GOARM=5 for armel, GOARM=6 for armhf
"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. Prior to this commit, the script was setting GOARM=6 for armel, GOARM=7 for armhf. Fix issue 4033 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
+11
-2
@@ -45,12 +45,21 @@ function set_cross_vars() {
|
|||||||
armel)
|
armel)
|
||||||
HOST=arm-${PLATFORM}eabi
|
HOST=arm-${PLATFORM}eabi
|
||||||
GOARCH=arm
|
GOARCH=arm
|
||||||
GOARM=6
|
GOARM=5
|
||||||
;;
|
;;
|
||||||
armhf)
|
armhf)
|
||||||
HOST=arm-${PLATFORM}eabihf
|
HOST=arm-${PLATFORM}eabihf
|
||||||
GOARCH=arm
|
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)
|
ppc64le)
|
||||||
HOST=powerpc64le-${PLATFORM}
|
HOST=powerpc64le-${PLATFORM}
|
||||||
|
|||||||
Reference in New Issue
Block a user