summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.build
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2022-04-06 17:30:19 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2022-05-07 20:16:59 +0200
commitb3591e061919c837c14680c1ceff8f009ed0afb4 (patch)
tree746c2fc2613e40bf2cbf650da7f0d3f2e4997e0e /scripts/Makefile.build
parentkbuild: make multi_depend work with targets in subdirectory (diff)
downloadlinux-b3591e061919c837c14680c1ceff8f009ed0afb4.tar.xz
linux-b3591e061919c837c14680c1ceff8f009ed0afb4.zip
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>
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r--scripts/Makefile.build2
1 files changed, 1 insertions, 1 deletions
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; \
} > $@