Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp838941rwb; Mon, 26 Sep 2022 06:32:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM557438gr7U87Dpug3WmV2vXhf8D6zGqXnNC5Ur8RODVdRKscVal6Qoj2nGlqENwWZ7zLKL X-Received: by 2002:a17:907:970c:b0:782:e3f1:af60 with SMTP id jg12-20020a170907970c00b00782e3f1af60mr11039567ejc.757.1664199162709; Mon, 26 Sep 2022 06:32:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664199162; cv=none; d=google.com; s=arc-20160816; b=EzhlUawXte/QbR/EhQUWLzn5b9CxhrLEb5lDF9ifOULA9WiSCL/fPMzrWGEIDGNLR3 gxOS0lXo7WM8tr5paHGAso5yhyZc3WWj97pgPxl7cj0uVeXYwP+HhXZCNNQIeeLeEZwp GMhWrcZ4dQJPEzJmb5hgL4QLWAJkNkSCbe5uPpRYmjbkj4kj5CnBrwbBu6//I1GaPJsu /t3oOSp/gOjzJCSgjnkSChl+cIWZsP0McQekTEAjACvYC9Xi9W0SHwMMS93pFl/y0CS3 mKUhw0Jknc09KV5b5GNz/x363INuyHSJTQlF7Qpt6+UteL8KkBG1h3oIEahvYQzfsrYE yggw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=El6s5Me40WjqNMPIsI01upfNOG9tCRVFThB/uqNE3Fc=; b=B5Phat6soRReW1vWfnWXJ7P9YlrYgxc8F+4h/5waqcelaBbh3yk/0ivh1u8fFfiX0W 5YTxpRkFomabsKg8TfzJ7p6gzl7VxgNLWcccQhizCHnuXXf77OqFWt/rnNn1EHpVsi9W A+yxtpbEOUuBqnOePcHWC7YQUH5djnfu8+WJJzMa7KfheoQ5Y3wHSNe0ray9izRfqTw6 NeBw0g4yD/sHtfmi7BMNUC8nHOVpFGcgtc8zPwyL6wzPNN5aQDtD2SccIavggRgC2t8L T+E+QEz/+bmRirbXgI+nylSkZoosJ5jzYcPv/yiBKXNYIO2sVqEDgOdQi+AS5NvPEuDG BSsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="UrK9/XS2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w18-20020a056402269200b004546d8c2a18si18388733edd.187.2022.09.26.06.32.10; Mon, 26 Sep 2022 06:32:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="UrK9/XS2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235250AbiIZNFP (ORCPT + 99 others); Mon, 26 Sep 2022 09:05:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235329AbiIZNEl (ORCPT ); Mon, 26 Sep 2022 09:04:41 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 184391BB6CB for ; Mon, 26 Sep 2022 04:36:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664192133; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=El6s5Me40WjqNMPIsI01upfNOG9tCRVFThB/uqNE3Fc=; b=UrK9/XS2jlcN09GVveJZTR5qNDu+7Fn4F0fXIuHRDH55xdT6rAuTEd5ujyD5OUBZw9bUeT WcgnCOWHR5qLc+roju8GHu75u/0boz6esVO85TUqCHyJjIpm25rKUJAzHqt5ZhDyvyO6t/ ej9OokJIoDdN+DpZCzGsI/XOhjtWecs= Received: from mail-vk1-f200.google.com (mail-vk1-f200.google.com [209.85.221.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-661-ez9VVGlVOiOWWBgYFo8z7g-1; Mon, 26 Sep 2022 07:35:32 -0400 X-MC-Unique: ez9VVGlVOiOWWBgYFo8z7g-1 Received: by mail-vk1-f200.google.com with SMTP id e17-20020a056122023100b003a1e6de5bf9so2240202vko.17 for ; Mon, 26 Sep 2022 04:35:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=El6s5Me40WjqNMPIsI01upfNOG9tCRVFThB/uqNE3Fc=; b=xd8IgNXdz4nWi62+2a958AHK2aV3Ja4qGla3uUGGILEtWnGQQKwfBEGdqX5aQqzjzF tjfX05r6g6WAGg3EiMy8tK9A1UmGLzimBT6IoYUjlE8wDq+xQ6HRADXWuxfxza+6XXiU uYCyJMPTkR1NWJE/E8CuDmgDBX6JzpdK2++CkOMdcP1SDNsZtmz761CGkC1m9ObS0ko0 Wmuk7n4Y+IQk2i9c2bhzsfo49yfSNxUYj6EGzQTVZ38/a2NlFcSly2X5y3Nw8FfBa+UE DRx5HTXhQ4fS4guYCimMKgNtWpCSSv89egg7PjjGcHRNzUFroWHU9+UuF75y724acPOH WjnQ== X-Gm-Message-State: ACrzQf0uxyeC110buzxP6MFpN5VaUmoDzsbIrKiYVMjpvGlnTv6XJeq6 8QCkxA/jXxsY5ZD9eoJH2ANFwoYpWDXWH0ZtbEbtKknu1tVQYHL9wjzKJPurh3n3eqKQx55x2ac NDWJ0i0I6LTxLsJCtc3VEIlayrsUVRJ3NDsHf9WRX X-Received: by 2002:a67:dc98:0:b0:398:c70f:9357 with SMTP id g24-20020a67dc98000000b00398c70f9357mr7700218vsk.76.1664192131940; Mon, 26 Sep 2022 04:35:31 -0700 (PDT) X-Received: by 2002:a67:dc98:0:b0:398:c70f:9357 with SMTP id g24-20020a67dc98000000b00398c70f9357mr7700205vsk.76.1664192131763; Mon, 26 Sep 2022 04:35:31 -0700 (PDT) MIME-Version: 1.0 References: <478D9484-E404-4A96-908C-4DE0F7C23997@cutebit.org> In-Reply-To: <478D9484-E404-4A96-908C-4DE0F7C23997@cutebit.org> From: Eric Curtin Date: Mon, 26 Sep 2022 12:35:15 +0100 Message-ID: Subject: Re: Any interest in building the Linux kernel from a MacOS host? To: =?UTF-8?Q?Martin_Povi=C5=A1er?= Cc: Sven Peter , Nick Desaulniers , Linus Torvalds , Masahiro Yamada , Hector Martin , Nick Desaulniers , clang-built-linux , Linux Kbuild mailing list , Linux Kernel Mailing List , asahi@lists.linux.dev, linux-arm Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 26 Sept 2022 at 10:21, Martin Povi=C5=A1er = wrote: > > FWIW my current workflow includes building the kernel under macOS, so > there=E2=80=99s some interest from me, but that will pass once the portin= g > project progresses enough. So far I get by with some local duct tape. > > > On 26. 9. 2022, at 10:09, Sven Peter 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 ve= ry > > 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). My way of doing this efficiently is to create throwaway commits, in git, just to push code around to various physical or virtual machines in my house. Because git is really fast at pushing incremental changes around: https://github.com/ericcurtin/staging/blob/master/git-push.sh But if you eventually find a way to share a filesystem (which wouldn't slow down the build) between MacOS and a Linux host via qemu or something like that I'd be interested, that's most ideal of course. > > Martin > > >> > >> Take a look at the commit message linked below for the trials & > >> tribulations: > >> https://github.com/ClangBuiltLinux/linux/commit/f06333e29addbc3d714adb= 340355f471c1dfe95a > >> > >> Thanks, > >> ~Nick Desaulniers > > > > > > Best, > > > > > > Sven > > > >