Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+1 -1
+1 -1
scripts/Makefile.build
··· 306 306 endif 307 307 308 308 cmd_mod = { \ 309 - echo $(if $($*-objs)$($*-y)$($*-m), $(addprefix $(obj)/, $($*-objs) $($*-y) $($*-m)), $(@:.mod=.o)); \ 309 + echo $(addprefix $(obj)/, $(call real-search, $*.o, .o, -objs -y -m)); \ 310 310 $(undefined_syms) echo; \ 311 311 } > $@ 312 312