docker: fix crossbuild from aarch64

This commit is contained in:
ed 2025-10-26 23:30:57 +01:00
parent e005930cd0
commit e9ab040ce8

View file

@ -85,6 +85,11 @@ filt=
wget https://github.com/9001/copyparty/releases/latest/download/copyparty-sfx.py -O $fp wget https://github.com/9001/copyparty/releases/latest/download/copyparty-sfx.py -O $fp
} }
# enable arm32 crossbuild from aarch64 (macbook or whatever)
[ $(uname -m) = aarch64 ] && [ ! -e /proc/sys/fs/binfmt_misc/qemu-arm ] &&
echo ":qemu-arm:M:0:\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm-static:F" |
sudo tee >/dev/null /proc/sys/fs/binfmt_misc/register
# kill abandoned builders # kill abandoned builders
ps aux | awk '/bin\/qemu-[^-]+-static/{print$2}' | xargs -r kill -9 ps aux | awk '/bin\/qemu-[^-]+-static/{print$2}' | xargs -r kill -9