diff mbox series

[v2] scripts: dummy-tools, add pahole

Message ID 20220419063009.25352-1-jslaby@suse.cz (mailing list archive)
State New, archived
Headers show
Series [v2] scripts: dummy-tools, add pahole | expand

Commit Message

Jiri Slaby April 19, 2022, 6:30 a.m. UTC
CONFIG_PAHOLE_VERSION is a part of a config since the commit below. And
when multiple people update the config, this value constantly changes.
Even if they use dummy scripts.

To fix this, add a pahole dummy script returning v99.99. (This is
translated into 9999 later in the process.)

Thereafter, this script can be invoked easily for example as:
make PAHOLE=scripts/dummy-tools/pahole oldconfig

Fixes: 613fe1692377 (kbuild: Add CONFIG_PAHOLE_VERSION)
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Michal Marek <michal.lkml@markovi.net>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: linux-kbuild@vger.kernel.org
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
---
[v2] don't touch Makefile, add only the pahole script

 scripts/dummy-tools/pahole | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100755 scripts/dummy-tools/pahole

Comments

Masahiro Yamada April 20, 2022, 4:21 p.m. UTC | #1
On Tue, Apr 19, 2022 at 3:30 PM Jiri Slaby <jslaby@suse.cz> wrote:
>
> CONFIG_PAHOLE_VERSION is a part of a config since the commit below. And
> when multiple people update the config, this value constantly changes.
> Even if they use dummy scripts.
>
> To fix this, add a pahole dummy script returning v99.99. (This is
> translated into 9999 later in the process.)
>
> Thereafter, this script can be invoked easily for example as:
> make PAHOLE=scripts/dummy-tools/pahole oldconfig

Applied to linux-kbuild.
Thanks.


> Fixes: 613fe1692377 (kbuild: Add CONFIG_PAHOLE_VERSION)
> Cc: Masahiro Yamada <masahiroy@kernel.org>
> Cc: Michal Marek <michal.lkml@markovi.net>
> Cc: Nick Desaulniers <ndesaulniers@google.com>
> Cc: linux-kbuild@vger.kernel.org
> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
> ---
> [v2] don't touch Makefile, add only the pahole script
>
>  scripts/dummy-tools/pahole | 4 ++++
>  1 file changed, 4 insertions(+)
>  create mode 100755 scripts/dummy-tools/pahole
>
> diff --git a/scripts/dummy-tools/pahole b/scripts/dummy-tools/pahole
> new file mode 100755
> index 000000000000..53501a36fa71
> --- /dev/null
> +++ b/scripts/dummy-tools/pahole
> @@ -0,0 +1,4 @@
> +#!/bin/sh
> +# SPDX-License-Identifier: GPL-2.0-only
> +
> +echo v99.99
> --
> 2.35.3
>
diff mbox series

Patch

diff --git a/scripts/dummy-tools/pahole b/scripts/dummy-tools/pahole
new file mode 100755
index 000000000000..53501a36fa71
--- /dev/null
+++ b/scripts/dummy-tools/pahole
@@ -0,0 +1,4 @@ 
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-only
+
+echo v99.99