projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f97cf39
)
kbuild: reuse real-search to simplify cmd_mod
author
Masahiro Yamada
<masahiroy@kernel.org>
Wed, 6 Apr 2022 15:30:19 +0000
(
00:30
+0900)
committer
Masahiro Yamada
<masahiroy@kernel.org>
Sat, 7 May 2022 18:16:59 +0000
(
03:16
+0900)
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>
scripts/Makefile.build
patch
|
blob
|
history
diff --git
a/scripts/Makefile.build
b/scripts/Makefile.build
index
f15c245
..
8573298
100644
(file)
--- 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; \
} > $@