From mboxrd@z Thu Jan 1 00:00:00 1970 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 D9FD7C71153 for ; Tue, 29 Aug 2023 06:25:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229604AbjH2GYq (ORCPT ); Tue, 29 Aug 2023 02:24:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231661AbjH2GYc (ORCPT ); Tue, 29 Aug 2023 02:24:32 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21EDC18F; Mon, 28 Aug 2023 23:24:19 -0700 (PDT) Received: from leknes.fjasle.eu ([46.142.49.30]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MHoVE-1qVyDm38PW-00Eqhu; Tue, 29 Aug 2023 08:16:56 +0200 Received: from localhost.fjasle.eu (kirkenes.fjasle.eu [10.10.0.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by leknes.fjasle.eu (Postfix) with ESMTPS id 7DC8F3E75F; Tue, 29 Aug 2023 08:16:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fjasle.eu; s=mail; t=1693289813; bh=Tee/zKgIxi0MjayamYCOiUTorl30qi/G3fi5jQxu9uo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i77dORvdD3FaDs5i6DL8ZDK8Unesg1yl+uxIVHscPJOTiKMcP2VspJD2G9iOvGdwt g66IuuMz7ZWJ6u7k5WjE1Y4BlJcxwiuINQexDhpLTiMQ0wsn0nnwKtN8vhCBKG0iZ5 ZvRHgNWgIPsQ0q0qgSPI44uFj8TAzGUWkgXHMIw8= Received: by localhost.fjasle.eu (Postfix, from userid 1000) id A94463949; Tue, 29 Aug 2023 08:16:52 +0200 (CEST) Date: Tue, 29 Aug 2023 08:16:52 +0200 From: Nicolas Schier To: Michael Ellerman Cc: Masahiro Yamada , Kees Cook , Christophe Leroy , Randy Dunlap , linux-kernel@vger.kernel.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH v2 0/2] kbuild: Show Kconfig fragments in "help" Message-ID: References: <20230825194329.gonna.911-kees@kernel.org> <87ttsjlmho.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JaIvwu+DOSVoCCpT" Content-Disposition: inline In-Reply-To: <87ttsjlmho.fsf@mail.lhotse> X-Operating-System: Debian GNU/Linux trixie/sid Jabber-ID: nicolas@jabber.no X-Provags-ID: V03:K1:OBnWK3wK1nt78UyoQFBURm442v+SvSoVVT7mPovCe98T1OcdBRW 545IdFbHubnZv1c8kyxGda2FhHOhq6S+JNQcmvQsPh86El8Z2oDObUTGZNkSYi3rBEhtPpe iFj+PMJcKoRUGTqyvPJRbQqi8muo/oIxULf5nsWJp9ECrUUtbCOcliu478mDcsJIYXLPwgG aRaGMaOKjgoTFmVfIQeAg== UI-OutboundReport: notjunk:1;M01:P0:6P1zPygrMg0=;IpUXK5xv9kMp0SW08XHoxH64TrM eOiuNqzge622ysvCqOch2zOQMyANgRq5V7iZDY+HHyIfMT7WgAaxy9fiLlMcj7q/8S3oi7bIu q6fnbnO5tBoc7CnZa/PDhtHctjm0+74rkKxEm3wPTj9rJipLs+lzrdKBV59KM1FzhJvb0N1v7 AJN5U3DUj8wNSXw04eTTbd0s6xoy8pNv7SNJ/U4UF8K9zGqiQGZcP6QZEfFol4UcAGA6g6YKA uBtb4uVgpmUcmChfX3lNUhkGuVRNSs+0TrmuCtp+Q9MbNNsmT4QJtI+DPuuDv7pcX7DzdnQFj Ebyvzq73wqbPKXX+F2LBLI/NhWgHZ34Iq9SHFhuiQaf5vH5993WezLJqa0+xPEoyuQj+ZNmA9 Q2fWJ818nIJe/z35AglIHMM/T3JHtadz3oDri2y7PVtAYMWfx2EyKWDfLRI9iXcBOwFV0mgGQ KwEo2RQrfnnTddzISisWfsMLEOQCBQwt7vtntJroZDoonBa5zOB25uoyNpC9fPmBNqMfXUzP4 MUDUrXgGsNhdttWCj9Ri38z1QBXA9X1vDvjVvxPCSbSVTNAybi4O5xt8gAMCLJJPnqmTVzVQI +ynCTczgTrQk3ZT3lJ5TVziNy04WIjIw8xP57Vc5PDCOSt9wB0rsp+GbR+wgaq1knsXQrnn0u GzMHfsBuYQTiChcVbueaTBz36ZGS7CsYMhlvamYGF4vTsGyNaw7UDgNn/tAq+l99eD3LxBN49 5v52XLH9XR/A+Qq80fPB2aiai5Y+q1w8G5XURAJfXYSj/Y7YU8zInJo4/4jzi+m92apyb17Uy 2QLZvLlCOeEPEetO92T0fg4giJb6fkBjj6aHquGfoViXtyZ5El1oxLpNCeTwoGnCO1FwtCn3u xq6im4E4gT/3YSg== Precedence: bulk List-ID: X-Mailing-List: linux-hardening@vger.kernel.org --JaIvwu+DOSVoCCpT Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 28 Aug 2023 16:17:07 GMT, Michael Ellerman wrote: > Masahiro Yamada writes: > > On Sat, Aug 26, 2023 at 4:55=E2=80=AFAM Kees Cook wrote: > >> > >> Hi, > >> > >> This is my series to show *.config targets in the "help" target so the= se > >> various topics can be more easily discoverd. > >> > >> v2: > >> - split .fragment from .config to hide "internal" fragments > > > > Please do not do this churn. >=20 > That was my idea :} >=20 > > Like Randy, I did not get "why" part quiet well, > > but if you are eager about this, > > you can show help message only when the following > > ("# Help:" prefix for example) is found in the first line. > > > > # Help: blah blah > > # other comment >=20 > I did think of that, but wasn't sure how to do it in make. Something like this should do it: @grep -Hnm1 -e '^# Help:' $(foreach f, $(sort $(notdir $(call configfiles,= *.config))), $(firstword $(call configfiles,$(f)))) | \ while read loc dummy helptext; do \ tmp=3D"$${loc%:#}"; file=3D"$${tmp%:*}"; line=3D"$${tmp##*:}"; \ [ "$${line}" =3D "1" ] && \ printf " %-25s - %s\\n" "$${file##*/}" "$${helptext}"; \ done but this neither beautiful nor elegant it likes to be improved. Kind regards, Nicolas --JaIvwu+DOSVoCCpT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEh0E3p4c3JKeBvsLGB1IKcBYmEmkFAmTtjVQACgkQB1IKcBYm Emnu6hAAiTYwlEcuArYqUntbY96On0jGhH2Ro38eVcbugkgaGXZdG2o6LDj7+Jv1 diCScvmsCCd0LT80ZjU8liNtsde+lqrL5XMAnELCaOMFDQPrLSp8HQ1NoPGkR3G7 He4w0psuLoXtKYlfc5txGbe7xiXqouA0UO0p+t/LX+roPbGFNsB6801KbXfHdvQu NeQM/chgqVRFESOgQ15prGDNjfvhCkmPL0tnsLTWbhmvH0JPhgkwbJDyJfoTiynV +RSgVhYh2IF2pN9NHcWfKspTNX0oBQJQ0OZMuFUNJz0+wOebpslo4jGbKHE85XD+ eEAJ93mWyDzA1eAoCfEb/mJqag7FWYTou+lIxSnPwdvhp21OS6wcYxp0jSjHCYGS bIyN/i4AGB3nGufPwyouWbu7N1ObEuT6M80sDJOla2tRCC8JpmXkMfyP6My/TZRl h5NPK9cirqd8HYUnayL7FUYX5jgfSgm+4G37gGHmzdPor2Ugr3QEDCUIssTyw22j v3EuoqJHuGTQWo80W8h07CFNgMxtW/zrq5ArTI9/N6vqtFQm6pec1WTAKC1/1pOU IaMdv/ZrebiU5u9QPGGL2qi4AVe8EWKMMzsaUvfVFfh19pW0KxMW4y7afFy7t+6v ICmnB7nhu0MM51uchAm+GjkTVLIEwVLbuq+hv8WWjpV4bfexyw8= =Puw/ -----END PGP SIGNATURE----- --JaIvwu+DOSVoCCpT-- From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B78C8C71153 for ; Tue, 29 Aug 2023 06:17:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7vVobFySrKlTE7QjxjE+4mZ1BnwWlm4YZ6FgcVOB7W8=; b=QoF4ttS0Uup+2FA3wlHVTFuX6H gGG5Rr9OVax8xTcXfCZTpFtZUvGbZ+/+F628OVwy7Z+DqFmQ5lHKdnTFyd3Hw6IbkgVmrr24qhMlL ehbmVYcaetOXjSLzWNMgm0yKaPSW3ogyaZzn7Ok5kac5JnhpUmaUgJiYWv7ibK1ijnO5MzutPTOxy LPPvSmuc5XwIbFKgKOobO14khJFyyik8ir0VQuRbLDb49g3I55OxnTJohHPLbdnmRttKstU7I9C9t K75OhihSSlPr/dgun2b8kWEIXHmKOzkI9rIxv50GmVLLQK+mUdaY3bOucu3+t1SQC+5XjIKAfEh+j evFzdyaw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qas2X-00ArFa-1w; Tue, 29 Aug 2023 06:17:25 +0000 Received: from mout.kundenserver.de ([217.72.192.74]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qas2Q-00ArEM-33; Tue, 29 Aug 2023 06:17:24 +0000 Received: from leknes.fjasle.eu ([46.142.49.30]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MHoVE-1qVyDm38PW-00Eqhu; Tue, 29 Aug 2023 08:16:56 +0200 Received: from localhost.fjasle.eu (kirkenes.fjasle.eu [10.10.0.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by leknes.fjasle.eu (Postfix) with ESMTPS id 7DC8F3E75F; Tue, 29 Aug 2023 08:16:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fjasle.eu; s=mail; t=1693289813; bh=Tee/zKgIxi0MjayamYCOiUTorl30qi/G3fi5jQxu9uo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i77dORvdD3FaDs5i6DL8ZDK8Unesg1yl+uxIVHscPJOTiKMcP2VspJD2G9iOvGdwt g66IuuMz7ZWJ6u7k5WjE1Y4BlJcxwiuINQexDhpLTiMQ0wsn0nnwKtN8vhCBKG0iZ5 ZvRHgNWgIPsQ0q0qgSPI44uFj8TAzGUWkgXHMIw8= Received: by localhost.fjasle.eu (Postfix, from userid 1000) id A94463949; Tue, 29 Aug 2023 08:16:52 +0200 (CEST) Date: Tue, 29 Aug 2023 08:16:52 +0200 From: Nicolas Schier To: Michael Ellerman Cc: Masahiro Yamada , Kees Cook , Christophe Leroy , Randy Dunlap , linux-kernel@vger.kernel.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH v2 0/2] kbuild: Show Kconfig fragments in "help" Message-ID: References: <20230825194329.gonna.911-kees@kernel.org> <87ttsjlmho.fsf@mail.lhotse> MIME-Version: 1.0 In-Reply-To: <87ttsjlmho.fsf@mail.lhotse> X-Operating-System: Debian GNU/Linux trixie/sid Jabber-ID: nicolas@jabber.no X-Provags-ID: V03:K1:OBnWK3wK1nt78UyoQFBURm442v+SvSoVVT7mPovCe98T1OcdBRW 545IdFbHubnZv1c8kyxGda2FhHOhq6S+JNQcmvQsPh86El8Z2oDObUTGZNkSYi3rBEhtPpe iFj+PMJcKoRUGTqyvPJRbQqi8muo/oIxULf5nsWJp9ECrUUtbCOcliu478mDcsJIYXLPwgG aRaGMaOKjgoTFmVfIQeAg== UI-OutboundReport: notjunk:1;M01:P0:aho7zI6zb94=;UNc0eYoT57cppRUqjLHjRPHfS+a 8VdRohInis0c7QGayzX+M5ASnk+RITNqxgfvW+u0ATCKZX6oHyS/jhoLszKOLFd9Ilq4q0LE3 XULvJczVDMa7GJRyJRb42EmiNHu3LDuHB6N+qHt/r7XKkjCqPzweWqVOclorxQuc07TYmVKEB VYLDvnSi+P+Qeu6sZGS9lfdgcj4/xs5ZYCXgxVpyiYn66G1gKe+iFQu7/xCearw+YuHZ/VcZi aDavfRBduMQ+GVtBn3i3f4Q31B+QC/X7ArBR3FD5Rw5Cog6qiC1M4Q6bbQEvjx/d0xYqdejjF TRWrnlnXo5lxza+CvhPTsO0ho/Ja0ZX7NEgwr9rZUSkU0VAd9VBGmNYZAUeCiK4P0JXy23wcB zgjblDKsWrzA9Mrz8mBkq2ZlQGpxu067zGzyCNtJeAXBQ0c3oXIolZoy0hf3b6Of41DUudgww EfT0Oq/xtmWKTKA9Hn84k1P6lltuVbMP26dqOEzbogRrIFOTnIApQfP6TaUF00gJePbxUojC7 2ZqXHrN7uT0wiCjgA933j7xFsgztlouzm9tAROAp6phsqxgdWBQvZJTY4zbeG8leFWCnOQDvp U/apGQzqW+btzLmP1yyHi1YpREj9VCyBhPnTIpMjho2NwQ4FOzbdJJLg53Mk3+lVkOPe0ByyQ x5AxUhsQv4eeZmpJSUlDO7KogsTOj1uBThtXziSFRnAAtb1tHGm3FpJQ4p3vDQvbE5QFgH1K9 K4u5I9HUmcKhg06Ny38PSF8fzMInmdx/sunR2VgSRethU2f1xLOkiBkzneQ7wKi/kq/cdCfC1 DsHyAnOhcZXIcLIKss3iNfnfDJtqyaRyHkrNM0JfYg2Cw++cn/SKPQNx3rWg3Ygqh2+otIvNj 5Zy5bJ8wvsLjqb4cOXe6Sva06ebxscY0hHGg= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230828_231720_829417_77012935 X-CRM114-Status: GOOD ( 23.33 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============6992720676128250018==" Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org --===============6992720676128250018== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JaIvwu+DOSVoCCpT" Content-Disposition: inline --JaIvwu+DOSVoCCpT Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 28 Aug 2023 16:17:07 GMT, Michael Ellerman wrote: > Masahiro Yamada writes: > > On Sat, Aug 26, 2023 at 4:55=E2=80=AFAM Kees Cook wrote: > >> > >> Hi, > >> > >> This is my series to show *.config targets in the "help" target so the= se > >> various topics can be more easily discoverd. > >> > >> v2: > >> - split .fragment from .config to hide "internal" fragments > > > > Please do not do this churn. >=20 > That was my idea :} >=20 > > Like Randy, I did not get "why" part quiet well, > > but if you are eager about this, > > you can show help message only when the following > > ("# Help:" prefix for example) is found in the first line. > > > > # Help: blah blah > > # other comment >=20 > I did think of that, but wasn't sure how to do it in make. Something like this should do it: @grep -Hnm1 -e '^# Help:' $(foreach f, $(sort $(notdir $(call configfiles,= *.config))), $(firstword $(call configfiles,$(f)))) | \ while read loc dummy helptext; do \ tmp=3D"$${loc%:#}"; file=3D"$${tmp%:*}"; line=3D"$${tmp##*:}"; \ [ "$${line}" =3D "1" ] && \ printf " %-25s - %s\\n" "$${file##*/}" "$${helptext}"; \ done but this neither beautiful nor elegant it likes to be improved. Kind regards, Nicolas --JaIvwu+DOSVoCCpT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEh0E3p4c3JKeBvsLGB1IKcBYmEmkFAmTtjVQACgkQB1IKcBYm Emnu6hAAiTYwlEcuArYqUntbY96On0jGhH2Ro38eVcbugkgaGXZdG2o6LDj7+Jv1 diCScvmsCCd0LT80ZjU8liNtsde+lqrL5XMAnELCaOMFDQPrLSp8HQ1NoPGkR3G7 He4w0psuLoXtKYlfc5txGbe7xiXqouA0UO0p+t/LX+roPbGFNsB6801KbXfHdvQu NeQM/chgqVRFESOgQ15prGDNjfvhCkmPL0tnsLTWbhmvH0JPhgkwbJDyJfoTiynV +RSgVhYh2IF2pN9NHcWfKspTNX0oBQJQ0OZMuFUNJz0+wOebpslo4jGbKHE85XD+ eEAJ93mWyDzA1eAoCfEb/mJqag7FWYTou+lIxSnPwdvhp21OS6wcYxp0jSjHCYGS bIyN/i4AGB3nGufPwyouWbu7N1ObEuT6M80sDJOla2tRCC8JpmXkMfyP6My/TZRl h5NPK9cirqd8HYUnayL7FUYX5jgfSgm+4G37gGHmzdPor2Ugr3QEDCUIssTyw22j v3EuoqJHuGTQWo80W8h07CFNgMxtW/zrq5ArTI9/N6vqtFQm6pec1WTAKC1/1pOU IaMdv/ZrebiU5u9QPGGL2qi4AVe8EWKMMzsaUvfVFfh19pW0KxMW4y7afFy7t+6v ICmnB7nhu0MM51uchAm+GjkTVLIEwVLbuq+hv8WWjpV4bfexyw8= =Puw/ -----END PGP SIGNATURE----- --JaIvwu+DOSVoCCpT-- --===============6992720676128250018== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv --===============6992720676128250018==-- From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62B7EC83F12 for ; Tue, 29 Aug 2023 06:36:39 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=fjasle.eu header.i=@fjasle.eu header.a=rsa-sha256 header.s=mail header.b=i77dORvd; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4RZd4P5k65z3bVp for ; Tue, 29 Aug 2023 16:36:37 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=fjasle.eu header.i=@fjasle.eu header.a=rsa-sha256 header.s=mail header.b=i77dORvd; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=fjasle.eu (client-ip=217.72.192.75; helo=mout.kundenserver.de; envelope-from=nicolas@fjasle.eu; receiver=lists.ozlabs.org) X-Greylist: delayed 955 seconds by postgrey-1.37 at boromir; Tue, 29 Aug 2023 16:34:24 AEST Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4RZd1r19L0z2yts for ; Tue, 29 Aug 2023 16:34:10 +1000 (AEST) Received: from leknes.fjasle.eu ([46.142.49.30]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MHoVE-1qVyDm38PW-00Eqhu; Tue, 29 Aug 2023 08:16:56 +0200 Received: from localhost.fjasle.eu (kirkenes.fjasle.eu [10.10.0.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by leknes.fjasle.eu (Postfix) with ESMTPS id 7DC8F3E75F; Tue, 29 Aug 2023 08:16:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fjasle.eu; s=mail; t=1693289813; bh=Tee/zKgIxi0MjayamYCOiUTorl30qi/G3fi5jQxu9uo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i77dORvdD3FaDs5i6DL8ZDK8Unesg1yl+uxIVHscPJOTiKMcP2VspJD2G9iOvGdwt g66IuuMz7ZWJ6u7k5WjE1Y4BlJcxwiuINQexDhpLTiMQ0wsn0nnwKtN8vhCBKG0iZ5 ZvRHgNWgIPsQ0q0qgSPI44uFj8TAzGUWkgXHMIw8= Received: by localhost.fjasle.eu (Postfix, from userid 1000) id A94463949; Tue, 29 Aug 2023 08:16:52 +0200 (CEST) Date: Tue, 29 Aug 2023 08:16:52 +0200 From: Nicolas Schier To: Michael Ellerman Subject: Re: [PATCH v2 0/2] kbuild: Show Kconfig fragments in "help" Message-ID: References: <20230825194329.gonna.911-kees@kernel.org> <87ttsjlmho.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JaIvwu+DOSVoCCpT" Content-Disposition: inline In-Reply-To: <87ttsjlmho.fsf@mail.lhotse> X-Operating-System: Debian GNU/Linux trixie/sid Jabber-ID: nicolas@jabber.no X-Provags-ID: V03:K1:OBnWK3wK1nt78UyoQFBURm442v+SvSoVVT7mPovCe98T1OcdBRW 545IdFbHubnZv1c8kyxGda2FhHOhq6S+JNQcmvQsPh86El8Z2oDObUTGZNkSYi3rBEhtPpe iFj+PMJcKoRUGTqyvPJRbQqi8muo/oIxULf5nsWJp9ECrUUtbCOcliu478mDcsJIYXLPwgG aRaGMaOKjgoTFmVfIQeAg== UI-OutboundReport: notjunk:1;M01:P0:nSBSSgCh6aA=;thLCeKRGORoP7Z52qbIwEOyZs8p s03Gq/QGaTPlQsw/arXEDUEHKjwvCW9FuCMa6k8bB1Adfem/KUX9qTptZD5/0JCFciq8zOHQc 7XA8GGP7m1nwYgeuQkL74TG4AWMEy3Jo1SWi0gQ3YwexBD8FOI0F3p5L4loi43P3lZhckYZZy GtyzJYOGIzG6pCXWZHmScrB3yQxzam8o73h4a4QMcEveRHTDDM7dI2KXHMj/wqlMLMsNzTNg6 XG6Fpk4Fu7Ml9eZUyP4xsSoIMv8MSSlMyXNfW2ulETDOGD5FNcPRdZQVpQaTo/n4JvDRfDy25 qEOYe23HCWHy058ABBzs4DMhXDG7614CoxlJhqC8oGf/mTplvHPRTUTmIEuHyQWoBJIDHjsMN IpMAiZ6bZ6ew4lJ0tSIFP/ALJNs0PMLjURbWvi90SpHJJduTbKOsXye8XQrh08cPM6PhUKbHy j/K7Bak/CfdwlTb1kKDU2UM32tOenQGQpPn7p+x0IFOXXzPMwNJau0mtsCdEGolpMKTt9r2L+ o+MPmghrttrrwz/hms/mFIBxy5hMDhbkv2vjZ9kqq9AcvtTdsKIOpoSFKykM290yQoskcIK0y BYpbol5lyMUB26Ier6aWmd+zplSPTcRqnAS5eLU3GyOPOH5iucnDoj0H7Jlrx1Qx82SU04zUK n6TT4SkOZiRazU+EXVNwUt8Knp8EV8w1B0h1VMA4WrXngEwgLHKlTD8RFp3mGH87hnvNS4G4M +XNQ4ln6zbPl92we03M99tLssRXDgKOkBjdeGAO0YnFY2C1mT0Bc/CkkEbPS2DElDubNJSQkB 21sPhUY4DzKfVDb36V9O+/DUovedjQUVMPJ7yJxx+dKivX3PhbEpiyIc1s9jdCApHf1zcsmO1 Hy1hB86IRbNXPEQ== X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-s390@vger.kernel.org, Randy Dunlap , Kees Cook , linux-kbuild@vger.kernel.org, Masahiro Yamada , x86@kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" --JaIvwu+DOSVoCCpT Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 28 Aug 2023 16:17:07 GMT, Michael Ellerman wrote: > Masahiro Yamada writes: > > On Sat, Aug 26, 2023 at 4:55=E2=80=AFAM Kees Cook wrote: > >> > >> Hi, > >> > >> This is my series to show *.config targets in the "help" target so the= se > >> various topics can be more easily discoverd. > >> > >> v2: > >> - split .fragment from .config to hide "internal" fragments > > > > Please do not do this churn. >=20 > That was my idea :} >=20 > > Like Randy, I did not get "why" part quiet well, > > but if you are eager about this, > > you can show help message only when the following > > ("# Help:" prefix for example) is found in the first line. > > > > # Help: blah blah > > # other comment >=20 > I did think of that, but wasn't sure how to do it in make. Something like this should do it: @grep -Hnm1 -e '^# Help:' $(foreach f, $(sort $(notdir $(call configfiles,= *.config))), $(firstword $(call configfiles,$(f)))) | \ while read loc dummy helptext; do \ tmp=3D"$${loc%:#}"; file=3D"$${tmp%:*}"; line=3D"$${tmp##*:}"; \ [ "$${line}" =3D "1" ] && \ printf " %-25s - %s\\n" "$${file##*/}" "$${helptext}"; \ done but this neither beautiful nor elegant it likes to be improved. Kind regards, Nicolas --JaIvwu+DOSVoCCpT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEh0E3p4c3JKeBvsLGB1IKcBYmEmkFAmTtjVQACgkQB1IKcBYm Emnu6hAAiTYwlEcuArYqUntbY96On0jGhH2Ro38eVcbugkgaGXZdG2o6LDj7+Jv1 diCScvmsCCd0LT80ZjU8liNtsde+lqrL5XMAnELCaOMFDQPrLSp8HQ1NoPGkR3G7 He4w0psuLoXtKYlfc5txGbe7xiXqouA0UO0p+t/LX+roPbGFNsB6801KbXfHdvQu NeQM/chgqVRFESOgQ15prGDNjfvhCkmPL0tnsLTWbhmvH0JPhgkwbJDyJfoTiynV +RSgVhYh2IF2pN9NHcWfKspTNX0oBQJQ0OZMuFUNJz0+wOebpslo4jGbKHE85XD+ eEAJ93mWyDzA1eAoCfEb/mJqag7FWYTou+lIxSnPwdvhp21OS6wcYxp0jSjHCYGS bIyN/i4AGB3nGufPwyouWbu7N1ObEuT6M80sDJOla2tRCC8JpmXkMfyP6My/TZRl h5NPK9cirqd8HYUnayL7FUYX5jgfSgm+4G37gGHmzdPor2Ugr3QEDCUIssTyw22j v3EuoqJHuGTQWo80W8h07CFNgMxtW/zrq5ArTI9/N6vqtFQm6pec1WTAKC1/1pOU IaMdv/ZrebiU5u9QPGGL2qi4AVe8EWKMMzsaUvfVFfh19pW0KxMW4y7afFy7t+6v ICmnB7nhu0MM51uchAm+GjkTVLIEwVLbuq+hv8WWjpV4bfexyw8= =Puw/ -----END PGP SIGNATURE----- --JaIvwu+DOSVoCCpT-- From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9509EC71153 for ; Tue, 29 Aug 2023 06:18:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Ys62oyJa1CiEwMwnfz5wZbCQC21M1zWH4OYLxhL73TA=; b=WNYlNAnnF7CDREsJ3Pz4bekNzT 6fvoYHGXSB0XZv6t+ybHLwgPmYU2PSiA3mEO8XN1yk1UMnx/eeS4QwuPOMXzqlpEmJNQFveCd/nKd vgq4Tia8DHyLWRgSi3J9MMNq1R/g9O5SFfcu8rgqFrfxc/bBlsErxwrIK7d/NzNCP3a/jEPx2ZvTj 1+P3vLEybJCPQZ3Ug0JJmMhkT9pUEJbnWMo+jJgfTpePb+rGpkfehUL9SMMc7Bh5EO5fZTtYAM+W7 kbryEIbnFcY0pvnOyA4zWkuXFrzo++jW9FPpHN3HC9dZGgo5IttW15WU4xN67F7DVHLE0ri6+oXzE KfbwUTHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qas2Y-00ArFe-0R; Tue, 29 Aug 2023 06:17:26 +0000 Received: from mout.kundenserver.de ([217.72.192.74]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qas2Q-00ArEM-33; Tue, 29 Aug 2023 06:17:24 +0000 Received: from leknes.fjasle.eu ([46.142.49.30]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MHoVE-1qVyDm38PW-00Eqhu; Tue, 29 Aug 2023 08:16:56 +0200 Received: from localhost.fjasle.eu (kirkenes.fjasle.eu [10.10.0.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by leknes.fjasle.eu (Postfix) with ESMTPS id 7DC8F3E75F; Tue, 29 Aug 2023 08:16:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fjasle.eu; s=mail; t=1693289813; bh=Tee/zKgIxi0MjayamYCOiUTorl30qi/G3fi5jQxu9uo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i77dORvdD3FaDs5i6DL8ZDK8Unesg1yl+uxIVHscPJOTiKMcP2VspJD2G9iOvGdwt g66IuuMz7ZWJ6u7k5WjE1Y4BlJcxwiuINQexDhpLTiMQ0wsn0nnwKtN8vhCBKG0iZ5 ZvRHgNWgIPsQ0q0qgSPI44uFj8TAzGUWkgXHMIw8= Received: by localhost.fjasle.eu (Postfix, from userid 1000) id A94463949; Tue, 29 Aug 2023 08:16:52 +0200 (CEST) Date: Tue, 29 Aug 2023 08:16:52 +0200 From: Nicolas Schier To: Michael Ellerman Cc: Masahiro Yamada , Kees Cook , Christophe Leroy , Randy Dunlap , linux-kernel@vger.kernel.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH v2 0/2] kbuild: Show Kconfig fragments in "help" Message-ID: References: <20230825194329.gonna.911-kees@kernel.org> <87ttsjlmho.fsf@mail.lhotse> MIME-Version: 1.0 In-Reply-To: <87ttsjlmho.fsf@mail.lhotse> X-Operating-System: Debian GNU/Linux trixie/sid Jabber-ID: nicolas@jabber.no X-Provags-ID: V03:K1:OBnWK3wK1nt78UyoQFBURm442v+SvSoVVT7mPovCe98T1OcdBRW 545IdFbHubnZv1c8kyxGda2FhHOhq6S+JNQcmvQsPh86El8Z2oDObUTGZNkSYi3rBEhtPpe iFj+PMJcKoRUGTqyvPJRbQqi8muo/oIxULf5nsWJp9ECrUUtbCOcliu478mDcsJIYXLPwgG aRaGMaOKjgoTFmVfIQeAg== UI-OutboundReport: notjunk:1;M01:P0:aho7zI6zb94=;UNc0eYoT57cppRUqjLHjRPHfS+a 8VdRohInis0c7QGayzX+M5ASnk+RITNqxgfvW+u0ATCKZX6oHyS/jhoLszKOLFd9Ilq4q0LE3 XULvJczVDMa7GJRyJRb42EmiNHu3LDuHB6N+qHt/r7XKkjCqPzweWqVOclorxQuc07TYmVKEB VYLDvnSi+P+Qeu6sZGS9lfdgcj4/xs5ZYCXgxVpyiYn66G1gKe+iFQu7/xCearw+YuHZ/VcZi aDavfRBduMQ+GVtBn3i3f4Q31B+QC/X7ArBR3FD5Rw5Cog6qiC1M4Q6bbQEvjx/d0xYqdejjF TRWrnlnXo5lxza+CvhPTsO0ho/Ja0ZX7NEgwr9rZUSkU0VAd9VBGmNYZAUeCiK4P0JXy23wcB zgjblDKsWrzA9Mrz8mBkq2ZlQGpxu067zGzyCNtJeAXBQ0c3oXIolZoy0hf3b6Of41DUudgww EfT0Oq/xtmWKTKA9Hn84k1P6lltuVbMP26dqOEzbogRrIFOTnIApQfP6TaUF00gJePbxUojC7 2ZqXHrN7uT0wiCjgA933j7xFsgztlouzm9tAROAp6phsqxgdWBQvZJTY4zbeG8leFWCnOQDvp U/apGQzqW+btzLmP1yyHi1YpREj9VCyBhPnTIpMjho2NwQ4FOzbdJJLg53Mk3+lVkOPe0ByyQ x5AxUhsQv4eeZmpJSUlDO7KogsTOj1uBThtXziSFRnAAtb1tHGm3FpJQ4p3vDQvbE5QFgH1K9 K4u5I9HUmcKhg06Ny38PSF8fzMInmdx/sunR2VgSRethU2f1xLOkiBkzneQ7wKi/kq/cdCfC1 DsHyAnOhcZXIcLIKss3iNfnfDJtqyaRyHkrNM0JfYg2Cw++cn/SKPQNx3rWg3Ygqh2+otIvNj 5Zy5bJ8wvsLjqb4cOXe6Sva06ebxscY0hHGg= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230828_231720_829417_77012935 X-CRM114-Status: GOOD ( 23.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============4205630431831050200==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============4205630431831050200== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JaIvwu+DOSVoCCpT" Content-Disposition: inline --JaIvwu+DOSVoCCpT Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 28 Aug 2023 16:17:07 GMT, Michael Ellerman wrote: > Masahiro Yamada writes: > > On Sat, Aug 26, 2023 at 4:55=E2=80=AFAM Kees Cook wrote: > >> > >> Hi, > >> > >> This is my series to show *.config targets in the "help" target so the= se > >> various topics can be more easily discoverd. > >> > >> v2: > >> - split .fragment from .config to hide "internal" fragments > > > > Please do not do this churn. >=20 > That was my idea :} >=20 > > Like Randy, I did not get "why" part quiet well, > > but if you are eager about this, > > you can show help message only when the following > > ("# Help:" prefix for example) is found in the first line. > > > > # Help: blah blah > > # other comment >=20 > I did think of that, but wasn't sure how to do it in make. Something like this should do it: @grep -Hnm1 -e '^# Help:' $(foreach f, $(sort $(notdir $(call configfiles,= *.config))), $(firstword $(call configfiles,$(f)))) | \ while read loc dummy helptext; do \ tmp=3D"$${loc%:#}"; file=3D"$${tmp%:*}"; line=3D"$${tmp##*:}"; \ [ "$${line}" =3D "1" ] && \ printf " %-25s - %s\\n" "$${file##*/}" "$${helptext}"; \ done but this neither beautiful nor elegant it likes to be improved. Kind regards, Nicolas --JaIvwu+DOSVoCCpT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEh0E3p4c3JKeBvsLGB1IKcBYmEmkFAmTtjVQACgkQB1IKcBYm Emnu6hAAiTYwlEcuArYqUntbY96On0jGhH2Ro38eVcbugkgaGXZdG2o6LDj7+Jv1 diCScvmsCCd0LT80ZjU8liNtsde+lqrL5XMAnELCaOMFDQPrLSp8HQ1NoPGkR3G7 He4w0psuLoXtKYlfc5txGbe7xiXqouA0UO0p+t/LX+roPbGFNsB6801KbXfHdvQu NeQM/chgqVRFESOgQ15prGDNjfvhCkmPL0tnsLTWbhmvH0JPhgkwbJDyJfoTiynV +RSgVhYh2IF2pN9NHcWfKspTNX0oBQJQ0OZMuFUNJz0+wOebpslo4jGbKHE85XD+ eEAJ93mWyDzA1eAoCfEb/mJqag7FWYTou+lIxSnPwdvhp21OS6wcYxp0jSjHCYGS bIyN/i4AGB3nGufPwyouWbu7N1ObEuT6M80sDJOla2tRCC8JpmXkMfyP6My/TZRl h5NPK9cirqd8HYUnayL7FUYX5jgfSgm+4G37gGHmzdPor2Ugr3QEDCUIssTyw22j v3EuoqJHuGTQWo80W8h07CFNgMxtW/zrq5ArTI9/N6vqtFQm6pec1WTAKC1/1pOU IaMdv/ZrebiU5u9QPGGL2qi4AVe8EWKMMzsaUvfVFfh19pW0KxMW4y7afFy7t+6v ICmnB7nhu0MM51uchAm+GjkTVLIEwVLbuq+hv8WWjpV4bfexyw8= =Puw/ -----END PGP SIGNATURE----- --JaIvwu+DOSVoCCpT-- --===============4205630431831050200== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============4205630431831050200==--