]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
kbuild: fix cross_tools compilation
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Mon, 2 Mar 2026 08:55:07 +0000 (10:55 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 10 Mar 2026 21:06:55 +0000 (15:06 -0600)
Frieder reports that after the kbuild sync running
make tools-only_defconfig
make cross_tools
fails with

UPD     include/generated/timestamp_autogenerated.h
PYMOD   rebuild
tools/Makefile:359: *** insufficient number of arguments (1) to function
'filter'.  Stop.
make: *** [Makefile:2191: tools] Error 2

After the sync 'hostprogs-always-y' contains the complete list of
the tools we need to strip, so the $(filter) command is not needed.

Fixes: bd3f9ee679b4d ("kbuild: Bump the build system to 6.1")
Reported-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Tested-by: Frieder Schrempf <frieder.schrempf@kontron.de>
tools/Makefile

index 0ac683ac3ec7d25f8ace09fdc11f647a07d82871..5d8e8f349e137bf6c3dd3f9bac5debeacd9a1098 100644 (file)
@@ -356,7 +356,7 @@ override HOSTCFLAGS = $(CFLAGS)
 
 quiet_cmd_crosstools_strip = STRIP   $^
       cmd_crosstools_strip = $(STRIP) $^; touch $@
-$(obj)/.strip: $(call objectify,$(filter $(hostprogs-always-y)))
+$(obj)/.strip: $(call objectify,$(hostprogs-always-y))
        $(call cmd,crosstools_strip)
 
 always-y += .strip