forked from flatpak/flatpak
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
HACK: Allow cross-compiling with qemu-user
Get qemu-arm-static from: https://github.com/rtaubes/fedora-qemu-arm-static (better, from the upcoming RPMs) # echo ":qemu-arm-static:M::\x7fELF\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:/app/bin/flatpak-arch-emulator:" > /usr/lib/binfmt.d/qemu-arm-static.conf # systemctl restart systemd-binfmt.service and verify through: $ cat /proc/sys/fs/binfmt_misc/qemu-arm-static Make sure you have the arm Platform and Sdk runtimes for arm installed: $ flatpak list --runtime --show-details | grep arm should show 5 runtimes (include a Locale one) $ flatpak --arch=arm --arch-emulator=/path/to/qemu-arm-static ... This patch is completely obsoleted by the changes merged into the Linux kernel at the end of July 2016: https://lists.linuxfoundation.org/pipermail/containers/2016-July/037302.html TODO: - Get configuration into distributions so cross-compilation works out-of-the-box. - Offer architecture choice when building in Builder
- Loading branch information
Showing
4 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters