Commit b3591e06 authored by Masahiro Yamada's avatar Masahiro Yamada

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: default avatarMasahiro Yamada <masahiroy@kernel.org>
Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
parent f97cf399
......@@ -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; \
} > $@
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment