From: Ricardo Wurmus <rekado@elephly.net>
To: Danny Milosavljevic <dannym@scratchpost.org>
Cc: 34304@debbugs.gnu.org
Subject: [bug#34304] [PATCH] doc: Document how to enable qemu binfmt service and how to use it.
Date: Mon, 04 Feb 2019 00:59:08 +0100 [thread overview]
Message-ID: <87d0o8whir.fsf@elephly.net> (raw)
In-Reply-To: <20190203154601.32098-1-dannym@scratchpost.org> (Danny Milosavljevic's message of "Sun, 3 Feb 2019 16:46:01 +0100")
Danny Milosavljevic <dannym@scratchpost.org> writes:
> * doc/contributing.texi (Submitting Patches): Document how to enable qemu
> binfmt service and how to use it.
Sounds good to me!
> +We recommend you also try to build the package on other platforms. We
> +do not presume that you have all the platforms, therefore we recommend
> +using the qemu binfmt service of GuixSD. In order to enable it, add
> +the following service to your operating-system configuration's services:
How about this:
--8<---------------cut here---------------start------------->8---
We recommend you also try building the package on other supported
platforms. As you may not have access to actual hardware platforms, we
recommend using the @code{qemu-binfmt-service-type} to emulate them. In
order to enable it, add the following service to the list of services in
your @code{operating-system} configuration:
--8<---------------cut here---------------end--------------->8---
> +You can then build packages like the following, respectively:
> +@example
> +guix build --system=armhf-linux --rounds=2 my-package
> +guix build --system=aarch64-linux --rounds=2 my-package
> +guix build --system=powerpc-linux --rounds=2 my-package
> +guix build --system=mips64el-linux --rounds=2 my-package
> +@end example
How about:
--8<---------------cut here---------------start------------->8---
You can then build packages for different platforms by specifying the
@code{--system} option. For example, to build the “hello” package for
the armhf, aarch64, powerpc, or mips64 architectures, you would run the
following commands, respectively:
@example
guix build --system=armhf-linux --rounds=2 hello
guix build --system=aarch64-linux --rounds=2 hello
guix build --system=powerpc-linux --rounds=2 hello
guix build --system=mips64el-linux --rounds=2 hello
@end example
--8<---------------cut here---------------end--------------->8---
next prev parent reply other threads:[~2019-02-04 0:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-03 15:46 [bug#34304] [PATCH] doc: Document how to enable qemu binfmt service and how to use it Danny Milosavljevic
2019-02-03 23:59 ` Ricardo Wurmus [this message]
2019-02-04 16:58 ` bug#34304: " Danny Milosavljevic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d0o8whir.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=34304@debbugs.gnu.org \
--cc=dannym@scratchpost.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.