Skip to contentSkip to conversation

scripts: dummy-tools, add pahole

PATCH In review Jiri Slaby 2 participants 2 messages Apr 19, 2022 – Apr 20, 2022 Kbuild

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH v2 1/1 scripts: dummy-tools, add pahole

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 <[email protected]>
Cc Michal Marek <[email protected]>
Cc Nick Desaulniers <[email protected]>

---
[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
scripts/dummy-tools/pahole new file +4 -0
new file mode 100755
index 000000000000..53501a36fa71
@@ -0,0 +1,4 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-only
+
+echo v99.99
Signature · 1 line
2.35.3
#1 lore raw
Quoted 10 lines · Jiri Slaby

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.

Quoted 26 lines
Fixes 613fe1692377 (kbuild: Add CONFIG_PAHOLE_VERSION)
Cc Masahiro Yamada <[email protected]>
Cc Michal Marek <[email protected]>
Cc Nick Desaulniers <[email protected]>

---
[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
scripts/dummy-tools/pahole new file +4 -1
new file mode 100755
index 000000000000..53501a36fa71
@@ -0,0 +1,4 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-only
+
+echo v99.99
--

2.35.3

Signature · 2 lines
Best Regards
Masahiro Yamada