Skip to content

Commit 0a55c8e

Browse files
infinity0alexcrichton
authored andcommitted
Support armhf abi on 64-bit ARM cpus
They report their `uname -m` as armv8l rather than aarch64. Patch originally by Matthias Klose <[email protected]>
1 parent f573db4 commit 0a55c8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ case $CFG_CPUTYPE in
512512
CFG_OSTYPE="${CFG_OSTYPE}eabihf"
513513
;;
514514

515-
armv7l)
515+
armv7l | armv8l)
516516
CFG_CPUTYPE=armv7
517517
CFG_OSTYPE="${CFG_OSTYPE}eabihf"
518518
;;

src/bootstrap/bootstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ def build_triple(self):
465465
cputype = 'i686'
466466
elif cputype in {'xscale', 'arm'}:
467467
cputype = 'arm'
468-
elif cputype == 'armv7l':
468+
elif cputype in {'armv7l', 'armv8l'}:
469469
cputype = 'arm'
470470
ostype += 'eabihf'
471471
elif cputype == 'aarch64':

0 commit comments

Comments
 (0)