Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6498159rwl; Wed, 22 Mar 2023 11:22:46 -0700 (PDT) X-Google-Smtp-Source: AK7set/KaX2NSVi+g00vU0SU0FaCzWHhmeacmTwIAqVnJjHDkmsLZXTxSeMfreuKVPAyK6GttI+L X-Received: by 2002:a17:903:2883:b0:19a:b869:f2f8 with SMTP id ku3-20020a170903288300b0019ab869f2f8mr3016194plb.21.1679509366169; Wed, 22 Mar 2023 11:22:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679509366; cv=none; d=google.com; s=arc-20160816; b=hGeAt6jiXDs/8Mu01jyPfp9tVcnyc4uOjbEFaYYFlPCvTlX8lS54huLRcqkicTehAv C1n8Ta5ZpCroNgjf8XpmvdfQzYmNjs0k2HiOrhgvemgwcGQJkNN1pQ/PoFiLpdhuik3q yIMncs64xvJEhNNkc/VwcdxkyFmQJQSjhI80kKRKwHLeh0Z5lZqUk4AGV1faIn1XeL55 KjX/B6w7BZl1php4vQ+CiFIoIed+xxF2wvRTAyJyNKSoGDmypjGeJhst33VOkYV93TKa 1xeOHRooVPKkNJTXVvUH3qvtNfj2QU/Nha8tS0ijAT65K0T0vVtYwdhcHvrRaGagaThU zsLA== 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=bKB37a91eiyjPZCGoC8cw5qGoIyXW5WK1FJBstPT2zY=; b=N5NdYot+Krutr0ZKYig1O9NUo7/eBYiTU3/6uWnu+cmz9ONOLTDTzXjAdzjOEm/KxG YExITuvSDViQNrQkv04l1R6o2m/jHiWv0LzCXzv24H5uxColeOsC1rIrhYaTjOirV3WN bbs1lSlZLiBLqZNzkwK8BNrJaVq/iCILWx2GNLqAXLCBbr9o20pU2cn458uo24EKJm3J s95KNaTxmQej/jLyTwaFHAcOVQvNBUTlrFImG6T8E4gOx2SoWt0ulDMdWRqRQzmFS9j7 Mh1Ci2waLu8j+kOxRYgXslufdDWs4JsQ/FKCq8mYxIiGcEjDqq1emVDbuV6Z9IzUPQv8 KRbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=WleNqr3D; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h5-20020a170902748500b001a1e4bd603dsi4411825pll.400.2023.03.22.11.22.03; Wed, 22 Mar 2023 11:22:46 -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=@google.com header.s=20210112 header.b=WleNqr3D; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230114AbjCVSSS (ORCPT + 99 others); Wed, 22 Mar 2023 14:18:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230299AbjCVSSL (ORCPT ); Wed, 22 Mar 2023 14:18:11 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F4076782B for ; Wed, 22 Mar 2023 11:17:52 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id dw14so6275247pfb.6 for ; Wed, 22 Mar 2023 11:17:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1679509066; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bKB37a91eiyjPZCGoC8cw5qGoIyXW5WK1FJBstPT2zY=; b=WleNqr3DN+FkMbhcZxhEoIwB5sGt2CVE3PI2u4pSTo6GPQdoVfk/4tR4Suf1zeoJzR a/zNPLfFT+FrC3XcJALt3QrkFR4O/xlSffmEjK41M+RF5AypPAF8geKV9+ak+fx8kfpd 7sop9EeXQ2X7BKFTM4B7sGKYyC0OgceFgYn+P4nBUla71nPm0uPenu7WqbI9kBnBy6MO aU1UEu9HyB0y4ctqAexK+r0td/WYh/tLGwaZpgenKXmbxEOU1BMPaZbbTL5Lh/Qo4cpV Z8D0wPOq4hPvOGihBDeROie0LWJcPEdXcsnE4V6jHbdwVOsmYIBHvjzINBu0LWlYvk86 FkqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679509066; 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:message-id:reply-to; bh=bKB37a91eiyjPZCGoC8cw5qGoIyXW5WK1FJBstPT2zY=; b=E8svtXOHwAw3R4ziC2ZGz3dy5SsmXoY1fQ6QFc/OI07tXrg0Q2bkVtendJtVYc56xq p0th4oimhatNrffoD4y0ZVYN7OGWi/BuzVevfpV7vj+mBMbDwJJ66zP993JHxIbO2bYg iJba0BmsVRJg6GV38eRgHAqfImpLR4Lm5TUsnzZgIJYURHllk6wKKnawvzXZfMuFG8H/ VJBNT2g3D3BGq7T14ogUBr4+LxuRIqHuihElReV92BMOr6ITfp8AwHb8tLGLuGprVvU1 acIJlWzxNV5eezRhUs6U6dHIFpNamiDFmZBgrXnT3jvkBNUQrZ/se3IEqL+WNCalHVFV FA6A== X-Gm-Message-State: AO0yUKXIbPCpiR9yGA4ycR2WBCZdqPaVYMBrPqkJ02EZ+reneiQKdts5 lYXZV0JJ4Q+QYArcb6E3Yc089tOvZAiYEqZH7QKGkg== X-Received: by 2002:a65:4781:0:b0:503:7be3:e81d with SMTP id e1-20020a654781000000b005037be3e81dmr1119318pgs.1.1679509066284; Wed, 22 Mar 2023 11:17:46 -0700 (PDT) MIME-Version: 1.0 References: <20230320180501.GA598084@dev-arch.thelio-3990X> <20230320185337.GA615556@dev-arch.thelio-3990X> <87pm91uf9c.fsf@kernel.org> In-Reply-To: From: Nick Desaulniers Date: Wed, 22 Mar 2023 11:17:35 -0700 Message-ID: Subject: Re: Linux 6.3-rc3 To: Linus Torvalds , Masahiro Yamada Cc: sedat.dilek@gmail.com, Kalle Valo , Nathan Chancellor , Linux Kernel Mailing List , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-toolchains@vger.kernel.org, llvm@lists.linux.dev, Linux Kbuild mailing list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-15.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=unavailable 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 + Masahiro and linux-kbuild for the proposal On Wed, Mar 22, 2023 at 9:56=E2=80=AFAM Linus Torvalds wrote: > > On Wed, Mar 22, 2023 at 9:40=E2=80=AFAM Sedat Dilek wrote: > > > > You have to pass `make LLVM=3D1` in any case... to `oldconfig` or when > > adding any MAKEFLAGS like -j${number-of-available-cpus}. > > I actually think we should look (again) at just making the compiler > choice (and the prefix) be a Kconfig option. > > That would simplify *so* many use cases. > > It used to be that gcc was "THE compiler" and anything else was just > an odd toy special case, but that's clearly not true any more. <3 > > So it would be lovely to make the kernel choice a Kconfig choice - so > you'd set it only at config time, and then after that a kernel build > wouldn't need special flags any more, and you'd never need to play > games with GNUmakefile or anything like that. > > Yes, you'd still use environment variables (or make arguments) for > that initial Kconfig, but that's no different from the other > environment variables we already have, like KCONFIG_SEED that kconfig > uses internally, but also things like "$(ARCH)" that we already use > *inside* the Kconfig files themselves. > > I really dislike how you have to set ARCH and CROSS_COMPILE etc > externally, and can't just have them *in* the config file. Not needing CROSS_COMPILE for LLVM=3D1 has been great. ;) (Still need it for ARCH=3Ds390 until LLD gets s390 support though) > > So when you do cross-compiles, right now you have to do something like > > make ARCH=3Di386 allmodconfig > > to build the .config file, but then you have to *repeat* that > ARCH=3Di386 when you actually build things: > > make ARCH=3Di386 > > because the ARCH choice ends up being in the .config file, but the > makefiles themselves always take it from the environment. > > There are good historical reasons for our behavior (and probably a > number of extant practical reasons too), but it's a bit annoying, and > it would be lovely if we could start moving away from this model. > > Linus > --=20 Thanks, ~Nick Desaulniers