Skip to content

Commit

Permalink
qemu-binfmt-conf.sh: split 'arm'/'arm64' and 'armeb'/'armeb64' families
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Apr 21, 2020
1 parent a017d79 commit 699f972
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions scripts/qemu-binfmt-conf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ s390x_family=s390x

aarch64_magic='\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00'
aarch64_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff'
aarch64_family=arm
aarch64_family=arm64

aarch64_be_magic='\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7'
aarch64_be_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff'
aarch64_be_family=armeb
aarch64_be_family=armeb64

hppa_magic='\x7f\x45\x4c\x46\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x0f'
hppa_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff'
Expand Down Expand Up @@ -173,10 +173,16 @@ qemu_get_family() {
ppc64el|ppc64le)
echo "ppcle"
;;
arm|armel|armhf|arm64|armv[4-9]*l|aarch64)
arm64|armv[8-9]*l|aarch64)
echo "arm64"
;;
arm|armel|armhf|armv[4-7]*l)
echo "arm"
;;
armeb|armv[4-9]*b|aarch64_be)
armv[8-9]*b|aarch64_be)
echo "armeb64"
;;
armeb|armv[4-7]*b)
echo "armeb"
;;
sparc*)
Expand Down

0 comments on commit 699f972

Please sign in to comment.