mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hector Martin <marcan@marcan.st>
To: "Martin Povišer" <povik+lin@cutebit.org>,
	"Sven Peter" <sven@svenpeter.dev>,
	"Nick Desaulniers" <nick.desaulniers@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	Masahiro Yamada <masahiroy@kernel.org>,
	Nick Desaulniers <ndesaulniers@google.com>,
	clang-built-linux <llvm@lists.linux.dev>,
	Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	asahi@lists.linux.dev,
	linux-arm Mailing List <linux-arm-kernel@lists.infradead.org>
Subject: Re: Any interest in building the Linux kernel from a MacOS host?
Date: Mon, 26 Sep 2022 20:16:28 +0900	[thread overview]
Message-ID: <4fdda77e-6aed-b148-ddbc-52ef2d29b565@marcan.st> (raw)
In-Reply-To: <478D9484-E404-4A96-908C-4DE0F7C23997@cutebit.org>

On 26/09/2022 18.06, Martin Povišer wrote:
> FWIW my current workflow includes building the kernel under macOS, so
> there’s some interest from me, but that will pass once the porting
> project progresses enough. So far I get by with some local duct tape.
> 
>> On 26. 9. 2022, at 10:09, Sven Peter <sven@svenpeter.dev> wrote:
>>
>> On Mon, Sep 26, 2022, at 09:51, Nick Desaulniers wrote:
> 
> (...)
> 
>>> If this might seem helpful
>>> to anyone's workflow, I wouldn't mind pursuing this (with some
>>> cleanup, sending a more formal patch set).  Maybe this helps us
>>> bootstrap or get Linux up and running sooner on these machines?
>>
>> I've been either using a Linux VM or just a bare metal system running
>> on these machine for quite a while now to build kernels. This would've
>> been useful when I originally started though and VMs weren't working very
>> well yet so maybe it's still worth pursuing.
> 
> I really wanted to do it in a VM as a saner path, but I didn't find
> a satisfactory way to share the working source tree between the macOS
> host and Linux guest (which wouldn't slow down the build).
> 
> Martin

Just for context: Most of our (Asahi) developers' workflow involves
loading kernels over USB from another machine. That other machine can be
any OS, but if it's another M1/2 running macOS you get the additional
perk of USB-PD tooling to remote-force-reboot the target machine as well
as get a real physical serial port. The same tooling could be ported to
Linux-on-M1/2 relatively easily, but nobody has done that yet (probably
because these days we have a hypervisor that gives you a superset of
that functionality anyway, over standard USB, so it's not that necessary).

I personally use an x86 host and a hardware contraption to provide the
same hard reboot/UART functionality (for the rare case when the
hypervisor borks, to avoid having to hold down power buttons).

So there are certainly some people who'd benefit from using a macOS
machine as a build host, either for the special USB-PD functionality or
because they just like macOS as a development environment. It sounds
like getting it to work isn't that hard, so perhaps it's worth upstreaming?

- Hector

  reply	other threads:[~2022-09-26 12:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-26  7:51 Nick Desaulniers
2022-09-26  8:09 ` Sven Peter
2022-09-26  9:06   ` Martin Povišer
2022-09-26 11:16     ` Hector Martin [this message]
2022-09-26 11:35     ` Eric Curtin
2022-09-26  8:56 ` Masahiro Yamada

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=4fdda77e-6aed-b148-ddbc-52ef2d29b565@marcan.st \
    --to=marcan@marcan.st \
    --cc=asahi@lists.linux.dev \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=masahiroy@kernel.org \
    --cc=ndesaulniers@google.com \
    --cc=nick.desaulniers@gmail.com \
    --cc=povik+lin@cutebit.org \
    --cc=sven@svenpeter.dev \
    --cc=torvalds@linux-foundation.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®