Commit 9eef99f7 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

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: default avatarMasahiro Yamada <masahiroy@kernel.org>
Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
parent 7cfa2fcb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -238,7 +238,7 @@ endif
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

# Copy a file