[PATCH 2/3] kbuild: drop the tools/ target
From: Thomas Weißschuh
Date: Mon Nov 02 2026 - 00:56:02 EST
The target is unusable as it gets overridden by the $(single-no-ko)
target. The only thing it would do is to print the help message.
$ make tools/
Makefile:2218: warning: overriding recipe for target 'tools/'
Makefile:1639: warning: ignoring old recipe for target 'tools/'
Drop the target.
Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
Makefile | 4 ----
1 file changed, 4 deletions(-)
diff --git a/Makefile b/Makefile
index f895752d4b05..d73f2bbd3b93 100644
--- a/Makefile
+++ b/Makefile
@@ -1635,10 +1635,6 @@ ifneq ($(wildcard $(bootconfig_O)),)
$(Q)$(MAKE) -sC $(srctree)/tools/bootconfig O=$(bootconfig_O) clean
endif
-tools/: FORCE
- $(Q)mkdir -p $(objtree)/tools
- $(Q)$(MAKE) O=$(abspath $(objtree)) subdir=tools -C $(srctree)/tools/
-
tools/%: FORCE
$(Q)mkdir -p $(objtree)/tools
$(Q)$(MAKE) O=$(abspath $(objtree)) subdir=tools -C $(srctree)/tools/ $*
--
2.56.0