From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 025D856B8C; Sun, 8 Sep 2024 09:03:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725786224; cv=none; b=Zl0/zGtOOZV6f+w0lzqSKlD8QPIrVKeOXuKhoXhxjo7Oh+6FjKkyWRFBDlGqc+47lnAmw9YXDWm6r7NrgoTGHyG08UGmOE8KcaZRIvNBWZ89+bcp0zmKjhSIpWwnQJHsrjmQKN6NNu2IeX74SASjacyitgogwdbvVnJ7zXmBPPE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725786224; c=relaxed/simple; bh=iaWBGRY0Ga/QyUiWnGcCNwe6GvY+ter/ioZNDc3NI98=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=asbCa9rj+5t3QscoLXMTgRUWigwXTWnVEz5yeecmAmfNEy33HPqvzryUaKmanS2XuqkPsPSFEAFaF5WveGiJshWnAGZ/6MjtVHL7sAKqCWoSV/s8vENKJ5D8JewDglzw3QtXCPiALTnW142SRp7x079sTRKRVoEHEwIzY9mV3wY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=msrOKWhQ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="msrOKWhQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B215C4CEC3; Sun, 8 Sep 2024 09:03:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725786223; bh=iaWBGRY0Ga/QyUiWnGcCNwe6GvY+ter/ioZNDc3NI98=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=msrOKWhQM0NPDWGVtAJ5zBEdnKCnebFP9yaFEL1mSerelkJzG94ySzSfD6m0E4ojc kjMQh/ag+VyC/d780XoBD3PFZknFPAaFuYrxlcv/7ehW/GnvHaXFX6vSxvK6izDxeT 1aT8e43zs2q3ex2vaR4U5q7VCLRR17De16EZEcUEMrm6e/Ihnzg7IC+Z3iUYdB/LSl oDcnllCDJdMTn71NrJDIl+KUsuiipPjrCpjpyr+ARjQTJ57aC6uYZR+FfbtZC+MKA/ lRKaWi8C3AchITgoKamTtMqoTINB1JW/Ckv5nWk919r8jMsGBxedp0p7u2Dy37tp1T Gwnf0KlvbKv3Q== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1snDpa-00AcmB-1V; Sun, 08 Sep 2024 10:03:38 +0100 Date: Sun, 08 Sep 2024 10:03:36 +0100 Message-ID: <86cylev7o7.wl-maz@kernel.org> From: Marc Zyngier To: "Daniel Gomez (Samsung)" Cc: Masahiro Yamada , da.gomez@samsung.com, Nathan Chancellor , Nicolas Schier , Lucas De Marchi , Thomas =?UTF-8?B?SGVsbHN0csO2bQ==?= , Rodrigo Vivi , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , William Hubbs , Chris Brannon , Kirk Reiser , Samuel Thibault , Paul Moore , Stephen Smalley , Ondrej Mosnacek , Catalin Marinas , Will Deacon , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Greg Kroah-Hartman , Jiri Slaby , Nick Desaulniers , Bill Wendling , Justin Stitt , Simona Vetter , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, speakup@linux-speakup.org, selinux@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-serial@vger.kernel.org, llvm@lists.linux.dev, Finn Behrens , gost.dev@samsung.com Subject: Re: [PATCH v2 8/8] Documentation: add howto build in macos In-Reply-To: References: <20240906-macos-build-support-v2-0-06beff418848@samsung.com> <20240906-macos-build-support-v2-8-06beff418848@samsung.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.4 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: d+samsung@kruces.com, masahiroy@kernel.org, da.gomez@samsung.com, nathan@kernel.org, nicolas@fjasle.eu, lucas.demarchi@intel.com, thomas.hellstrom@linux.intel.com, rodrigo.vivi@intel.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, w.d.hubbs@gmail.com, chris@the-brannons.com, kirk@reisers.ca, samuel.thibault@ens-lyon.org, paul@paul-moore.com, stephen.smalley.work@gmail.com, omosnace@redhat.com, catalin.marinas@arm.com, will@kernel.org, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, ndesaulniers@google.com, morbo@google.com, justinstitt@google.com, simona.vetter@ffwll.ch, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, speakup@linux-speakup.org, selinux@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-serial@vger.kernel.org, llvm@lists.linux.dev, me@kloenk.dev, gost.dev@samsung.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Sat, 07 Sep 2024 10:32:20 +0100, "Daniel Gomez (Samsung)" wrote: >=20 > On Sat, Sep 7, 2024 at 10:33=E2=80=AFAM Masahiro Yamada wrote: > > > > On Fri, Sep 6, 2024 at 8:01=E2=80=AFPM Daniel Gomez via B4 Relay > > wrote: > > > > > > From: Daniel Gomez > > > > > > Add documentation under kbuild/llvm to inform about the experimental > > > support for building the Linux kernel in macOS hosts environments. > > > > > > Signed-off-by: Daniel Gomez > > > > > > Instead, you can add this instruction to: > > > > https://github.com/bee-headers/homebrew-bee-headers/blob/main/README.md >=20 > Sure, that can be done as well. But the effort here is to have this > integrated. So, I think documentation should be in-tree. I think this ship sailed the moment you ended-up with an external dependency. Having looked at this series (and in particular patch #4 which falls under my remit), I can't help but think that the whole thing should simply live as a wrapper around the pristine build system instead of hacking things inside of it. You already pull external dependencies (the include files). Just add a script that sets things up (environment variables that already exist) and calls 'make' in the kernel tree. I also dislike that this is forcing "native" developers to cater for an operating system they are unlikely to have access to. If I break this hack tomorrow by adding a new dependency that MacOS doesn't provide, how do I fix it? Should I drop my changes on the floor? As an alternative, and since you already have to create a special file-system to contain your kernel tree, you may as well run Linux in a VM, which I am told works pretty well (QEMU supports HVF, and there are plenty of corporate-friendly alternatives). This would solve your problem once and for all. Please don't take the above the wrong way. I'm sympathetic to what you are trying to do. But this is IMO going in the wrong direction. Thanks, M. --=20 Without deviation from the norm, progress is not possible.