aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2021-05-03 03:09:57 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2021-05-06 02:14:38 +0900
commitd4452837ffbeb59e18f2499ef907579a618d623d (patch)
treeb9b66af340b6e30b843741eae3046eaae34d87a9 /scripts
parentkbuild: refactor fdtoverlay rule (diff)
downloadlinux-dev-d4452837ffbeb59e18f2499ef907579a618d623d.tar.xz
linux-dev-d4452837ffbeb59e18f2499ef907579a618d623d.zip
kbuild: refactor modname-multi by using suffix-search
Improve the readability slightly. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.lib2
1 files changed, 1 insertions, 1 deletions
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))