Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp237261rbe; Wed, 28 Feb 2024 19:37:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWuFuXE9q6hwu3fIISQhtS3rZVAeInuvRt2CPaPSuf24jsctUqeyTZai5bSYhciIRmAbpFoACHsgips10kW0ZFmv00wwvKyi6S01csKnQ== X-Google-Smtp-Source: AGHT+IFMM0xOISO+2tlzwwLWS2ESExvJPBnTfJbUsGWYR6hKdlQpzycGoFJONBGgCgpShIp63pFs X-Received: by 2002:a17:906:c28e:b0:a3f:b7cb:cc52 with SMTP id r14-20020a170906c28e00b00a3fb7cbcc52mr467321ejz.40.1709177864101; Wed, 28 Feb 2024 19:37:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709177864; cv=pass; d=google.com; s=arc-20160816; b=j7KPVHPf9VqHHovTAKmaFyMDenqu/mYwU8ShNBWP7DqZiXEfai9akxRdKnJEddEeVt AZdA+0qickuIK2wluHW/gzLqtdn3s/oqVWHYZSak/J42JLnXzXbmE+JvKZRqm8Vvcf0u dtGdHTBe2EzUGm4DYAwOqBL5RLxVkCVqCOX9pezDDF06536MOz4MockiqTlWHmuyBoIZ yujKfuNwSt3AerIVWqUF6vXNIy1xtL0pkIZcCE7Vh1ICuMwrh3iEaBGAw2ILj1ntHSBY hpDtCspFgtA5wy0zbCXONEIy/kPi0HNE0mGdwHFEXLgb9C0SZG+romnlT5DsvnRhivUz lzDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=f1vByf/W6DP8iOTKBv1O7aqP36rL+BGzRGDZKoioGM8=; fh=I5nYL/a56wM6euau3v82OB5yCnQaAwPhCmUdvkeHk+k=; b=XhJing76Ya/7/p6FzqmBcxvHc8KVZLcKBQciZUnPe2xd/joStA0zCc+8O6OI+6kHaC OahZwOkna0Hfw9V6zFPBs+VJHYPL28QYHZob8w1FjiCnZyxmY+hRE5uLjgSwlg6rT0aL rGtBGZHxcr6+aREKvwoVV8RzYfDwvSlJ4t3ci67qRxxuZ6SH94U+jfQSe5R/tfsTe/7F kkNsTulF0Fchkz3C0diKqCcAca81DnWnQ2W7KQUaj/QIa1eenNtKG9Q8VAtI60R+b/Nv wEXsZy/l0Uf6bASTulc5T/PqMwReiTAl4nLTCm+a5dqglVYddFFUrRgPy0TW+NCCL/Vb hiMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A16j6n1D; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-86097-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86097-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id kh21-20020a170906f81500b00a41308ca5a4si189637ejb.202.2024.02.28.19.37.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 19:37:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86097-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A16j6n1D; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-86097-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86097-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id D31F61F21A31 for ; Thu, 29 Feb 2024 03:37:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D154B374F7; Thu, 29 Feb 2024 03:37:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="A16j6n1D" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F071C1F95F; Thu, 29 Feb 2024 03:37:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709177856; cv=none; b=AF9yUAv/DvD/9gP9FfKXwZD6cs7SlQwbDYO0SpbM+7//W48gIOuJ/q3qeEuRacfBrktb2eCWA3QYg9Li/fCwKX9A0Cj1LyKW99SVvAhAtus0FtLigP5DFYCXoW0KomEmWBtixZBfGg1vvoYiyk5GmqW4EL8Y4vNHSJKlvOlpBlo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709177856; c=relaxed/simple; bh=L+mOE66O8U9SCG8RnbvjTtTj/VvI6p4qJikWxk+t3j8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=IMg40wUCan6531JzadOm2X6W93udFqAn6Cn2vHOswRGx6YGy8ItZypy1j25ui6BBNOueAO6U4gxr5V5g3kGyKaPO6nwBMosuv6+ak3vYhGAadcX98Yo8hu94I1ffrQlbKyBBAR5bf4mzkZCiYcSH/T/m+VUrg/0ZEMQ6Q8/8SZI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=A16j6n1D; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62B2EC43390; Thu, 29 Feb 2024 03:37:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709177855; bh=L+mOE66O8U9SCG8RnbvjTtTj/VvI6p4qJikWxk+t3j8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=A16j6n1Dduqnr10YexLqQYvilFKPpZj0fIiZwe8MSflwqmaxyLGI5MwjZkg/tz/Ks 3Vu0nTVlizR7uRu4lHu/G6v0un47wNmQBBDVHpzrOTPbmKE8Mcf4GQ6bplLkqQUGic GQYdLkcQephhNa94W9mnVWV14nKZHgy/Ss+62iayKNHvLnSezzqvAkqHQ3yVL4X44c Ub7qZyu6jEVDjRXCx5vQNHjXbPnwpWHJkGGcu+ZfjR8NcjBr+lMWQn0UWzyGM5NL7c GRwmNHs/fAu7NsJCoLLM76xBLNzLPN2hNYEEDgazguYX7eFxw86mZpiefe2F7kbGhM lUsEsK2r1TZSw== Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-512e39226efso338054e87.0; Wed, 28 Feb 2024 19:37:35 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWBf2l/SYzZctPsqE0NRTOrsIAt9hYACl21EArLeEZKZD7LCSztOmPswEFxCSk8gweWSe2J6BlDamj1n9sHHKTiNk01YBzFs/fPcFJT X-Gm-Message-State: AOJu0Ywp2/3eT42MhZwsQBFygHsLG06915yySbp6GYeuD9zhEPMswUUS oi3jZKJY0+FuUnsHLC+Np9D+IQJFzsbGL2HmcUobxGY+7344Q5rwFi0eQ1MbHrm3lWrYy8yVH7Y mlVEmIdKsW2vLDUWVoIqVwTXeJDs= X-Received: by 2002:a19:2d11:0:b0:513:ed7:32a1 with SMTP id k17-20020a192d11000000b005130ed732a1mr413741lfj.69.1709177853718; Wed, 28 Feb 2024 19:37:33 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240222031801.GG11472@google.com> <20240222032559.496127-1-senozhatsky@chromium.org> <20240222051621.GH11472@google.com> <20240228045652.GH11972@google.com> <20240229021010.GM11972@google.com> In-Reply-To: <20240229021010.GM11972@google.com> From: Masahiro Yamada Date: Thu, 29 Feb 2024 12:36:57 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCHv2] kconfig: add some Kconfig env variables to make help To: Sergey Senozhatsky Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Feb 29, 2024 at 11:10=E2=80=AFAM Sergey Senozhatsky wrote: > > On (24/02/29 11:03), Masahiro Yamada wrote: > > > > > > +++ b/scripts/kconfig/Makefile > > > > > > @@ -158,6 +158,10 @@ help: > > > > > > if help=3D$$(grep -m1 '^# Help: ' $(f)); then \ > > > > > > printf ' %-25s - %s\n' '$(notdir $(f))= ' "$${help#*: }"; \ > > > > > > fi;) > > > > > > + @echo '' > > > > > > + @echo 'Configuration environment variables:' > > > > > > + @echo ' KCONFIG_WERROR - Turn some Kc= onfig warnings into error conditions' > > > > > > + @echo ' KCONFIG_WARN_UNKNOWN_SYMBOLS - Make Kconfig= warn about all unrecognized config symbols' > > > > > > > > > > > > # =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > > > > > > # 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, f= or > > > > 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 (=3D 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