--- Begin Message ---
Subject: |
[wishlist] Add build hook to build for other platforms using qemu |
Date: |
Tue, 31 Mar 2015 17:37:07 -0400 |
It would be great if we had a build hook to enable guix-daemon to
natively build packages for any system supported by qemu, by running the
build processes within qemu.
Mark
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#20239: [PATCH 1/4] services: Add qemu-binfmt. |
Date: |
Thu, 11 Jan 2018 14:46:15 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello,
Ludovic Courtès <address@hidden> skribis:
> * gnu/services/virtualization.scm (<qemu-platform>): New record type.
> (bv): New macro.
> (%i386, %i486, %alpha, %arm, %armeb, %sparc, %sparc32plus)
> (%ppc, %ppc64, %ppc64le, %m68k, %mips, %mipsel, %mipsn32el)
> (%mips64, %mips64el, %sh4, %sh4eb, %s390x, %aarch64, %hppa)
> (%qemu-platforms): New variables.
> (lookup-qemu-platforms): New procedure.
> (<qemu-binfmt-configuration>): New record type.
> (qemu-platform->binfmt): New procedures.
> (%binfmt-mount-point, %binfmt-register-file, %binfmt-file-system)
> (qemu-binfmt-service-type): New variables.
> (qemu-binfmt-shepherd-services): New procedures.
> * doc/guix.texi (Virtualization Services): Add "Transparent Emulation
> with QEMU" heading.
I fixed a couple of bugs here:
- open the “…/register” file once for each platform instead of once
for all;
- hex-encode all the characters in the magic and mask fields of
binfmt_misc (before that binfmt_misc would ignore everything after
the first NUL).
I also added cross-references under the description of --system in the
manual, and a note about the ‘F’ flag of binfmt_misc.
Pushed now!
Thanks,
Ludo’.
--- End Message ---