kbuild: error out if $(KBUILD_EXTMOD) contains % or :
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 14 Jul 2022 05:02:42 +0000 (14:02 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 27 Jul 2022 12:18:00 +0000 (21:18 +0900)
commit9a68fd7fd8b05050b27ae67a829a2035b2b7a993
tree35eeea3c5ff711190a3ac855cb3e833cc022f98f
parent6105e4f6511d6b383738be89efb99c607e158a29
kbuild: error out if $(KBUILD_EXTMOD) contains % or :

If the directory path given to KBUILD_EXTMOD (or M=) contains % or :,
the module fails to build.

% is used in pattern rules, and : as the separator of dependencies.

Bail out with a clearer error message.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>
Makefile