Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+1 -1
+1 -1
scripts/Makefile.lib
··· 238 238 define multi_depend 239 239 $(foreach m, $(notdir $1), \ 240 240 $(eval $(obj)/$m: \ 241 - $(addprefix $(obj)/, $(foreach s, $3, $($(m:%$(strip $2)=%$(s))))))) 241 + $(addprefix $(obj)/, $(call suffix-search, $m, $2, $3)))) 242 242 endef 243 243 244 244 # Copy a file