On 02.03.26 09:55, Ilias Apalodimas wrote:
> 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 <[email protected]>
> Signed-off-by: Ilias Apalodimas <[email protected]>
Thanks for the fix!
Tested-by: Frieder Schrempf <[email protected]>
> ---
> tools/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/Makefile b/tools/Makefile
> index 0ac683ac3ec7..5d8e8f349e13 100644
> --- a/tools/Makefile
> +++ b/tools/Makefile
> @@ -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
> --
> 2.51.0
>