Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52604C6FA8E for ; Sun, 26 Feb 2023 17:36:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229788AbjBZRgo (ORCPT ); Sun, 26 Feb 2023 12:36:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbjBZRgm (ORCPT ); Sun, 26 Feb 2023 12:36:42 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 908CD7A89 for ; Sun, 26 Feb 2023 09:36:41 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 291AA60C15 for ; Sun, 26 Feb 2023 17:36:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 927CCC433D2 for ; Sun, 26 Feb 2023 17:36:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677433000; bh=n1a8rby1ahPl84c7Re/Zb3vpa+YhLOUunPlxlN/DBYU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ZYUKmjesuWucukWzrADxNEGPptLaj87NwU5mMB5Ao5gKJvRt4CHpMsmDiJKXIIsTT RNbeqRsa1yROMyXfzXlCIWgkqEn0TWwcrsS0WdKzhYQAPQbpkdNQzOw82e3r5qGz5f nV0AgTCeja+O8K0AnYI1m2CvwU71SA9n8V+M2Amh8uCQKTCn3qOYV83iURK8gL0/85 F/jf00/+D60xzXe0mfXnmBR6IOt62fDzCx0+exBBqVa/662vPJ36Hb7wxCfKqlgG5B fp4a/Jq0oQdYhir4/NDIcG83pgmIdkNXHYwPjVxBr9wybf+plZ5X99ALsQaSPeByoP YNRJDZFBvr80g== Received: by mail-oa1-f46.google.com with SMTP id 586e51a60fabf-1729bdcca99so5254184fac.12 for ; Sun, 26 Feb 2023 09:36:40 -0800 (PST) X-Gm-Message-State: AO0yUKXM8gyNCPBz0GtAl7xJ9RmUu5cblXagQAx0cH6yVAfY19ZTG25e 0tehRByI5X8AWslJqse8D/QWO7tOd0HrWnVuytk= X-Google-Smtp-Source: AK7set8E2xuI1YQeo23avnbztAxsN6wpEPvMt7rOBIiSXShy7erVxe7kCcP8lnTzps/+PNigP9S5UiaTWDDBTwNJ8j0= X-Received: by 2002:a05:6870:5302:b0:16e:8b45:1e0d with SMTP id j2-20020a056870530200b0016e8b451e0dmr2769595oan.8.1677432999881; Sun, 26 Feb 2023 09:36:39 -0800 (PST) MIME-Version: 1.0 References: <20230219145453.1.Idaaf79c3e768b85750d5a7eb732052576c5e07e5@changeid> In-Reply-To: From: Masahiro Yamada Date: Mon, 27 Feb 2023 02:36:02 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kconfig: Proposed language extension for multiple builds To: Tom Rini Cc: Simon Glass , U-Boot Mailing List , lk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 26, 2023 at 11:44=E2=80=AFPM Tom Rini wrot= e: > > On Sun, Feb 26, 2023 at 11:32:03PM +0900, Masahiro Yamada wrote: > > On Sun, Feb 26, 2023 at 11:04=E2=80=AFPM Simon Glass = wrote: > > > > > > Hi Masahiro, > > > > > > On Sat, 25 Feb 2023 at 20:31, Masahiro Yamada = wrote: > > > > > > > > On Sat, Feb 25, 2023 at 11:38=E2=80=AFAM Simon Glass wrote: > > > > > > > > > > +Masahiro Yamada > > > > > > > > > > > > > > > > > > > > I do not know. > > > > This seems a shorthand in Kconfig level. > > > > > > > > > > > > masahiro@zoe:~/ref/u-boot(master)$ rgrep '^config SPL_' | wc > > > > 540 1080 24872 > > > > masahiro@zoe:~/ref/u-boot(master)$ rgrep '^config TPL_' | wc > > > > 163 326 7462 > > > > > > > > If hundreds of duplications are not manageable, > > > > go for it, but kconfig will be out-of-sync from the > > > > upstream Kconfig. > > > > > > Yes that's right, it is a shorthand in Kconfig. > > > > > > The counts above understand the problem a little since quite a few > > > CONFIG options without an SPL prefix are used in SPL. We don't have > > > tools to estimate how many, and we sometimes add a new symbol to 'gai= n > > > control' of a particular feature in a phase. > > > > > > My intent in sending this patch was to check whether this support for > > > configuring multiple related builds (or something like it) could go > > > upstream, which for Kconfig is Linux, I believe. What do you think? > > > > > > This complexity is absolutely unneeded for Linux. > > > > So, the answer is no. > > Well, I think Simon summarized himself a bit shorter here than he did in > the patch itself. So, to what extent does the kernel want to consider > all of the other projects using the Kconfig language and their needs / > use cases? > > -- > Tom In principle, only features that are useful for Linux. Kconfig has small piece of code that is useful for other projects, for example, #ifndef CONFIG_ #define CONFIG_ "CONFIG_" #endif which might be useful for Buildroot, but this is exceptionally small. The multi-phase is too cluttered, and that is not what Linux wants to have. --=20 Best Regards Masahiro Yamada