[PATCH v2 3/3] tools/build: Don't print DESCEND messages when executed through kbuild
From: Thomas Weißschuh
Date: Fri Nov 06 2026 - 22:04:36 EST
kbuild itself does not print the directories it descends into.
When kbuild executes the tools/ build these messages are out of place.
Detect an execution through kbuild and use its printing logic:
Nothing is printed by default, the full command is printed with V=1.
The override logic is part of the tools/ build as kbuild executes
tools/ from multiple places.
Reviewed-by: Nathan Chancellor <nathan@xxxxxxxxxx>
Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
tools/scripts/Makefile.include | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tools/scripts/Makefile.include b/tools/scripts/Makefile.include
index db989830bbac..cfd9488136fa 100644
--- a/tools/scripts/Makefile.include
+++ b/tools/scripts/Makefile.include
@@ -237,4 +237,9 @@ ifneq ($(silent),1)
endif
endif
+# Don't print DESCEND messages when executed from kbuild
+ifneq ($(origin KBUILD_VERBOSE),undefined)
+ QUIET_DESCEND = $(Q)
+endif
+
pound := \#
--
2.56.0