FROMGIT: kbuild: reuse suffix-search to refactor multi_depend
The complicated part of multi_depend is the same as suffix-search. Reuse it. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Bug: 175420575 (cherry picked from commit db6836b669fb7c4a214e967e3985db05d85f2a24 https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git kbuild) Change-Id: I7966897a0151a08d003f53d20adaf3fb40028442 Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
This commit is contained in:
parent
ff8dd4797e
commit
12b13aeab2
|
@ -251,7 +251,7 @@ objtool_args = \
|
|||
define multi_depend
|
||||
$(foreach m, $(notdir $1), \
|
||||
$(eval $(obj)/$m: \
|
||||
$(addprefix $(obj)/, $(foreach s, $3, $($(m:%$(strip $2)=%$(s)))))))
|
||||
$(addprefix $(obj)/, $(call suffix-search, $m, $2, $3))))
|
||||
endef
|
||||
|
||||
quiet_cmd_copy = COPY $@
|
||||
|
|
Loading…
Reference in New Issue