Skip to content
Myr

Makefile: build 32-bit binary on armv8l (#3434)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

armv8l is always 32-bit and should implement the armv7 ISA, so just use the same filename as for armv7. This avoids wrongly building a 64-bit binary because of an incorrect assumption of what 'armv8l' is (a 32-bit system). Obviously, we should not then build a 64-bit (arm64) binary. Especially given armv8l is often used in arm32-on-arm64 chroots to build stuff for weaker-powered arm32 devices.

authored by Sam James · committed by GitHub · parent dc97d48 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: Sam James <sam@gentoo.org>

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:Makefile+3 added-1 removed
55 unmodified lines
56 BINARY := $(BINARYARM6)57else ifeq ($(UNAME_M),armv7l)58 BINARY := $(BINARYARM7)59else ifeq ($(UNAME_M),armv8l)60 # armv8l is always 32-bit and should implement the armv7 ISA, so61 # just use the same filename as for armv7.60 BINARY := $(BINARYARM8)62 BINARY := $(BINARYARM7)63else ifeq ($(UNAME_M),arm64)64 BINARY := $(BINARYARM8)65else ifeq ($(UNAME_M),aarch64)66 BINARY := $(BINARYARM8)
114 unmodified lines