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 E064EC7EE2D for ; Sun, 26 Feb 2023 19:23:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229685AbjBZTXR (ORCPT ); Sun, 26 Feb 2023 14:23:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjBZTXP (ORCPT ); Sun, 26 Feb 2023 14:23:15 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6F15A24F for ; Sun, 26 Feb 2023 11:23:13 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id ck15so17723588edb.0 for ; Sun, 26 Feb 2023 11:23:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; 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=JbQyXtJLfRv0Q9GivC5bqVQS8/nMln8gSjbi3txdErA=; b=fm3vHIaWK9rL2C8TZFa5QqvhZR2O/3RhNA0r6oCs8csV7XGPLgSQFt9ibl3reauPWi SBqGiQJBNQeUlgwOnBve4SswW2VQ/NwEOPNQKlniv+12R6SmayFKy77HVX6Wx3YdRFat 3hK2T4vfyyid+dJcWomQADp0YuMk5/b8goYjs= 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:message-id:reply-to; bh=JbQyXtJLfRv0Q9GivC5bqVQS8/nMln8gSjbi3txdErA=; b=PGlWFoO2VwHVl8/kuOuFlWwKKu7CbRp+wP6S2G4WoeueuuvLD4fcZUYbflJ8StOitw Z0kDODKzTpxe3tO5SXdKq6olDr2M3J5o3TS5Sc3hW4twyqyxIt25Psj+lI/sflbm5Mly zW+MMPWp+BCJq0l42d+SfZmHvJhflRZXkqpFOD48tOLholZ4i2zitfMCoibSiViBAE6i FCHipSKc17umG9E9HYpVGI1HdAnbzc0xd4NMINsU7mjhNnUYbs1tPk0Mmce+kLdoAM6o 2uPGVWeb2PM9S9gaLtLp557GWEzlOMkJn9u4PvbuavedKMGQrrUNs3nDAGB0oKrIuNh1 yk3A== X-Gm-Message-State: AO0yUKUFT2su6SrMUgKCGICvs8VuXBQW2mUGTBshTQtDx6E+C9sgXc2c jQylDiMQ3Qr6mF4rgOGSULgymKF5hiZbjX1wPf+L8A== X-Google-Smtp-Source: AK7set/RhwZg1mGnUrtO8vTDV+3E59Fa0S9rB6M6ZFt/xs7ANgfdvtdHveeXag1MaNbSvLSB7Vh/B6s4NuQCz3G3GlQ= X-Received: by 2002:a17:907:bb89:b0:8b1:2916:9804 with SMTP id xo9-20020a170907bb8900b008b129169804mr13789290ejc.9.1677439392099; Sun, 26 Feb 2023 11:23:12 -0800 (PST) MIME-Version: 1.0 References: <20230219145453.1.Idaaf79c3e768b85750d5a7eb732052576c5e07e5@changeid> In-Reply-To: From: Simon Glass Date: Sun, 26 Feb 2023 12:23:00 -0700 Message-ID: Subject: Re: [PATCH] kconfig: Proposed language extension for multiple builds To: Masahiro Yamada Cc: Tom Rini , 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 Hi Masahiro, On Sun, 26 Feb 2023 at 10:36, Masahiro Yamada wrote: > > On Sun, Feb 26, 2023 at 11:44=E2=80=AFPM Tom Rini wr= ote: > > > > 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 'g= ain > > > > control' of a particular feature in a phase. > > > > > > > > My intent in sending this patch was to check whether this support f= or > > > > 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 i= n > > 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. I'm disappointed in this attitude. It is the same thing that we saw from the DT bindings until recently. > > 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. How about refactoring patches that would make a possible implementation easier to maintain, like [1] ? Would they be acceptable? > > > The multi-phase is too cluttered, and that is not what Linux wants to hav= e. Clearly it is not useful to Linux, which only has one build. Regards, Simon [1] https://patchwork.ozlabs.org/project/uboot/patch/20230212231638.1134219= -61-sjg@chromium.org/