From: Masahiro Yamada Date: Wed, 6 Apr 2022 15:30:19 +0000 (+0900) Subject: kbuild: reuse real-search to simplify cmd_mod X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b3591e061919c837c14680c1ceff8f009ed0afb4;p=linux.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 f15c245dc17e6..8573298447899 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; \ } > $@