diff options
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 (patch) | |
tree | b9b66af340b6e30b843741eae3046eaae34d87a9 /scripts/Makefile.lib | |
parent | bcf0c6642833673830ee9d9b40862a4c476d1565 (diff) | |
download | linux-d4452837ffbeb59e18f2499ef907579a618d623d.tar.bz2 |
kbuild: refactor modname-multi by using suffix-search
Improve the readability slightly.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/Makefile.lib')
-rw-r--r-- | scripts/Makefile.lib | 2 |
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)) |