Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3168560rwl; Mon, 27 Mar 2023 10:07:03 -0700 (PDT) X-Google-Smtp-Source: AK7set+EmGzSF9vAVpM97OVYSM38rd3BQIcv2N7sMYgwUADHDZ+QB4Q3mTB4z3XqFBSOBP3A5vRC X-Received: by 2002:a05:6a20:b291:b0:cb:91ee:dca0 with SMTP id ei17-20020a056a20b29100b000cb91eedca0mr9525203pzb.41.1679936823633; Mon, 27 Mar 2023 10:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679936823; cv=none; d=google.com; s=arc-20160816; b=NZyDkEsb044EkSbphqQBPYT0v8BTvC88L+EXaTCDvsllF7pS7l/FJ0Kr/t/GT3A5on gQvH1ny4sdS2P/mV3vtNvidlhRmNJOXlfQVL7B8ykvse1NpZ/dR6y921WhRH6poC8POM Srnc/ZDsxYs76zLM9L+ENtVSOW2B4wGIrL8udjqawH9OaX8n/O7usk38QlwzcUPjNRx/ GhJ/p8904O8tfh5v7IP1wtKebnTDh2RIHc3o5JnNScNoBUNAxplMcv22FvP63od+3gO1 cOGCyq6iDq4IHDYCfCcP9NdLRBZc6bQom21qb3e+FN8EoUjBoJ1Grzbqlpo88j4AdE4X QCBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=DNwoMAHx/naFTub4e3g7Qvz60taxpwVzggpquY2OoJ0=; b=fYjidmkc/d811dYxyEH9xNAgplhrw7WR+JHlMp9OE+0C7o5i/okjGMUpxm2DwJdM4i evZ2PMGZKoFyYNnu8EujWa12Yp/Hwbt5L+3l9cuv7lL9jqbyl8vkItv7BtxyKaHnpv6v r+O+Y7cWbcY2uDe8RcsUYS470WxU/DIRiAv/BapjKl4ZheJj1sIeE9WJkQge9YKFHI5G ClciXcXnJlUYToZbgjMR7apZU4u4dv92ryIr4zti87Hg1EQnlyQQ+a/1dP0OuWaaQb+N q79TxdJQyIn5jlRnYoy7YxnxW6EUpwCwX7HpwDrTgUXfilHYk7jyTtBTqgWECahdBCcx WsaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TSLfZXWk; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a63e855000000b004fb165e159bsi28067870pgk.794.2023.03.27.10.06.51; Mon, 27 Mar 2023 10:07:03 -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=@kernel.org header.s=k20201202 header.b=TSLfZXWk; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232883AbjC0RF2 (ORCPT + 99 others); Mon, 27 Mar 2023 13:05:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232011AbjC0RFF (ORCPT ); Mon, 27 Mar 2023 13:05:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50C5A3ABA; Mon, 27 Mar 2023 10:03:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6392DB81077; Mon, 27 Mar 2023 17:03:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3048CC433EF; Mon, 27 Mar 2023 17:03:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679936619; bh=DNwoMAHx/naFTub4e3g7Qvz60taxpwVzggpquY2OoJ0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=TSLfZXWk/AS39G+IOvNDv9h+VS8ZG2iJMprsb7TBdpu6+HHfhygzsE3nS5ukHZHZA mlUnFW15tHVhp63v8Xt2oYuSba24MD9o/kZseGNC31rGFcPS6EOnEeuzGsmUT0jZEA vfdggh4rwIWFCb89PQfUFRNjaYdyTg1oR6RULq/EmdG3vvIMn0yoU5yN0CIoLMl+N9 8qtem2gVxTMYj6On1AEhtyNujuMUiH2ffnkPH0WF7DiuSzK/vuq+Gz51oO/HDKyK20 Ihn1oY+vXxjZ891UVLWughgZ21iJqVy72yrvAPEsgyF72ooO6IRQHPCPe3JS5Rr1QQ AyNhC+IwqnPjQ== From: Kalle Valo To: Jani Nikula Cc: Masahiro Yamada , Linus Torvalds , linux-toolchains@vger.kernel.org, llvm@lists.linux.dev, Linux Kernel Mailing List , dri-devel@lists.freedesktop.org, Nathan Chancellor , sedat.dilek@gmail.com Subject: Re: Linux 6.3-rc3 References: <20230320180501.GA598084@dev-arch.thelio-3990X> <20230320185337.GA615556@dev-arch.thelio-3990X> <87pm91uf9c.fsf@kernel.org> <87bkke5g31.fsf@intel.com> Date: Mon, 27 Mar 2023 20:03:34 +0300 In-Reply-To: <87bkke5g31.fsf@intel.com> (Jani Nikula's message of "Mon, 27 Mar 2023 19:12:02 +0300") Message-ID: <87jzz2cejd.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 Jani Nikula writes: > On Sat, 25 Mar 2023, Masahiro Yamada wrote: > >> On Thu, Mar 23, 2023 at 1: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. >>> >>> 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. >> >> >> Presumably, this is the right direction. >> >> To achieve it, Kconfig needs to have some mechanism to evaluate >> shell commands dynamically. >> >> If a user switches the toolchain set between GCC and LLVM >> while running the Kconfig, $(cc-option) in Kconfig files must >> be re-calculated. >> >> Currently, Kconfig cannot do it. All macros are static - they are >> expanded in the parse stage, and become constant strings. >> >> Ulf Magnusson and I discussed the dynamic approach a few years back, >> but I adopted the static way since it is much simpler. >> We need to reconsider the dynamic approach to do this correctly. >> I do not think it is too difficult technically. >> We just need to come up with a decent syntax. > > I acknowledge being clueless about mostly everything that requires. But > in the mean time, how about just adding something like: > > -include .env > > near the beginning of the top Makefile? > > You could shove the tools or ARCH or output dir etc. there, so you don't > have to remember to add them on the command line every time. Yes, please! Something like this, but officially supported, would be just perfect for a lazy person like me. --=20 https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatc= hes