author: Masahiro Yamada <masahiroy@kernel.org> 2021-05-03 03:09:57 +0900
committer: Masahiro Yamada <masahiroy@kernel.org> 2021-05-06 02:14:38 +0900
commit: d4452837ffbeb59e18f2499ef907579a618d623d
parent: bcf0c6642833673830ee9d9b40862a4c476d1565
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index deac60727e48..10950559b223 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -109,7 +109,7 @@ subdir-ym := $(addprefix $(obj)/,$(subdir-ym))
# Finds the multi-part object the current object will be linked into.
# If the object belongs to two or more multi-part objects, list them all.
modname-multi = $(sort $(foreach m,$(multi-obj-ym),\
- $(if $(filter $*.o, $($(m:.o=-objs)) $($(m:.o=-y)) $($(m:.o=-m))),$(m:.o=))))
+ $(if $(filter $*.o, $(call suffix-search, $m, .o, -objs -y -m)),$(m:.o=))))
__modname = $(if $(modname-multi),$(modname-multi),$(basetarget))