diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-04-06 18:30:19 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-05-07 21:16:59 +0300 |
commit | b3591e061919c837c14680c1ceff8f009ed0afb4 (patch) | |
tree | 746c2fc2613e40bf2cbf650da7f0d3f2e4997e0e /scripts/Makefile.build | |
parent | f97cf399915bc928f5f97ce93e15ce40da514e16 (diff) | |
download | linux-b3591e061919c837c14680c1ceff8f009ed0afb4.tar.xz |
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.build | 2 |
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; \ } > $@ |