diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2021-07-29 09:12:54 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2021-08-05 20:56:35 +0900 |
commit | 14ccc638b02f9ec500c17d9e39efe979145a4b61 (patch) | |
tree | de7bc9905c49afb14ecf2e481c7a6e809b2a55a1 /Makefile | |
parent | 54eacba0e3bbda9777788b44b45a5186918569f2 (diff) | |
download | linux-14ccc638b02f9ec500c17d9e39efe979145a4b61.tar.gz linux-14ccc638b02f9ec500c17d9e39efe979145a4b61.tar.bz2 linux-14ccc638b02f9ec500c17d9e39efe979145a4b61.zip |
kbuild: cancel sub_make_done for the install target to fix DKMS
Since commit bcf637f54f6d ("kbuild: parse C= and M= before changing the
working directory"), external module builds invoked by DKMS fail because
M= option is not parsed.
I wanted to add 'unset sub_make_done' in install.sh but similar scripts,
arch/*/boot/install.sh, are duplicated, so I set sub_make_done empty in
the top Makefile.
Fixes: bcf637f54f6d ("kbuild: parse C= and M= before changing the working directory")
Reported-by: John S Gruber <johnsgruber@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: John S Gruber <johnsgruber@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1318,6 +1318,16 @@ scripts_unifdef: scripts_basic $(Q)$(MAKE) $(build)=scripts scripts/unifdef # --------------------------------------------------------------------------- +# Install + +# Many distributions have the custom install script, /sbin/installkernel. +# If DKMS is installed, 'make install' will eventually recuses back +# to the this Makefile to build and install external modules. +# Cancel sub_make_done so that options such as M=, V=, etc. are parsed. + +install: sub_make_done := + +# --------------------------------------------------------------------------- # Tools ifdef CONFIG_STACK_VALIDATION |