Message ID | 20240222032559.496127-1-senozhatsky@chromium.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-75846-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp8039dyb; Wed, 21 Feb 2024 19:26:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWz7jBqoP1gr1bjK9CA+r+oxaEuFqMXALfAoqGAPW2f/sKKTpLzHXI21FU4raqxIMilAjPMFMaliTYnRKKFD0cFVgVJ+w== X-Google-Smtp-Source: AGHT+IHGpX/Q+a/kFR603iZVlFUExYIgb1FINRFWBu9RCRQBzgS8/3h2OwHhOWMR5yLu90TwpgyN X-Received: by 2002:a05:620a:1478:b0:787:69c9:7f1d with SMTP id j24-20020a05620a147800b0078769c97f1dmr11019394qkl.14.1708572388365; Wed, 21 Feb 2024 19:26:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708572388; cv=pass; d=google.com; s=arc-20160816; b=q3XjgIoWbklkRmJj8tlwApubE2p7sPugZhMUzCEOY6S2S4fQXFKIkW67OYDMVTE/vD 7bhBYsqSEf1TJ+QeYywAvA9fCRbQOKsjPoBTzytVQRpxeCwBC2AmqFT3lF/YlfzvQsXS WhanxoVlhQAIaLu8m905+D8xw0+xEObU3aTNidQD2vHo0xyu5n9asuKmY2GmEMhTNuP/ HmBCFpkzeyKpQh9RatugqM/JV+Q1SBoOua1kGvmda/Xxg5jdfKaAX3B4sMiD5JvKzNfe FdZFuwujj6v7obOinK+oFUKCMlcX6U98W3L06+YUiev9wpwzWhN49VYmFXNFTJa3CyIe Rfwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=YSw2XZua5CqiB9gf2+U2cFgOtZgxjplbw5UzRI5t8LU=; fh=wu89xKQGy7JWNJo4iiLrGF8OQ9wb0uy/EbrqpybIghk=; b=k8PDoN6Rjy1Noh2aNA1UPDTKJvN0sCO7wKocDN8oU53o9hNti9j8MYQFYnJx3T/z2U RTcgG/2BM7BQFmKOV3zCI/W+AoEwJIiehZKf/acNIQZmBKUDhiI0T+9ISuK3Ky03J1LF xJKMpWCQKb27tBMuSBSDcXQ2PGhJ6NBRpbMTFWa/4nMZ91wB4/n9ZVKMqZnkxIBuRKc1 KDYx/jJs/puCmOr37+H0pRnQiK5rL8UZmz++/3CIUAUACsV6415hb+jGSCjWcgvSFDJU DEssSNY1sK19Avy3mei+OO/anYJ+HYvzQ5WMg+Nd+FS69lsxm0GwToM0ccEYeUCY92DO vvcg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PtNW7RHd; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-75846-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75846-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h8-20020a05620a10a800b0078728022249si11696496qkk.624.2024.02.21.19.26.28 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 19:26:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75846-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PtNW7RHd; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-75846-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75846-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2BC271C212F6 for <ouuuleilei@gmail.com>; Thu, 22 Feb 2024 03:26:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0EE41772F; Thu, 22 Feb 2024 03:26:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="PtNW7RHd" Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B88CA17553 for <linux-kernel@vger.kernel.org>; Thu, 22 Feb 2024 03:26:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708572368; cv=none; b=i6h0zUpzpDqFm0H+GYOSL4sNWb25edrZsvM3CWSHbvaJyifa8q/dWxfWu+BIZ2sOaY0mimbHj+pHdPRUr88c8Rr4FACp9mUGJ7hFl5vGmMuQZ8crxMnvrOC0YiRnOIzBBtnOqovECDAN2XmavAq3rq1ljTUjlUnYFmhb0rNms1g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708572368; c=relaxed/simple; bh=bzZ3fX2DEFw0nOMx3kh5bVpyXkZ4XTMyHUYzy2/dFvM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=q6rC/sPag/KO1d8/aQeQ/5tEpZ9wF3L4/3ANW8Q/7wfTPWhjTvwTQtrt9T7bUUewliuafmnPiNFH4CMJdQsohu+xY8WBwEhMYwaxUHV11PEbLGDWrtCjgA0VOgNtCnamloocvjVPxN4SH7cKd64LLl7jMN9S6rVAVYJDEZEFpN4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=PtNW7RHd; arc=none smtp.client-ip=209.85.214.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1dc29f1956cso10342805ad.0 for <linux-kernel@vger.kernel.org>; Wed, 21 Feb 2024 19:26:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1708572366; x=1709177166; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YSw2XZua5CqiB9gf2+U2cFgOtZgxjplbw5UzRI5t8LU=; b=PtNW7RHdSMdHfUYrTsy76NtBVVgA8/SHqYhhQXDHUy+3s1RGfxVBTDkUnK0a0Dz3s9 i2Ej0BBZ36oH61+7st7Of3JSYygAq6ifRdVKOej0UAsrflrZ5t9ws1ZeTq3wGkq1CnoH FkaT7hFwiJu/eNpJPJgpVHO4jk5t1dVueqPno= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708572366; x=1709177166; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YSw2XZua5CqiB9gf2+U2cFgOtZgxjplbw5UzRI5t8LU=; b=XkOAyevRTyZrBdh67JYxOEc7IdiG/IwY6CIGwohQHCJJrlgYNJXf9Zgj4AgJIgiISp o/uHViaQyVrlH2+59s99jhuVJFsVc//yQvzg5J4rJLniNQS+hoNgVNv/NbIsAwFJrjzZ TVQ/MSG30kyS+87E3Vo9R+ooV5PPMyxKPfSjhnSz1j4fd+Cq2pc0Ivr0W3S2q4SSmDTM DNsgKVvliepXeeySPA8ygCxywUelgFkOimPZLf1UKfXh/I2V+L4inIg/CpISOh+VDa/A jdxZqUJVJGNCF4ofG0R1d2f6XPH75MPBKFgyH5tvBL8jO3UtJAmE29x39FySkSj6nNVX y/uQ== X-Forwarded-Encrypted: i=1; AJvYcCWHYS5g+64AYHXh9VxopKpnXGWXHDmi7Tn8ykioBPMaQxuQrKkG8NTVyMCUgl+YJXAap7BPvEL2c+8hMLj4tswzAHgqDoPm3PVa8IjL X-Gm-Message-State: AOJu0Yw0i4m8vyUAWOiJN6HW2IAFukK7K0RoXWIX058pVWKdFelu7C3Q AEm577NHArr10EYaheTqWbpCOo27GOVJMyZLtWsNSlpVNfayTDYiSQhQPxszwg== X-Received: by 2002:a17:902:d2ca:b0:1db:e1f4:d483 with SMTP id n10-20020a170902d2ca00b001dbe1f4d483mr13653262plc.12.1708572365981; Wed, 21 Feb 2024 19:26:05 -0800 (PST) Received: from tigerii.tok.corp.google.com ([2401:fa00:8f:203:480:9ded:eece:6cb3]) by smtp.gmail.com with ESMTPSA id v11-20020a170902f0cb00b001d937bc5602sm8818337pla.227.2024.02.21.19.26.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 19:26:05 -0800 (PST) From: Sergey Senozhatsky <senozhatsky@chromium.org> To: Masahiro Yamada <masahiroy@kernel.org> Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Sergey Senozhatsky <senozhatsky@chromium.org> Subject: [PATCHv2] kconfig: add some Kconfig env variables to make help Date: Thu, 22 Feb 2024 12:25:31 +0900 Message-ID: <20240222032559.496127-1-senozhatsky@chromium.org> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog In-Reply-To: <20240222031801.GG11472@google.com> References: <20240222031801.GG11472@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791567139799438920 X-GMAIL-MSGID: 1791568000408439624 |
Series |
[PATCHv2] kconfig: add some Kconfig env variables to make help
|
|
Commit Message
Sergey Senozhatsky
Feb. 22, 2024, 3:25 a.m. UTC
Add a new section "Configuration environment variables" to
`make help` output in order to make it easier for people to
discover KCONFIG_WERROR, etc.
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
---
scripts/kconfig/Makefile | 4 ++++
1 file changed, 4 insertions(+)
Comments
On Thu, Feb 22, 2024 at 12:26 PM Sergey Senozhatsky <senozhatsky@chromium.org> wrote: > > Add a new section "Configuration environment variables" to > `make help` output in order to make it easier for people to > discover KCONFIG_WERROR, etc. > > Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org> > --- > scripts/kconfig/Makefile | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile > index ea1bf3b3dbde..0044d49e149c 100644 > --- a/scripts/kconfig/Makefile > +++ b/scripts/kconfig/Makefile > @@ -158,6 +158,10 @@ help: > if help=$$(grep -m1 '^# Help: ' $(f)); then \ > printf ' %-25s - %s\n' '$(notdir $(f))' "$${help#*: }"; \ > fi;) > + @echo '' > + @echo 'Configuration environment variables:' > + @echo ' KCONFIG_WERROR - Turn some Kconfig warnings into error conditions' > + @echo ' KCONFIG_WARN_UNKNOWN_SYMBOLS - Make Kconfig warn about all unrecognized config symbols' > > # =========================================================================== > # object files used by all kconfig flavours > -- > 2.44.0.rc0.258.g7320e95886-goog > > Why only two, while Kconfig supports more env variables?
On (24/02/22 13:57), Masahiro Yamada wrote: > On Thu, Feb 22, 2024 at 12:26 PM Sergey Senozhatsky > <senozhatsky@chromium.org> wrote: > > > > Add a new section "Configuration environment variables" to > > `make help` output in order to make it easier for people to > > discover KCONFIG_WERROR, etc. > > > > Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org> > > --- > > scripts/kconfig/Makefile | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile > > index ea1bf3b3dbde..0044d49e149c 100644 > > --- a/scripts/kconfig/Makefile > > +++ b/scripts/kconfig/Makefile > > @@ -158,6 +158,10 @@ help: > > if help=$$(grep -m1 '^# Help: ' $(f)); then \ > > printf ' %-25s - %s\n' '$(notdir $(f))' "$${help#*: }"; \ > > fi;) > > + @echo '' > > + @echo 'Configuration environment variables:' > > + @echo ' KCONFIG_WERROR - Turn some Kconfig warnings into error conditions' > > + @echo ' KCONFIG_WARN_UNKNOWN_SYMBOLS - Make Kconfig warn about all unrecognized config symbols' > > > > # =========================================================================== > > # object files used by all kconfig flavours > > -- > > 2.44.0.rc0.258.g7320e95886-goog > > > > > > Why only two, while Kconfig supports more env variables? Right. I wanted to add only those that we use (and familiar with) for starters. I'm not familiar with things like KCONFIG_PROBABILITY, for instance, and not sure how to document it (its Documentation/kbuild/kconfig.rst description is pretty lengthy).
On (24/02/22 14:16), Sergey Senozhatsky wrote: > On (24/02/22 13:57), Masahiro Yamada wrote: > > On Thu, Feb 22, 2024 at 12:26 PM Sergey Senozhatsky > > <senozhatsky@chromium.org> wrote: > > > > > > Add a new section "Configuration environment variables" to > > > `make help` output in order to make it easier for people to > > > discover KCONFIG_WERROR, etc. > > > > > > Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org> > > > --- > > > scripts/kconfig/Makefile | 4 ++++ > > > 1 file changed, 4 insertions(+) > > > > > > diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile > > > index ea1bf3b3dbde..0044d49e149c 100644 > > > --- a/scripts/kconfig/Makefile > > > +++ b/scripts/kconfig/Makefile > > > @@ -158,6 +158,10 @@ help: > > > if help=$$(grep -m1 '^# Help: ' $(f)); then \ > > > printf ' %-25s - %s\n' '$(notdir $(f))' "$${help#*: }"; \ > > > fi;) > > > + @echo '' > > > + @echo 'Configuration environment variables:' > > > + @echo ' KCONFIG_WERROR - Turn some Kconfig warnings into error conditions' > > > + @echo ' KCONFIG_WARN_UNKNOWN_SYMBOLS - Make Kconfig warn about all unrecognized config symbols' > > > > > > # =========================================================================== > > > # object files used by all kconfig flavours > > > -- > > > 2.44.0.rc0.258.g7320e95886-goog > > > > > > > > > > Why only two, while Kconfig supports more env variables? > > Right. I wanted to add only those that we use (and familiar with) for > starters. I'm not familiar with things like KCONFIG_PROBABILITY, for > instance, and not sure how to document it (its Documentation/kbuild/kconfig.rst > description is pretty lengthy). Masahiro, any opinion?
On Wed, Feb 28, 2024 at 1:56 PM Sergey Senozhatsky <senozhatsky@chromium.org> wrote: > > On (24/02/22 14:16), Sergey Senozhatsky wrote: > > On (24/02/22 13:57), Masahiro Yamada wrote: > > > On Thu, Feb 22, 2024 at 12:26 PM Sergey Senozhatsky > > > <senozhatsky@chromium.org> wrote: > > > > > > > > Add a new section "Configuration environment variables" to > > > > `make help` output in order to make it easier for people to > > > > discover KCONFIG_WERROR, etc. > > > > > > > > Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org> > > > > --- > > > > scripts/kconfig/Makefile | 4 ++++ > > > > 1 file changed, 4 insertions(+) > > > > > > > > diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile > > > > index ea1bf3b3dbde..0044d49e149c 100644 > > > > --- a/scripts/kconfig/Makefile > > > > +++ b/scripts/kconfig/Makefile > > > > @@ -158,6 +158,10 @@ help: > > > > if help=$$(grep -m1 '^# Help: ' $(f)); then \ > > > > printf ' %-25s - %s\n' '$(notdir $(f))' "$${help#*: }"; \ > > > > fi;) > > > > + @echo '' > > > > + @echo 'Configuration environment variables:' > > > > + @echo ' KCONFIG_WERROR - Turn some Kconfig warnings into error conditions' > > > > + @echo ' KCONFIG_WARN_UNKNOWN_SYMBOLS - Make Kconfig warn about all unrecognized config symbols' > > > > > > > > # =========================================================================== > > > > # object files used by all kconfig flavours > > > > -- > > > > 2.44.0.rc0.258.g7320e95886-goog > > > > > > > > > > > > > > Why only two, while Kconfig supports more env variables? > > > > Right. I wanted to add only those that we use (and familiar with) for > > starters. I'm not familiar with things like KCONFIG_PROBABILITY, for > > instance, and not sure how to document it (its Documentation/kbuild/kconfig.rst > > description is pretty lengthy). > > Masahiro, any opinion? I do not need this patch.
On (24/02/29 11:03), Masahiro Yamada wrote: > > > > > +++ b/scripts/kconfig/Makefile > > > > > @@ -158,6 +158,10 @@ help: > > > > > if help=$$(grep -m1 '^# Help: ' $(f)); then \ > > > > > printf ' %-25s - %s\n' '$(notdir $(f))' "$${help#*: }"; \ > > > > > fi;) > > > > > + @echo '' > > > > > + @echo 'Configuration environment variables:' > > > > > + @echo ' KCONFIG_WERROR - Turn some Kconfig warnings into error conditions' > > > > > + @echo ' KCONFIG_WARN_UNKNOWN_SYMBOLS - Make Kconfig warn about all unrecognized config symbols' > > > > > > > > > > # =========================================================================== > > > > > # object files used by all kconfig flavours > > > > > -- > > > > > 2.44.0.rc0.258.g7320e95886-goog > > > > > > > > > > > > > > > > > > Why only two, while Kconfig supports more env variables? > > > > > > Right. I wanted to add only those that we use (and familiar with) for > > > starters. I'm not familiar with things like KCONFIG_PROBABILITY, for > > > instance, and not sure how to document it (its Documentation/kbuild/kconfig.rst > > > description is pretty lengthy). > > > > Masahiro, any opinion? > > > I do not need this patch. Do you agree that putting kconfig env knobs into help makes sense in general? Especially those add valuable sanity checks.
On Thu, Feb 29, 2024 at 11:10 AM Sergey Senozhatsky <senozhatsky@chromium.org> wrote: > > On (24/02/29 11:03), Masahiro Yamada wrote: > > > > > > +++ b/scripts/kconfig/Makefile > > > > > > @@ -158,6 +158,10 @@ help: > > > > > > if help=$$(grep -m1 '^# Help: ' $(f)); then \ > > > > > > printf ' %-25s - %s\n' '$(notdir $(f))' "$${help#*: }"; \ > > > > > > fi;) > > > > > > + @echo '' > > > > > > + @echo 'Configuration environment variables:' > > > > > > + @echo ' KCONFIG_WERROR - Turn some Kconfig warnings into error conditions' > > > > > > + @echo ' KCONFIG_WARN_UNKNOWN_SYMBOLS - Make Kconfig warn about all unrecognized config symbols' > > > > > > > > > > > > # =========================================================================== > > > > > > # object files used by all kconfig flavours > > > > > > -- > > > > > > 2.44.0.rc0.258.g7320e95886-goog > > > > > > > > > > > > > > > > > > > > > > Why only two, while Kconfig supports more env variables? > > > > > > > > Right. I wanted to add only those that we use (and familiar with) for > > > > starters. I'm not familiar with things like KCONFIG_PROBABILITY, for > > > > instance, and not sure how to document it (its Documentation/kbuild/kconfig.rst > > > > description is pretty lengthy). > > > > > > Masahiro, any opinion? > > > > > > I do not need this patch. > > Do you agree that putting kconfig env knobs into help makes sense > in general? Especially those add valuable sanity checks. I cannot accept the attitude: "I am interested only in these. I do not care about the rest, as keeping the correctness and consistency is the work for somebody else (= very likely the maintainer)" This should be all or nothing. I do not think all the env variables can be summarized to fit in help. -- Best Regards Masahiro Yamada
On (24/02/29 12:36), Masahiro Yamada wrote: > > On (24/02/29 11:03), Masahiro Yamada wrote: > > > > > > > +++ b/scripts/kconfig/Makefile [..] > > > > > > > + @echo '' > > > > > > > + @echo 'Configuration environment variables:' > > > > > > > + @echo ' KCONFIG_WERROR - Turn some Kconfig warnings into error conditions' > > > > > > > + @echo ' KCONFIG_WARN_UNKNOWN_SYMBOLS - Make Kconfig warn about all unrecognized config symbols' > > > > > > > > > > > > > > # =========================================================================== > > > > > > > # object files used by all kconfig flavours > > > > > > > -- > > > > > > > 2.44.0.rc0.258.g7320e95886-goog > > > > > > > > > > > > > > > > > > > > > > > > > > Why only two, while Kconfig supports more env variables? > > > > > > > > > > Right. I wanted to add only those that we use (and familiar with) for > > > > > starters. I'm not familiar with things like KCONFIG_PROBABILITY, for > > > > > instance, and not sure how to document it (its Documentation/kbuild/kconfig.rst > > > > > description is pretty lengthy). > > > > > > > > Masahiro, any opinion? > > > > > > > > > I do not need this patch. > > > > Do you agree that putting kconfig env knobs into help makes sense > > in general? Especially those add valuable sanity checks. > > I cannot accept the attitude: This is entirely wrong interpretation. > "I am interested only in these. I do not care about the rest, It's "I *do NOT know* what the rest do". I cannot document something that I have no knowledge of, can I? So as a reasonable start I added only those that I'm familiar with (and I have explicitly stated that in previous emails), and I disagree with the "bad attitude" label. > This should be all or nothing. > > I do not think all the env variables can be summarized > to fit in help. So the rational for that was that people run "make help" and find out about new build targets, for instance, but there is no way for people to find out about new Kconfig features (and yes, we are talking "new features" here) that are controlled by env variables. We need to do something about it, don't you agree?
On Thu, Feb 29, 2024 at 12:47 PM Sergey Senozhatsky <senozhatsky@chromium.org> wrote: > > On (24/02/29 12:36), Masahiro Yamada wrote: > > > On (24/02/29 11:03), Masahiro Yamada wrote: > > > > > > > > +++ b/scripts/kconfig/Makefile > [..] > > > > > > > > + @echo '' > > > > > > > > + @echo 'Configuration environment variables:' > > > > > > > > + @echo ' KCONFIG_WERROR - Turn some Kconfig warnings into error conditions' > > > > > > > > + @echo ' KCONFIG_WARN_UNKNOWN_SYMBOLS - Make Kconfig warn about all unrecognized config symbols' > > > > > > > > > > > > > > > > # =========================================================================== > > > > > > > > # object files used by all kconfig flavours > > > > > > > > -- > > > > > > > > 2.44.0.rc0.258.g7320e95886-goog > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Why only two, while Kconfig supports more env variables? > > > > > > > > > > > > Right. I wanted to add only those that we use (and familiar with) for > > > > > > starters. I'm not familiar with things like KCONFIG_PROBABILITY, for > > > > > > instance, and not sure how to document it (its Documentation/kbuild/kconfig.rst > > > > > > description is pretty lengthy). > > > > > > > > > > Masahiro, any opinion? > > > > > > > > > > > > I do not need this patch. > > > > > > Do you agree that putting kconfig env knobs into help makes sense > > > in general? Especially those add valuable sanity checks. > > > > I cannot accept the attitude: > > This is entirely wrong interpretation. > > > "I am interested only in these. I do not care about the rest, > > It's "I *do NOT know* what the rest do". I cannot document something > that I have no knowledge of, can I? So as a reasonable start I added > only those that I'm familiar with (and I have explicitly stated that > in previous emails), and I disagree with the "bad attitude" label. You were aware of: - several env variables are listed in the document - your patch would introduce a new "inconsistency" - somebody else would need to make efforts to solve it > > This should be all or nothing. > > > > I do not think all the env variables can be summarized > > to fit in help. > > So the rational for that was that people run "make help" and find > out about new build targets, for instance, but there is no way for > people to find out about new Kconfig features (and yes, we are talking > "new features" here) that are controlled by env variables. We need > to do something about it, don't you agree? Disagree. I maintain the entire Kconfig, not like you only caring about a particular feature. If you add only two in help, I have no idea about what it will look like in the end. I am not convinced that it will be in good shape. So, it is reasonable for me to reject it.
On (24/03/01 00:35), Masahiro Yamada wrote: > > > "I am interested only in these. I do not care about the rest, > > > > It's "I *do NOT know* what the rest do". I cannot document something > > that I have no knowledge of, can I? So as a reasonable start I added > > only those that I'm familiar with (and I have explicitly stated that > > in previous emails), and I disagree with the "bad attitude" label. > > > You were aware of: > > - several env variables are listed in the document > - your patch would introduce a new "inconsistency" > - somebody else would need to make efforts to solve it OK. > > So the rational for that was that people run "make help" and find > > out about new build targets, for instance, but there is no way for > > people to find out about new Kconfig features (and yes, we are talking > > "new features" here) that are controlled by env variables. We need > > to do something about it, don't you agree? > > Disagree. > > I maintain the entire Kconfig, not like you only caring about > a particular feature. > > If you add only two in help, I have no idea about > what it will look like in the end. > I am not convinced that it will be in good shape. > So, it is reasonable for me to reject it. Yes, OK. I wasn't talking about this patch in particular at that point, I was more curious whether you agreed that we need to document in some way those vars in `make help` or not. If you see value in documenting them then I can sit down and try to come up with v3 that will (in one way or another) give a simple "help" description for each of Kconfig's vars.
On Fri, Mar 01, 2024 at 01:33:16PM +0900, Sergey Senozhatsky wrote: > On (24/03/01 00:35), Masahiro Yamada wrote: > > > > "I am interested only in these. I do not care about the rest, > > > > > > It's "I *do NOT know* what the rest do". I cannot document something > > > that I have no knowledge of, can I? So as a reasonable start I added > > > only those that I'm familiar with (and I have explicitly stated that > > > in previous emails), and I disagree with the "bad attitude" label. > > > > > > You were aware of: > > > > - several env variables are listed in the document > > - your patch would introduce a new "inconsistency" > > - somebody else would need to make efforts to solve it > > OK. > > > > So the rational for that was that people run "make help" and find > > > out about new build targets, for instance, but there is no way for > > > people to find out about new Kconfig features (and yes, we are talking > > > "new features" here) that are controlled by env variables. We need > > > to do something about it, don't you agree? > > > > Disagree. > > > > I maintain the entire Kconfig, not like you only caring about > > a particular feature. > > > > If you add only two in help, I have no idea about > > what it will look like in the end. > > I am not convinced that it will be in good shape. > > So, it is reasonable for me to reject it. > > Yes, OK. I wasn't talking about this patch in particular at that > point, I was more curious whether you agreed that we need to document > in some way those vars in `make help` or not. If you see value in > documenting them then I can sit down and try to come up with v3 that > will (in one way or another) give a simple "help" description for > each of Kconfig's vars. Perhaps it might be a compromise to let 'make help' point to the kbuild/kconfig documentation? Kind regards, Nicolas
On (24/03/01 12:04), Nicolas Schier wrote: > Perhaps it might be a compromise to let 'make help' point to the > kbuild/kconfig documentation? Yes, I was thinking the same. A one-liner description per-env var and point to documentation if one-liner is not enough KCONFIG_BARREL_ROLL - kconfig does a barrel roll KCONFIG_FOO_BAR - kconfig does foo and then bar (see documentation for details)
On Fri, Mar 01, 2024 at 11:28:44PM +0900, Sergey Senozhatsky wrote: > On (24/03/01 12:04), Nicolas Schier wrote: > > Perhaps it might be a compromise to let 'make help' point to the > > kbuild/kconfig documentation? > > Yes, I was thinking the same. A one-liner description per-env var > and point to documentation if one-liner is not enough > > KCONFIG_BARREL_ROLL - kconfig does a barrel roll > KCONFIG_FOO_BAR - kconfig does foo and then bar (see > documentation for details) No, I thought about leaving out any concrete examples but just adding a sentence like: kconfig and kbuild allow tuning and checks by settings various environment variables, cp. Documentation/kbuild/ for details. Then there is no need to re-document each variable in 'make help' but those who are new are explicitly pointed to the maintained documentation. Kind regards, Nicolas
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index ea1bf3b3dbde..0044d49e149c 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -158,6 +158,10 @@ help: if help=$$(grep -m1 '^# Help: ' $(f)); then \ printf ' %-25s - %s\n' '$(notdir $(f))' "$${help#*: }"; \ fi;) + @echo '' + @echo 'Configuration environment variables:' + @echo ' KCONFIG_WERROR - Turn some Kconfig warnings into error conditions' + @echo ' KCONFIG_WARN_UNKNOWN_SYMBOLS - Make Kconfig warn about all unrecognized config symbols' # =========================================================================== # object files used by all kconfig flavours