Try to compile ARM64 by pushing newest qemu user

This commit is contained in:
Kamil Trzciński 2022-05-04 10:16:31 +02:00
parent 47097cdd06
commit 3121cbeb2e
3 changed files with 11 additions and 0 deletions

9
scripts/register-binfmt Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
ls -al /proc/sys/fs/binfmt_misc
echo -1 > /proc/sys/fs/binfmt_misc/qemu-aarch64 || true
apk add -U qemu-aarch64
echo ":qemu-aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-aarch64:OCF" > /proc/sys/fs/binfmt_misc/register