mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
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 <masahiroy@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
This commit is contained in:
parent
f97cf39991
commit
b3591e0619
@ -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; \
|
||||
} > $@
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user