Skip to content

Instantly share code, notes, and snippets.

@thierry-FreeBSD
Last active December 21, 2022 16:07
Show Gist options
  • Save thierry-FreeBSD/b164fbaee68ed22802ed9c3bf7528dd0 to your computer and use it in GitHub Desktop.
Save thierry-FreeBSD/b164fbaee68ed22802ed9c3bf7528dd0 to your computer and use it in GitHub Desktop.
FreeBSD : create a poudriere jail to build packages by emulation for arm64-aarch64
# pkg install qemu-user-static
# binmiscctl add arm64-aarch64 \
--interpreter "/usr/local/bin/qemu-aarch64-static" \
--magic "\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00" \
--mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" \
--size 20 --set-enabled
# service qemu_user_static onestart
(you can also add qemu_user_static_enable="YES" to your /etc/rc.conf )
# poudriere jail -c -j 13arm64 -a arm64.aarch64 -v 13.1-RELEASE
Of course 13.1-RELEASE can be replaced by the release of your choice.
Et voilà !
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment