From: Masahiro Yamada Date: Wed, 6 Apr 2022 15:30:19 +0000 (+0900) Subject: kbuild: reuse real-search to simplify cmd_mod X-Git-Tag: for-5.19/block-exec-2022-06-02~29^2~42 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=b3591e061919c837c14680c1ceff8f009ed0afb4;p=linux-block.git kbuild: reuse real-search to simplify cmd_mod The first command in cmd_mod is similar to the real-search macro. Reuse it. Signed-off-by: Masahiro Yamada Reviewed-by: Nick Desaulniers --- diff --git a/scripts/Makefile.build b/scripts/Makefile.build index f15c245dc17e..857329844789 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -306,7 +306,7 @@ $(obj)/%.prelink.o: $(obj)/%.o FORCE endif cmd_mod = { \ - echo $(if $($*-objs)$($*-y)$($*-m), $(addprefix $(obj)/, $($*-objs) $($*-y) $($*-m)), $(@:.mod=.o)); \ + echo $(addprefix $(obj)/, $(call real-search, $*.o, .o, -objs -y -m)); \ $(undefined_syms) echo; \ } > $@